Mistral NeMo
Collection
6 items โข Updated โข 9
How to use mlx-community/Mistral-Nemo-Instruct-2407-4bit with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] huggingface-cli download --local-dir Mistral-Nemo-Instruct-2407-4bit mlx-community/Mistral-Nemo-Instruct-2407-4bit
The Model mlx-community/Mistral-Nemo-Instruct-2407-4bit was converted to MLX format from mistralai/Mistral-Nemo-Instruct-2407 using mlx-lm version 0.16.0.
pip install mlx-lm
from mlx_lm import load, generate
model, tokenizer = load("mlx-community/Mistral-Nemo-Instruct-2407-4bit")
response = generate(model, tokenizer, prompt="hello", verbose=True)
Quantized