Mistral (Mamba) Codestral
Collection
5 items • Updated
How to use mlx-community/Codestral-22B-v0.1-8bit with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] huggingface-cli download --local-dir Codestral-22B-v0.1-8bit mlx-community/Codestral-22B-v0.1-8bit
The Model mlx-community/Codestral-22B-v0.1-8bit was converted to MLX format from bullerwins/Codestral-22B-v0.1-hf using mlx-lm version 0.14.0.
pip install mlx-lm
from mlx_lm import load, generate
model, tokenizer = load("mlx-community/Codestral-22B-v0.1-8bit")
response = generate(model, tokenizer, prompt="hello", verbose=True)
Quantized