dichspace/darulm
Updated • 363 • 12
How to use mlx-community/Vikhr-7B-instruct_0.2-4bit with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download mlx-community/Vikhr-7B-instruct_0.2-4bit --local-dir Vikhr-7B-instruct_0.2-4bit
This model was converted to MLX format from Vikhrmodels/Vikhr-7B-instruct_0.2 using mlx-lm version 0.6.0.
Refer to the original model card for more details on the model.
pip install mlx-lm
from mlx_lm import load, generate
model, tokenizer = load("mlx-community/Vikhr-7B-instruct_0.2-4bit")
response = generate(model, tokenizer, prompt="Привет", verbose=True)
Quantized