Image-Text-to-Text
MLX
Safetensors
gemma4_unified
quantized
gemma
gemma4
apple-silicon
turboquant
4-bit precision
Instructions to use majentik/gemma-4-12B-TurboQuant-MLX-MXFP4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use majentik/gemma-4-12B-TurboQuant-MLX-MXFP4 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-12B-TurboQuant-MLX-MXFP4") config = load_config("majentik/gemma-4-12B-TurboQuant-MLX-MXFP4") # 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
Card accuracy sweep: honest brand labeling, remove dead links, upstream KV tip
Browse files
README.md
CHANGED
|
@@ -48,4 +48,3 @@ output = generate(
|
|
| 48 |
## License
|
| 49 |
|
| 50 |
Governed by the [Gemma Terms of Use](https://ai.google.dev/gemma/terms). See the upstream repo for the full license text.
|
| 51 |
-
|
|
|
|
| 48 |
## License
|
| 49 |
|
| 50 |
Governed by the [Gemma Terms of Use](https://ai.google.dev/gemma/terms). See the upstream repo for the full license text.
|
|
|