Skip to main content
Mythos

How to Plan a First LoRA Experiment with MLX LM

Use the MLX LM fine-tuning guide to plan a first experiment and decide how you’ll tell whether training helped.

What You'll Need

  • A repeatable task and examples you can use for training and testing.
  • For a training run, an Apple silicon Mac, MLX LM’s training dependencies and a compatible model.

Steps

  1. Describe success. For a help-desk reply, you might require one next step and the correct owner. Write down how you’ll score each requirement before you try the model.
  2. Set a baseline. Try the original model with a clear instruction and save its answers to a few practice requests. If it already meets your criteria, you can use that prompt immediately.
  3. Separate your examples. In the guide’s Data section, find the chat format and make each request and ideal reply one example. Reserve fresh requests for a final test, keeping paraphrases of a training request in the same group as the original.
  4. Confirm compatibility. Find your model family in the guide and check the installed MLX LM version against the exact checkpoint you plan to use. A successful chat establishes that the model can generate text; a short training run that writes and reloads an adapter verifies the training path.
  5. Compare answers. Use Fine-tune for the practice run and Generate to load the saved adapter. Give the original and adapted models the same reserved requests with the same instructions and score both sets of replies using your criteria.

What's Next?

Contexts