Views
No views yet
-it) for chat and task-following.| Device | RAM | Experience |
|---|---|---|
| Any M-series Mac (16GB+) | ~8GB | ✅ Fast and smooth |
| M1 MacBook Air (8GB) | ~8GB | ⚠️ Tight — works but little headroom |
| M3 Max / Pro | ~8GB | ✅ Near-instant |
pip install mlx-lm1from mlx_lm import load, generate
2
3model, tokenizer = load("Rapid42/gemma-4-E4B-it-MLX")
4
5messages = [{"role": "user", "content": "What are the key advantages of MLX over PyTorch for Apple Silicon?"}]
6prompt = tokenizer.apply_chat_template(
7 messages, add_generation_prompt=True, return_dict=False
8)
9
10response = generate(model, tokenizer, prompt=prompt, max_tokens=512, verbose=True)
11print(response)1pip install mlx-vlm
2python -m mlx_vlm.generate \
3 --model Rapid42/gemma-4-E4B-it-MLX \
4 --prompt "Describe what you see in this image." \
5 --image /path/to/image.jpg