Image-Text-to-Text
MLX
Safetensors
mistral3
Mixture of Experts
vision
leanstral
lean4
quantized
4-bit precision
Instructions to use mvid/Leanstral-1.5-119B-A6B-MLX-4bit 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-4bit 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-4bit") config = load_config("mvid/Leanstral-1.5-119B-A6B-MLX-4bit") # 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
Leanstral-1.5-119B-A6B-MLX-4bit
4-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, 4-bit.
- Effective: ~4.59 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-4bit \
--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
- 306
Model size
19B params
Tensor type
BF16
路
U32 路
Hardware compatibility
Log In to add your hardware
4-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-4bit
Base model
mistralai/Leanstral-2603 Finetuned
mistralai/Leanstral-1.5-119B-A6B