OptionalcalibrationOptionalcandidateCandidate bit-widths the knapsack may choose from (e.g. [4, 8]).
Optionaldtypemlx_lm.convert --dtype: dtype of the non-quantized tensors and of the
quantization scales/biases. Absent keeps bf16 scales/biases and the
source dtype for everything else.
OptionalmodeQuantization scheme; v1 only exercises "affine".
OptionalnNumber of calibration samples (forward passes per layer×bit probe).
OptionalprobeDependency used to provide the loadable model for sensitivity sweeps.
OptionalquantizeExtra per-module gate on top of the shape-eligibility check: return
false to keep a module full-precision even though its shape qualifies
(e.g. the DeepSpec drafter's confidence_head — threshold-sensitive and
tiny). Excluded modules are recorded as false in the quantization
block (mlx's "not quantized" convention). Shape-ineligible modules
never reach this.
OptionalreferenceReference dtype for sensitivity scoring (e.g. "bf16"). Informational only — the native path dequantizes the running model's own weights as the self-contained bf16 source.
OptionaltargetTarget bits-per-weight for sensitivity+knapsack mixed precision.
OptionalweightOptional offline basis transform applied before quantization.
Calibration data mixture spec ("optiq" or a JSONL path).