Get started with MLX

From order to model loading,
about 4 minutes

Run weights that won’t fit on your local computer on a dedicated cloud Mac. Choose unified memory, then pay and connect. Dedicated Apple Silicon M4 / M4 Pro machines—not virtual machines—from $20.8/day.

The 4-minute estimate covers plan selection, payment, provisioning, and basic environment setup. Actual timing depends on payment confirmation, network transfers, dependency installation, and the model’s first load. Allow extra time to upload large weight files.

Four steps to get started

Get your machine, then test your model

Setup takes four steps, about one minute each, or around four minutes total. Check the result at each step instead of waiting for a model error to revisit your order.

  1. 1

    Choose a plan and region

    Choose memory based on the actual size of your quantized weight files, not just the model’s parameter count. Three configurations are available: Apple Silicon M4 / 16GB / 256GB SSD, Apple Silicon M4 / 24GB / 512GB SSD, and Apple Silicon M4 Pro / 64GB / 2TB SSD.

    Choose from Singapore, Tokyo, Seoul, Hong Kong, or the US East Coast. Consider your network route and data transfer path; availability is based on the live status shown in the console.

    Check: Machine, region, and billing period selected.
  2. 2

    Review the total and pay

    Choose a billing period: day, week, month, or quarter. Review the machine cost and any add-ons before paying. The starting price of $20.8/day applies to the 16GB plan, not the 64GB plan.

    Payment is supported only via USDT-TRC20 or Visa, Mastercard, and Amex through Stripe. All charges are in US dollars (USD). Available payment gateways are confirmed by the backend; after paying, return to the console to check your order status.

    Check: Payment confirmed; order is being provisioned.
  3. 3

    Check provisioning

    In the console, review your order and instance details. Confirm that the assigned chip, unified memory, SSD, and region match your selected configuration. Use the instance details for the connection address, port, and login method.

    This is a dedicated physical machine with full access to the macOS desktop and command line. Confirm that the instance is reachable before uploading your model; a payment confirmation page does not mean the machine is connected.

    Check: Instance details are visible and connection information is available.
  4. 4

    Connect and set up MLX

    Connect using the method shown in your instance details. Check the Python version, create an isolated virtual environment, then install MLX and your model runtime tools. Verify that dependencies import successfully before loading your prepared quantized weights for the first time.

    For your first run, use one short prompt and limit the output. Don’t start multiple inference processes at once. This makes it easier to tell connection or environment issues apart from memory limits.

    Check: Environment is ready; start with one model and one request.
Prepare before ordering

Have these five details ready

Weight files fitting on the SSD doesn’t guarantee they’ll fit in unified memory at runtime. Check capacity first, then confirm your connection and billing period to avoid repeating a memory experiment after migrating.

  1. 01

    Model weight size

    Note the model name, version, quantization level, and total size of all weight files. For sharded models, include every shard, along with the config, tokenizer, and other files required to run the model.

  2. 02

    Memory plan

    Use 16GB to test smaller quantized models, 24GB for inference with mid-sized models, and 64GB for larger models or LoRA fine-tuning experiments. Leave room for macOS, the runtime, context cache, and other processes—don’t allocate all memory to weights.

  3. 03

    Connection region

    All three machine configurations are available in each of the five regions. For remote desktop use, consider interaction latency; for weight uploads, consider your actual transfer route. For batch evaluation, keeping data and compute on the same machine can help.

  4. 04

    Billing period

    Choose a day, week, month, or quarter that covers your experiment, and check the order’s expiry time. The instance stops at expiry unless renewed. Include time to download results, checkpoints, and datasets in your experiment plan.

  5. 05

    SSH key

    Create a key on your own computer. Configure the public key as required by the instance, and keep the private key local. Make sure your terminal can access the key file; never put private keys, passwords, or connection credentials in public repositories or ticket attachments.

Migration order

Move data, toolchain, and CI separately

You don’t need to copy your entire local environment. Prepare the files, dependencies, and run commands needed for this experiment separately. If the first run fails, you’ll be able to pinpoint which layer needs attention.

01 · Data

Start with weights and a small test set

Create separate model and experiment directories in the cloud. Upload the complete weights, tokenizer, config, and a small amount of test data. Check paths and read permissions with the smaller dataset before uploading the full dataset.

Check the file count and total size, and compare checksums if needed. Checkpoints, logs, and model copies also use SSD space, so don’t estimate disk needs based on weights alone.

Deliverable: A readable model directory and test set.
02 · Toolchain

Rebuild a reproducible Python environment

Create a virtual environment for your experiment and install MLX and the inference tools you need. Record Python and dependency versions; copying your local environment directory won’t make it a ready-to-run environment.

Check imports before loading the model. If installation fails, save the command and full error output. Don’t change the model, Python, and multiple dependencies at once, or you won’t know which change fixed the problem.

Deliverable: Dependency records and a repeatable launch command.
03 · CI integration

Connect your evaluation pipeline last

Once the script runs manually, connect the same script to CI. Pass the model directory, dataset location, and output path through environment variables. Store access credentials only in protected configuration.

Run one task at a time first, and confirm exit codes and log delivery before considering parallel runs. Save the model version, input parameters, and result files for each task so you can compare future experiments.

Deliverable: A traceable evaluation run and its results.
First model load

Test on 24GB first, then decide on 64GB

Start with the 24GB plan if you already have quantized weights and expect the runtime footprint to fit. If you know the weights and runtime overhead will exceed that, choose 64GB directly—there’s no need to rent a smaller plan just to follow the steps.

  1. Verify the environment, then load local weights

    The commands below create an isolated environment and check that MLX imports correctly. The model command uses your uploaded local directory; replace the directory name with the actual path. The installed tool version must support your weight format.

    python3 --version
    python3 -m venv .venv
    source .venv/bin/activate
    python -m pip install --upgrade pip
    python -m pip install mlx mlx-lm
    python -c "import mlx.core as mx; print(mx.default_device())"
    python -m pip freeze > requirements-lock.txt
  2. Run one short request

    Once all model files are in place, start with a short prompt and limited output. Check the help for your installed version to confirm command options. Save the startup log, then gradually increase the context or output length.

    python -m mlx_lm.generate --help
    python -m mlx_lm.generate \
      --model ./models/quantized \
      --prompt "Describe unified memory in one sentence." \
      --max-tokens 64
  3. Sort failures into three categories

    If files are missing, check paths and shards. For import or format errors, check dependencies and model compatibility. If memory pressure keeps rising or loading exceeds capacity, review context length, concurrency, and other processes. Don’t assume every failure is caused by insufficient memory.

  4. Move to the 64GB plan if you exceed capacity

    Stop repeated inference tasks and reduce context length and concurrency, then test one request again. If it still doesn’t meet your needs, save your code, dependency records, and checkpoints, then choose Apple Silicon M4 Pro / 64GB unified memory / 2TB SSD and migrate and test again.

    Switching machine configurations does not upgrade the existing instance in place. Follow the new order and the options available in the console. Data on the original instance won’t automatically appear on the new machine when you choose a different plan.

The 64GB configuration provides 64GB of unified memory for the entire machine, not 64GB reserved just for model weights. Quantization format, context length, KV cache, batch size, and fine-tuning settings all affect memory use. After your first successful run, increase the workload one setting at a time and track the changes.

Wrap up your experiment

Bring your results back before expiry

Billing is available by the day, week, month, or quarter. The instance stops at expiry unless renewed. Don’t rely on an expired instance for long-term backups; data retention and handling follow your order terms and the console’s guidance.

Continue your experiment: check renewal in advance

Check the order’s expiry time and renewal options in the console, and confirm the renewal amount, billing period, and payment status. To change the billing period, check the options available in the console. If there’s no suitable option, open a support ticket with your order number and the period you want.

Starting a payment doesn’t mean renewal is complete; check for an updated order status. If you have a long-running task, save a recoverable checkpoint before planning the next run.

Check: Expiry time, renewal period, and payment status.

Finish your experiment: download and verify your files

Before stopping tasks, save your final weights, checkpoints, evaluation results, and logs, along with dependency records and launch parameters. If you need to keep your own datasets, download them to storage you manage.

After downloading, check file counts and sizes and open a sample to confirm it works. If you need to resume training, make sure your checkpoints are complete. Don’t wait until the machine stops to check whether your backup works.

Check: Result files, reproducible environment, and readable backups.

Weights ready? Start loading your model

Check your order in the console, view connection details, and start your first experiment. If you haven’t ordered yet, choose a unified memory plan based on your weight file size.