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("deepsweet/GigaChat3.1-10B-A1.8B-MLX-MXFP4")

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)

This model was converted to MLX format from ai-sage/GigaChat3.1-10B-A1.8B using mlx-lm v0.31.1.

Multi-Token Prediction (MTP) had to be disabled ("num_nextn_predict_layers": 0) and related layers had to be removed (model.layers.26.*).

Thanks RockTalk/GigaChat3.1-10B-A1.8B-MLX-4bit for the tip.

mlx_lm.convert --hf-path ai-sage/GigaChat3.1-10B-A1.8B --mlx-path deepsweet/GigaChat3.1-10B-A1.8B-MLX-MXFP4 --quantize --q-mode mxfp4 --q-group-size 32
Downloads last month
83
Safetensors
Model size
11B params
Tensor type
U32
·
BF16
·
MLX
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 deepsweet/GigaChat3.1-10B-A1.8B-MLX-MXFP4

Quantized
(4)
this model

Collection including deepsweet/GigaChat3.1-10B-A1.8B-MLX-MXFP4