Instructions to use unsloth/gemma-4-26b-a4b-it-UD-MLX-4bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Local Apps Settings
- Unsloth Studio
How to use unsloth/gemma-4-26b-a4b-it-UD-MLX-4bit with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for unsloth/gemma-4-26b-a4b-it-UD-MLX-4bit to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for unsloth/gemma-4-26b-a4b-it-UD-MLX-4bit to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for unsloth/gemma-4-26b-a4b-it-UD-MLX-4bit to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="unsloth/gemma-4-26b-a4b-it-UD-MLX-4bit", max_seq_length=2048, )
Declare compatibility with the MLX library
#2
by l2dy - opened
Unlike https://huggingface.co/unsloth/Qwen3.6-35B-A3B-UD-MLX-3bit, this model (unsloth/gemma-4-26b-a4b-it-UD-MLX-4bit) is not listed on https://huggingface.co/models?library=mlx.
Yeah, their Gemma model cards are all missing a mlx tag and library_name: mlx . I pushed a PR for a separate Gemma version. If you use LM Studio, you can still get and run it, though, by downloading it.
hf download unsloth/gemma-4-26b-a4b-it-UD-MLX-4bit \
--local-dir ~/.lmstudio/models/unsloth/gemma-4-26b-a4b-it-UD-MLX-4bit
For Unsloth team:mlx tag gets it into LM Studio's filterlibrary_name forces HuggingFace to treat it as MLX instead of bare Safetensors.