Image-Text-to-Text
MLX
Safetensors
mistral3
Mixture of Experts
vision
leanstral
lean4
quantized
8-bit precision
Instructions to use mvid/Leanstral-1.5-119B-A6B-MLX-8bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use mvid/Leanstral-1.5-119B-A6B-MLX-8bit with MLX:
# Make sure mlx-vlm is installed # pip install --upgrade mlx-vlm from mlx_vlm import load, generate from mlx_vlm.prompt_utils import apply_chat_template from mlx_vlm.utils import load_config # Load the model model, processor = load("mvid/Leanstral-1.5-119B-A6B-MLX-8bit") config = load_config("mvid/Leanstral-1.5-119B-A6B-MLX-8bit") # Prepare input image = ["http://images.cocodataset.org/val2017/000000039769.jpg"] prompt = "Describe this image." # Apply chat template formatted_prompt = apply_chat_template( processor, config, prompt, num_images=1 ) # Generate output output = generate(model, processor, formatted_prompt, image) print(output) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
Leanstral-1.5-119B-A6B-MLX-8bit
8-bit MLX affine quantization of mistralai/Leanstral-1.5-119B-A6B,
a 119B-parameter (A6B active) mixture-of-experts vision-language model tuned for
Lean 4. Produced with mlx_vlm.convert on Apple silicon.
Quantization recipe
- Method: affine, group size 64, 8-bit.
- Effective: ~8.56 bits/weight.
- Router precision: the 36 MoE router gates (
*.mlp.gate) are kept at 8-bit regardless of the target width, matching the reference recipe. This protects expert selection, which is disproportionately sensitive to quant noise. - Full precision: vision tower, multimodal projector, and
lm_headare left unquantized.
Usage
pip install mlx-vlm
python -m mlx_vlm.generate \
--model mvid/Leanstral-1.5-119B-A6B-MLX-8bit \
--max-tokens 512 \
--prompt "State and prove in Lean 4 that addition on the naturals is commutative."
MLA attention is expanded to full MHA in mlx-vlm's cache, so long-context runs are memory-heavy on this engine; for large contexts prefer a GGUF build under llama.cpp / LM Studio, which keeps the KV cache compressed.
Sibling quants
MLX-8bit · MLX-6bit · MLX-5bit · MLX-4bit · MLX-3bit
- Downloads last month
- 90
Model size
34B params
Tensor type
BF16
·
U32 ·
Hardware compatibility
Log In to add your hardware
8-bit
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support
Model tree for mvid/Leanstral-1.5-119B-A6B-MLX-8bit
Base model
mistralai/Leanstral-2603 Finetuned
mistralai/Leanstral-1.5-119B-A6B