YandexGPT
Collection
2 items • Updated
How to use deepsweet/YandexGPT-5-Lite-8B-Instruct-MLX-MXFP8 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("deepsweet/YandexGPT-5-Lite-8B-Instruct-MLX-MXFP8")
prompt = "Once upon a time in"
text = generate(model, tokenizer, prompt=prompt, verbose=True)How to use deepsweet/YandexGPT-5-Lite-8B-Instruct-MLX-MXFP8 with MLX LM:
# Install MLX LM uv tool install mlx-lm # Generate some text mlx_lm.generate --model "deepsweet/YandexGPT-5-Lite-8B-Instruct-MLX-MXFP8" --prompt "Once upon a time"
This model was converted to MLX format from yandex/YandexGPT-5-Lite-8B-instruct using mlx-lm version 0.30.7:
mlx_lm.convert --hf-path yandex/YandexGPT-5-Lite-8B-instruct --mlx-path deepsweet/YandexGPT-5-Lite-8B-Instruct-MLX-MXFP8 --quantize --q-mode mxfp8 --q-group-size 32
Quantized
Base model
yandex/YandexGPT-5-Lite-8B-pretrain