Text Generation
MLX
Safetensors
mistral3
rotorquant
kv-cache-quantization
8bit
weight-quantization
leanstral
lean4
formal-proofs
theorem-proving
quantized
apple-silicon
mistral
Mixture of Experts
8-bit precision
Instructions to use majentik/Leanstral-RotorQuant-MLX-8bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use majentik/Leanstral-RotorQuant-MLX-8bit with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # if on a CUDA device, also pip install mlx[cuda] # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("majentik/Leanstral-RotorQuant-MLX-8bit") prompt = "Once upon a time in" text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- MLX LM
How to use majentik/Leanstral-RotorQuant-MLX-8bit with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Generate some text mlx_lm.generate --model "majentik/Leanstral-RotorQuant-MLX-8bit" --prompt "Once upon a time"
- Atomic Chat
docs: upstream-first KV-cache guidance (q8_0/q4_0, mainline Hadamard rotation); fork demoted to experimental
Browse files18 unmodified lines19202122232418 unmodified linespipeline_tag: text-generation---# Leanstral-RotorQuant-MLX-8bit**8-bit MLX weight-quantized [Leanstral-2603](https://huggingface.co/mistralai/Leanstral-2603) with [RotorQuant](https://github.com/scrya-com/rotorquant) KV-cache quantization for Lean 4 formal proof generation on Apple Silicon.**18 unmodified lines192021222324252627282930313233343536373839404118 unmodified linespipeline_tag: text-generation---> [!TIP]> **KV-cache quantization without any fork (recommended, 2026):** upstream> llama.cpp/Ollama now cover this natively — use `-ctk q8_0 -ctv q8_0`> (~half KV memory, negligible quality loss: perplexity +0.002–0.05) or> `-ctk q4_0 -ctv q4_0` (~quarter memory, ≈7.6% perplexity increase). In> Ollama: `OLLAMA_KV_CACHE_TYPE=q8_0` with `OLLAMA_FLASH_ATTENTION=1`. Keep> K and V types symmetric to stay on the fast fused Flash-Attention path.> Since April 2026, mainline llama.cpp also applies Hadamard rotation to> KV activations ([PR #21038](https://github.com/ggml-org/llama.cpp/pull/21038)),> which greatly improves low-bit KV quality (opt-out:> `LLAMA_ATTN_ROT_DISABLE=1`).>> The RotorQuant/TurboQuant fork flow below is **experimental/legacy**: the> TurboQuant llama.cpp PR was closed without merging (June 2026) and the fork> is unmaintained relative to mainline. It is NOT required to use this model.<!-- kv-upstream-note --># Leanstral-RotorQuant-MLX-8bit**8-bit MLX weight-quantized [Leanstral-2603](https://huggingface.co/mistralai/Leanstral-2603) with [RotorQuant](https://github.com/scrya-com/rotorquant) KV-cache quantization for Lean 4 formal proof generation on Apple Silicon.**
README.md+17