How to use from
Docker Model Runner
docker model run hf.co/mlx-community/gemma-2-2b
Quick Links

mlx-community/gemma-2-2b

The Model mlx-community/gemma-2-2b was converted to MLX format from google/gemma-2-2b using mlx-lm version 0.16.1.

Use with mlx

pip install mlx-lm
from mlx_lm import load, generate

model, tokenizer = load("mlx-community/gemma-2-2b")
response = generate(model, tokenizer, prompt="hello", verbose=True)
Downloads last month
21
MLX
Hardware compatibility
Log In to add your hardware

Quantized

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Collection including mlx-community/gemma-2-2b