{% extends "_base.html" %} {% block content %}
Apply a LoRA adapter on top of any OptIQ quant. Runs MLX-natively; takes advantage of OptIQ's sensitivity data via rank-scaling.
Path to a directory containing train.jsonl (and optionally
valid.jsonl). mlx-lm accepts the standard shapes:
{"text": ...}, {"prompt": ..., "completion": ...},
or {"messages": [...]}.
LoRA adapter saved to:
Common case: this is a DPO adapter trained with --mount-adapter on top of an SFT. Merge them
here so the final artifact is a single drop-in adapter (rank-concat, mathematically exact).
Skip this section to ship the adapter alone.
( layers rank-concat,
in only one source)
Optional: copy the base model files + this adapter into one directory ready for
optiq serve --model <dir> or stock mlx_lm.generate.
Larger payload but drop-in usable without any adapter flags.
Pushes the exported model directorythe merged adapterthe trained adapter.