uonlp/CulturaX
Viewer • Updated • 7.18B • 25.6k • 705
How to use mlx-community/stablelm-2-12b-4bit with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download mlx-community/stablelm-2-12b-4bit --local-dir stablelm-2-12b-4bit
This model was converted to MLX format from stabilityai/stablelm-2-12b using mlx-lm version 0.8.0.
Model added by Prince Canuma.
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-12b-4bit")
response = generate(model, tokenizer, prompt="hello", verbose=True)
Quantized