How to use from the
Use from the
MLX library
# Make sure mlx-lm is installed
# pip install --upgrade mlx-lm

# Generate text with mlx-lm
from mlx_lm import load, generate

model, tokenizer = load("bearzi/MiniMax-M2.7-JANG_4K")

prompt = "Write a story about Einstein"
messages = [{"role": "user", "content": prompt}]
prompt = tokenizer.apply_chat_template(
    messages, add_generation_prompt=True
)

text = generate(model, tokenizer, prompt=prompt, verbose=True)

MiniMax-M2.7-JANG_4K

JANG adaptive mixed-precision MLX quantization produced via vmlx / jang-tools.

  • Quantization: 3.98b avg, profile JANG_4K, method mse-all, calibration activations
  • Profile: JANG_4K
  • Format: JANG v2 MLX safetensors
  • Compatible with: vmlx, MLX Studio, oMLX (with JANG patch)

Usage

vmlx (recommended)

pip install 'vmlx[jang]'
vmlx serve bearzi/MiniMax-M2.7-JANG_4K

Python

from jang_tools.loader import load_jang_model
from mlx_lm import generate

model, tokenizer = load_jang_model("bearzi/MiniMax-M2.7-JANG_4K")
messages = [{"role": "user", "content": "Hello"}]
prompt = tokenizer.apply_chat_template(messages, add_generation_prompt=True, tokenize=False)
print(generate(model, tokenizer, prompt=prompt, max_tokens=512, verbose=True))

About JANG

JANG (Jang Adaptive N-bit Grading) assigns different bit widths to different layer types — attention layers get more bits, MLP/expert layers compress harder. This preserves model coherence at aggressive compression levels where uniform quantization breaks down.

See JANG documentation and scores at jangq.ai.

Comparative benchmarks and feedback welcome — please open a discussion.

Downloads last month
240
Safetensors
Model size
32B params
Tensor type
U32
·
F16
·
MLX
Hardware compatibility
Log In to add your hardware

Quantized

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for bearzi/MiniMax-M2.7-JANG_4K

Finetuned
(27)
this model

Collection including bearzi/MiniMax-M2.7-JANG_4K