Spark-X2.6-4B-oQ6e
MLX model conversion
1 min readupdated
This is a quantized version of the Spark-X2.6-4B language model (around 4.11 billion parameters), adapted to run on Apple Silicon devices using the MLX framework (Apple's machine learning library). Quantization (compressing the model to save memory) was performed using the oQ6e method with imatrix calibration, which allows for selective precision allocation across tensors rather than applying a single bit-width. This release is useful for Mac owners who want to run modern language models locally with lower memory requirements.
Key features
- MLX format (optimized for Apple Silicon processors)
- oQ6e quantization (enhanced=True) using imatrix
- Calibration based on 128 samples of 512 tokens each
- Includes the oq_imatrix_report.json quantization distribution report
What you can do
- Run locally on Mac computers with Apple Silicon chips through the MLX ecosystem
- Test text generation quality on Apple devices with lower resource consumption
- Inspect the precision calibration report to optimize weights
Example
Example command to run the conversion of a similar model via oMLX:
python run_oqe_conversion.py Spark-X2.6-4B-bf16 --models-dir /path/to/models --oq-level 6.0 --imatrix-samples 128 --imatrix-seq-length 512 --source-repo https://huggingface.co/XHToken/Spark-X2.6-4BRead more
DetailsSource checkpoint: Spark-X2.6-4B-bf16
Conversion tool: oMLX version 0.8.0rc1
Compression method: imatrix (128 samples of 512 tokens)
Files: model.safetensors, config.json, oq_imatrix_report.json










Comments