Image-Text-to-Text
MLX
Safetensors
gemma4
rotorquant
kv-cache-quantization
gemma
multimodal
quantized
2bit
2-bit
Instructions to use majentik/gemma-4-E4B-RotorQuant-MLX-2bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use majentik/gemma-4-E4B-RotorQuant-MLX-2bit with MLX:
# Make sure mlx-vlm is installed # pip install --upgrade mlx-vlm from mlx_vlm import load, generate from mlx_vlm.prompt_utils import apply_chat_template from mlx_vlm.utils import load_config # Load the model model, processor = load("majentik/gemma-4-E4B-RotorQuant-MLX-2bit") config = load_config("majentik/gemma-4-E4B-RotorQuant-MLX-2bit") # Prepare input image = ["http://images.cocodataset.org/val2017/000000039769.jpg"] prompt = "Describe this image." # Apply chat template formatted_prompt = apply_chat_template( processor, config, prompt, num_images=1 ) # Generate output output = generate(model, processor, formatted_prompt, image) print(output) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
Card accuracy pass 2: remove unmeasured speed claims, honest brand labels
Browse files
README.md
CHANGED
|
@@ -33,7 +33,7 @@ pipeline_tag: image-text-to-text
|
|
| 33 |
|
| 34 |
# Gemma 4 E4B - RotorQuant MLX 2-bit
|
| 35 |
|
| 36 |
-
**2-bit weight-quantized MLX version** of [google/gemma-4-E4B](https://huggingface.co/google/gemma-4-E4B) with the legacy RotorQuant KV-cache fork (superseded by upstream llama.cpp KV options). Optimized for Apple Silicon inference via the [MLX](https://github.com/ml-explore/mlx) framework.
|
| 37 |
|
| 38 |
Approximate model size: **~1.2 GB**
|
| 39 |
|
|
|
|
| 33 |
|
| 34 |
# Gemma 4 E4B - RotorQuant MLX 2-bit
|
| 35 |
|
| 36 |
+
**2-bit weight-quantized MLX version** of [google/gemma-4-E4B](https://huggingface.co/google/gemma-4-E4B) with the legacy RotorQuant KV-cache fork (superseded by upstream llama.cpp KV options). Optimized for Apple Silicon inference via the [MLX](https://github.com/ml-explore/mlx) framework. The most aggressive quantization, fitting the full model in the smallest possible footprint.
|
| 37 |
|
| 38 |
Approximate model size: **~1.2 GB**
|
| 39 |
|