HuggingFaceH4/ultrachat_200k
Viewer • Updated • 515k • 69.5k • 719
How to use mlx-community/stablelm-2-zephyr-1_6b-4bit with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] huggingface-cli download --local-dir stablelm-2-zephyr-1_6b-4bit mlx-community/stablelm-2-zephyr-1_6b-4bit
This model was converted to MLX format from stabilityai/stablelm-2-zephyr-1_6b.
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/stablelm-2-zephyr-1_6b-4bit")
response = generate(model, tokenizer, prompt="hello", verbose=True)
Quantized