For your next model run

Keep your MLX jobs running

Connect to your node, verify your model, then keep long-running jobs alive with a persistent session or service manager. Find steps below for dropped connections, memory limits and renewals.

Need a node? Rent a dedicated physical Mac mini by the day, from $19.6/day. Get started and put it to work the same day.

Getting connected

Get your node details and connect

Sign in to the portal and open the details for your node. Use the address, username and connection method shown there—don't reuse settings from another machine.

  1. 01

    Check your node details

    Make sure your node is ready, then check the order, location and model. Your credentials are for the node you rented. Never post passwords, private keys or screenshots showing full connection details publicly.

  2. 02

    Choose terminal or desktop

    Use SSH to install dependencies, run scripts and check logs. For a graphical interface, connect over VNC as described in your node details. You can find the connection details and credentials in the portal after signing in.

  3. 03

    Verify your first login

    On your first SSH connection, you'll be asked to verify the host fingerprint. Check it before accepting. If it differs from the fingerprint you saved, confirm that you're using the right address and that the node hasn't changed. Don't bypass the check by deleting the record.

Copy the SSH address and port from your node details

Replace the username, address and port below with the values for your node. After logging in, check the system architecture before setting up your environment.

ssh -p SSH_PORT USERNAME@NODE_ADDRESS
uname -m
sw_vers

On a native Apple Silicon environment, the architecture should be arm64. If the connection times out, check the address, port and local network. If authentication fails, check the username and authentication method. Treat these as separate issues.

Getting started with MLX

Run your first request in a clean environment

Start with a small model to check the installation and request flow, then move on to your target model. Troubleshoot dependencies, model downloads and memory limits separately.

Create an isolated Python environment

Use a native arm64 build of Python that supports your version of MLX. Check your Python version first. If the system doesn't have a suitable interpreter, install a compatible version before creating a virtual environment. These commands won't modify your global Python packages.

python3 --version
mkdir -p ~/mlx-work
cd ~/mlx-work
python3 -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip
python -m pip install mlx mlx-lm
python -m pip show mlx mlx-lm

Keep a record of your interpreter and package versions. Use the same virtual environment to reproduce experiments, and avoid mixing system Python and project Python across terminals.

Load a quantized model and start the API

This example uses a 4-bit model repository to get you started. The first launch downloads the model weights, so your node needs access to the model source. Once the download is complete, check your available disk space and the model's licence.

cd ~/mlx-work
source .venv/bin/activate
python -m mlx_lm.server \
  --model mlx-community/Qwen2.5-3B-Instruct-4bit \
  --host 127.0.0.1 \
  --port 8080

Leave the service running in the foreground while you check the startup logs. Options may vary between installed versions; run python -m mlx_lm.server --help to see what's supported on your node.

Open another SSH session and test a request on the node

Call the API from the node itself and confirm it returns a response before connecting your application. This lets you test model loading and network access separately.

curl http://127.0.0.1:8080/v1/chat/completions \
  -H 'Content-Type: application/json' \
  -d '{
    "messages": [
      {"role": "user", "content": "Explain unified memory in one sentence."}
    ],
    "max_tokens": 64
  }'

Your memory budget needs to cover the quantized weights, KV cache, runtime and system overhead. Usage can also grow with longer context windows or more concurrent requests. A 64GB unified memory pool doesn't mean you can allocate all 64GB to model weights.

Long-running jobs

Connections can drop; keep your job session running

Your node runs 365 days a year. You still need to manage your own processes: closing an SSH terminal doesn't turn a foreground command into a background service.

Keep your session with tmux

Check that tmux is installed on your node. If command -v tmux returns nothing, install it first. Create a named session, then activate your virtual environment and run your service or fine-tuning script inside it.

When you need to disconnect, press Ctrl+B, release the keys, then press D. This detaches the session without stopping the program. Reconnect to the same session later to check logs and job progress.

tmux is useful for interactive experiments, but it won't automatically recover a process after a crash or system restart. Save fine-tuning checkpoints regularly, note your output directory and export your results before your rental ends.

command -v tmux
tmux new -s mlx-run

cd ~/mlx-work
source .venv/bin/activate
python -m mlx_lm.server \
  --model mlx-community/Qwen2.5-3B-Instruct-4bit \
  --host 127.0.0.1 --port 8080

tmux ls
tmux attach -t mlx-run

Run the last two commands after detaching and reconnecting. Don't start another copy of the same service in a separate session while it's still using the port.

Consider launchd for a long-running API service

To manage a persistent service with launchd, set ProgramArguments to the absolute path to Python in your virtual environment. Also specify WorkingDirectory and paths for standard output and error logs. Don't rely on terminal commands such as source, aliases or temporary environment variables.

Configure launch and restart behaviour to suit your job. After loading the configuration, check the service status and logs, then disconnect to verify it keeps running. A user-level LaunchAgent and a system-level LaunchDaemon run under different accounts and start at different times, so decide whether the service depends on a user login. Fine-tuning scripts also need to support resuming from a checkpoint; restarting a process won't restore training progress by itself.

8 common terms

Turn these terms into practical steps

Use consistent terms when checking settings, reading logs or writing a support ticket.

Physical node
A Mac mini that runs macOS and your jobs—not just a process allocated to you.
Dedicated machine
The entire machine is assigned to you. Its unified memory, GPU and SSD aren't shared with other customers, and it isn't a virtual machine.
Unified memory
A shared pool of memory used by the CPU and GPU. Model weights, context caches and the system all use it.
VNC
A way to view and control the remote macOS desktop, useful for tasks that need a graphical interface.
SSH
An encrypted connection to your node's command line, useful for running scripts, managing files and checking logs.
Self-hosted runner
An automation runner you configure on your node to handle jobs such as model evaluations and macOS builds.
Quantization (4-bit / 8-bit)
A way to represent model parameters at a lower bit width to reduce weight memory usage. The results depend on the model and quantization version.
KV cache
Intermediate data kept for the context while text is generated. It usually grows with context length and concurrent requests.
Need a hand?

Include reproducible details in your support ticket

If you already have a node, sign in to the portal and submit your issue in the support area. Include your order or node ID so the team can find the right details. You can follow updates and replies in the portal without repeating the same background across different channels.

Describe what you actually see: an SSH timeout, authentication failure, model loading error, unreachable port or billing status that hasn't updated. Avoid vague reports such as “the machine is broken”, and don't reinstall your environment or delete logs before troubleshooting.

Can't sign in or have a pre-sales question? Email support@vpsmain.com. Never include passwords, private keys or access tokens in an email or support ticket.

Collaborative office workspace illustrating how to organise issue details and troubleshooting notes
Note what happened and what you tried, then submit details the team can reproduce.
01

Node and model

Include the node location, order or node ID, and whether you're using Main M4 16 or Main M4 Pro 64 so the team can identify your setup.

02

When it happened

Include the date and time with your time zone, how long it lasted and when it last worked. Say whether the issue is still happening.

03

Steps and output

Share the shortest steps to reproduce the issue, redacted commands and the end of any error message. For environment issues, include your Python, MLX and model versions.

04

Impact and checks

Say whether one API, one job or the entire node is unreachable, and list the addresses, ports and logs you've already checked.

Billing and rental term

Plan renewals before starting a long-running job

Long-running jobs need both process management and enough time on your rental. Before starting an overnight fine-tuning run, check when your current term ends—don't rely on a reminder alone.

Check expiry reminders and invoices

In the portal, check your current subscription, expiry date and any outstanding invoices. Keep an eye out for expiry reminders sent to your account. After paying, confirm that the invoice status and expiry date have updated. If they haven't, note the order and transaction details and submit a support ticket.

Keep your payment records, and remove personal information from screenshots before sharing them. Don't assume that starting a payment means your renewal is complete.

Check how rental terms work

You can rent by the day, week, month or quarter. If you want to switch from a daily to a monthly term, check the available options, price and start date in the portal first. If there's no option to switch, submit a support ticket to confirm what to do before paying.

Don't assume unused rental time will be credited automatically, and don't buy the same configuration twice just to change terms.

Export your data before your rental ends

Back up your model weights, datasets, training checkpoints and environment details in advance. If you need to keep your results, export them and verify that the files can be read before ending your rental. Don't rely on an expired node as long-term storage.

Check the portal for details about access and handling after expiry. Confirm your subscription is active before continuing to use the node.

Two payment options: USDT-TRC20 and Visa / Mastercard / Amex (via Stripe). All payments are charged in USD. The payment options available for your order are determined by the response from the backend.

Practical questions

Common questions after your model is running

Choose tools that fit your workflow, and make sure you configure access and data storage explicitly.

Can I install Ollama or LM Studio?

You can install either tool yourself, as long as it meets the current macOS and Apple Silicon requirements. Neither replaces the dependencies for an MLX environment, and model formats aren't necessarily interchangeable between tools. Check the model format, quantization version and runtime before estimating unified memory usage.

Use the node's remote desktop for graphical tasks. For command-line services, test them on the local loopback address first. Close any model processes you're not using before switching tools to avoid keeping multiple sets of weights in unified memory.

How can my app call an inference API on the node?

Keep the API bound to 127.0.0.1 and connect through an SSH tunnel. Run the command below on your local computer, replacing the SSH details with your own. Then have your local app send requests to port 8080 on your computer.

ssh -N -L 8080:127.0.0.1:8080 \
  -p SSH_PORT USERNAME@NODE_ADDRESS

If your local port is already in use, change the port on the left side of the tunnel. If you need public access, check the node's network rules and configure authentication, encrypted transport and source restrictions first. Never expose an unauthenticated inference service to the public internet.

Where should I store model weights?

Main M4 16 comes with a 256GB SSD, while Main M4 Pro 64 comes with a 2TB SSD. You can manage weights in your project directory or set an explicit cache directory in your model tool. Make sure you know where the cache is actually stored—it may differ from the model name in your launch command.

If you add a +1TB SSD or +2TB SSD, first check the actual volume name, mount path and permissions on your node before moving models or datasets. An SSD upgrade adds storage, not unified memory. Check free space before downloading multiple quantized versions, saving checkpoints or running batch transcription.

The model loads but exits when generating long text. What should I check?

Check the error logs and memory pressure first, then compare results with a shorter context, fewer concurrent requests or a lower output limit. Loading the weights only shows that memory usage was acceptable at startup; it doesn't guarantee enough headroom as the KV cache grows.

Keep the full model name, quantization method, context settings and request used to reproduce the issue. If you need more memory, compare the two available configurations. Adding an SSD won't increase memory.

Load your model, then keep the job running

Don't have a node yet? Rent one for a day to test your memory needs and workflow. Already have one? Head to the portal with your node details to continue.