Move from a local Mac to a cloud Mac
Move your data, not your entire old environment
Migration has three parts: data, your toolchain, and CI access. First, make manual inference repeatable; then automate overnight runs. If you’re only testing a model once, you can skip CI for now.
01 / Data
Sync weights and datasets
Use rsync to transfer your model directory, including all weights, configuration, and tokenizer files. Create the destination directory in a cloud terminal, then run the sync command from your local terminal with the SSH variables still set.
mkdir -p ~/models ~/datasets ~/runs
printf 'Absolute path to local model directory: '
read -r LOCAL_MODEL
rsync -av --progress \
-e "ssh -p $REMOTE_PORT" \
"$LOCAL_MODEL/" \
"$REMOTE_USER@$REMOTE_HOST:models/first-model/"
The trailing slash syncs the directory’s contents. Keep the local copy until you’ve confirmed all remote files are intact. Don’t add automatic deletion options for your first migration.
02 / Toolchain
Rebuild a native Python environment
Check that Homebrew and Python are available, create a new virtual environment on the cloud Mac, and install mlx-lm. Don’t copy your local virtual environment: its paths and binary dependencies may not be compatible.
- Run
uname -m to confirm the native architecture is arm64.
- Run
brew --version to check Homebrew.
- Run
python3 --version to check Python.
- After inference succeeds, save the dependency versions so you can reproduce the setup.
If a command isn’t available, follow the relevant tool’s official installation instructions before moving on. Run MLX inference natively on macOS; don’t treat a Linux container as a Metal GPU environment.
03 / CI setup
Save evaluation runs for overnight
In your GitHub repository’s Actions settings, add a self-hosted runner, select macOS and ARM64, and register it on your cloud Mac using the commands shown. Treat the registration token as sensitive: don’t put it in your repository or a support ticket.
- Add a dedicated runner label so evaluation jobs run only on the intended machine.
- Use the verified Python environment and an absolute model path in your workflow.
- Set a schedule; scheduled expressions use UTC.
- Limit concurrency first to avoid builds and inference competing for unified memory.
Don’t run untrusted public code on a runner that has access to your models, secrets, or project credentials. For unattended runs, configure a background service using the runner’s service installation process.