m-a-p/CodeFeedback-Filtered-Instruction
Viewer • Updated • 157k • 29.4k • 196
How to use mlx-community/dolphin-2.9.4-gemma2-2b-4bit with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] huggingface-cli download --local-dir dolphin-2.9.4-gemma2-2b-4bit mlx-community/dolphin-2.9.4-gemma2-2b-4bit
The Model mlx-community/dolphin-2.9.4-gemma2-2b-4bit was converted to MLX format from cognitivecomputations/dolphin-2.9.4-gemma2-2b using mlx-lm version 0.18.0.
pip install mlx-lm
from mlx_lm import load, generate
model, tokenizer = load("mlx-community/dolphin-2.9.4-gemma2-2b-4bit")
response = generate(model, tokenizer, prompt="hello", verbose=True)
Quantized
Base model
google/gemma-2-2b