Gemma 3n - Text Only (LM)
					Collection
				
Google's Gemma 3n converted to MLX using mlx-lm
					• 
				4 items
				• 
				Updated
					
				•
					
					1
This model mlx-community/gemma-3n-E4B-it-lm-4bit was converted to MLX format from google/gemma-3n-E4B-it using mlx-lm version 0.25.2.
pip install mlx-lm
from mlx_lm import load, generate
model, tokenizer = load("mlx-community/gemma-3n-E4B-it-lm-4bit")
prompt = "hello"
if tokenizer.chat_template is not None:
    messages = [{"role": "user", "content": prompt}]
    prompt = tokenizer.apply_chat_template(
        messages, add_generation_prompt=True
    )
response = generate(model, tokenizer, prompt=prompt, verbose=True)