Skip to content

Fine-tune a model

Pro

A run fine-tunes one local model on one dataset. When it ends, Nexus adds the new model to your library and compares it with the model it came from.

You need a dataset first. See Add a dataset.

  1. Open Training and click Fine-tune a model. From a dataset, you can also click Fine-tune with this.
  2. Under Model to fine-tune, pick a local model.
  3. Under Dataset, pick the dataset. Add opens Add dataset without closing the form.
  4. Under How long to train, pick Quick, Balanced (recommended) or Thorough.
  5. Check the line under it, such as “About 2 min · needs 8 GB. This Mac has 225 GB free, so it starts right away.”
  6. Check Name and Answers as. Both are filled in for you. See below.
  7. Click Start fine-tuning.

Fine-tune a model: Qwen3-8B-4bit, the Juniper support chats dataset, Balanced (recommended) at about 2 min and 8 GB, the Name Qwen3-8B-4bit · Juniper support chats and Answers as juniper-support-chats

The list shows each local model with its quantization and size, in groups:

  • Tested: Msty ran a fine-tune on this kind of model on this kind of Mac.
  • Supported: it should work. Msty hasn’t tested it yet.
  • Can’t fine-tune on this Mac: greyed out, with the reason, such as Vision models can’t be fine-tuned yet., Needs more memory than this Mac has. or The model isn’t fully downloaded yet.

When two models have the same name, the list shows where each comes from. A model you fine-tuned before is in the list too, so you can train it again.

Option Passes over the data (epochs) Learning rate LoRA rank Use it for
Quick 1 0.0005 8 A first try
Balanced (recommended) 3 0.0005 16 Most datasets
Thorough 5 0.0004 32 More passes over the data. Trains every layer of the model.

The time estimate uses your dataset’s real row lengths. When the run starts, Nexus measures its real speed and updates the time left.

  • Name is the model’s name in your library. It starts as the base model and the dataset, such as “Qwen3-8B-4bit · Juniper support chats”. You can rename it any time, even while it trains.
  • Answers as is the name your apps call, such as juniper-support-chats. It starts from the dataset’s name. Use lowercase letters, numbers, dots, dashes and underscores, up to 64 characters.

A new run with an Answers as name that a run already has becomes its next version, such as v2. Your apps keep getting the version they had until you switch them. See Versions.

Open Advanced to change the training settings. The fields show the chosen option’s values. A value you change stays yours, even if you pick another option.

Field What it does
Epochs How many times the model goes through the whole dataset.
Learning rate How big each change to the model is. Too high, and it forgets what it knew. Too low, and it learns little.
LoRA rank How much the model can learn. Higher learns more and needs more memory.
Maximum length The longest example, in tokens. Longer rows are cut.
Stop early Off by default. When on: in the second half of the run, it stops when validation gets worse for 3 checks, and keeps the best checkpoint from that half.
Pause on battery On a laptop, unplugging pauses the run in place. Plugging in continues it. Macs without a battery don’t show it.

A run that reaches its end keeps its last checkpoint.

The form checks the run before you start it. These are warnings. You can still start.

  • “200 rows is a small dataset. A few hundred examples usually work better.”
  • “12 rows are longer than 2,048 tokens for this model and will be cut. Raise Maximum length in Advanced to keep them.”

If the run needs more memory than the Mac can give it, Start fine-tuning stays off. Lower Maximum length or LoRA rank in Advanced, or pick a smaller model.

The run shows under Current run on Runs. It shows:

  • the state, such as Training · step 178 of 549, and the progress bar;
  • the epoch, such as Epoch 1 of 3, and the time left, measured once Nexus has timed real steps;
  • Training loss, Validation loss, Tokens trained and Elapsed;
  • the loss chart. See Check the results.

A run in progress, v2 of juniper-support-chats: Training · step 178 of 549, Epoch 1 of 3, about 1 min left measured, Training loss 0.27 from 4.49, Validation loss 0.46, Tokens trained 11.5K, and the loss chart with both lines falling

Other states you may see:

State What it means
Getting ready The trainer is starting. The first run of a large model takes a few minutes longer.
Waiting for 8 GB of memory Loaded models use the memory the run needs. It starts by itself when they unload or go idle.
2nd in line Another run is training on this Mac. This one starts after it.
Paused on battery The laptop is unplugged. The run continues when you plug it in. Continue now continues on battery.
Adding to library Training is done. “Step 1 of 2” saves the new model. “Step 2 of 2” answers the example questions with both models.
  • Stop and save stops the run and keeps where it got to. The run shows Stopped · can continue. Continue training later trains only the steps that are left, then adds the model to your library.
  • Cancel stops the run and adds nothing to your library. The dataset stays.
  • On a run that waits in line, the Remove from line button (×) takes it out of the line.

Nexus adds the new model to your library. The run shows In library, the model’s size, and the size of the training result it keeps with the run.

  • Open in Chat opens a chat with the new model.
  • If MLX hasn’t picked up the new model yet, a notice says so. Click Restart MLX. Loaded models reload the next time they’re used. The notice goes away after the restart.
  • A model fine-tuned from a 4-bit model is about a third bigger than its base, such as 5.7 GB from 4.3 GB. The layers it trained are kept at a higher precision, so its answers stay closer to what it learned.

Remove from library frees the model’s disk space. The run and its training result stay, so Add to library brings the model back at any time. Training keeps its own copy of the base model, so this works even after you remove the base model.

Delete run deletes the run and its training files. A model it added to your library stays there.

Click the pencil next to the run’s name. Change Model name and click Save.

Under Earlier runs, each run shows its base model, dataset, option, time and date. Click a run to open it, with the same details, chart and comparison. Finished runs that are in your library have Open in Chat.

What you see What to do
This Mac ran out of memory. Try Quick, a smaller model, or a shorter maximum length. Click Try again with Quick, or start a new run with a smaller model or a lower Maximum length.
The run stopped because Msty Nexus restarted. If it shows Continue training, click it. Otherwise start the run again.
This machine is busy with another run. Wait for the other run to finish, or cancel it.
None of your models can be fine-tuned on this Mac. Download a smaller MLX model in Models.
Couldn’t add to library The training result is kept with the run. Click Add to library to try again.
Install the Trainer Runtime Click Install Trainer Runtime. It is about 1.1 GB.
Update Msty Nexus on this machine to fine-tune models here. Update Nexus on that machine.

Next: Check the results.