mlx-optiq
Fine-tuning · Step 4

Compare tuned and base in the Arena

A lower loss says the adapter fits your data. It does not say the answers got better. Put the same prompt to the base model and to the base with your adapter, and read both.

Arena: one prompt, two panes side by side, the base model and the base plus your adapter, each with tokens per second.one prompt, sent to bothA · basetok/s · tokensB · base + adaptertok/s · tokens
Model A is the base. Model B is the same base with your adapter mounted. Both answer the same prompt at once.

Model Arena: two models compared side by side

The Arena is not only for adapters. Pick any model in each column, from your published OptiQ quants or local converts: an OptiQ mixed-precision quant against a uniform 4-bit one, or a quant against its bf16 base, answering in the same window so the quality and speed difference shows at once.

From a Lab fine-tune

When a run finishes in the Lab's Fine-tune page, the done screen has a Compare with the base model in Arena button. It opens the Arena with the base as model A, and the same base plus your new adapter as model B.

  1. Click Load A and Load B. Model A runs on the Lab's main API server; model B runs in a second server on the next port, started on demand.
  2. Type one prompt and click Compare.
  3. Both panes show their answer with tokens per second and the token count.

Reasoning models are asked to answer directly in the Arena, so both panes show an answer rather than spending the budget on a hidden chain of thought.

From a CLI-trained adapter

The button just opens a link, so you can build the same link for an adapter you trained with optiq lora train. With the Lab running on its default port:

urlbash
http://127.0.0.1:7860/arena?a=mlx-community/Qwen3.5-4B-OptiQ-4bit&b=mlx-community/Qwen3.5-4B-OptiQ-4bit&b_adapter=/full/path/to/my_adapter

To compare two finished models instead, for example a DPO export against the SFT-only one, pick each in its column. Local folders show up as on this Mac.

Make it a fair test

  • Use prompts the adapter never saw. Keep a few dozen rows out of train.jsonl for this.
  • Ask some things outside your task as well. A narrow adapter that broke general answers shows up here first.
  • Both models stay loaded while the Arena is open, so it suits small models. On a tight machine, compare small bases.

For a scored comparison of two models on standard benchmarks, optiq eval runs GSM8K, MMLU, IFEval, BFCL, HumanEval and HashHop, and on GSM8K --baseline puts a second model next to the first. More in Evaluation.