Instructions to use matrixportalx/gemma-4-E4B-it-assistant-MTP-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use matrixportalx/gemma-4-E4B-it-assistant-MTP-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf matrixportalx/gemma-4-E4B-it-assistant-MTP-GGUF:Q4_0 # Run inference directly in the terminal: llama cli -hf matrixportalx/gemma-4-E4B-it-assistant-MTP-GGUF:Q4_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf matrixportalx/gemma-4-E4B-it-assistant-MTP-GGUF:Q4_0 # Run inference directly in the terminal: llama cli -hf matrixportalx/gemma-4-E4B-it-assistant-MTP-GGUF:Q4_0
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf matrixportalx/gemma-4-E4B-it-assistant-MTP-GGUF:Q4_0 # Run inference directly in the terminal: ./llama-cli -hf matrixportalx/gemma-4-E4B-it-assistant-MTP-GGUF:Q4_0
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf matrixportalx/gemma-4-E4B-it-assistant-MTP-GGUF:Q4_0 # Run inference directly in the terminal: ./build/bin/llama-cli -hf matrixportalx/gemma-4-E4B-it-assistant-MTP-GGUF:Q4_0
Use Docker
docker model run hf.co/matrixportalx/gemma-4-E4B-it-assistant-MTP-GGUF:Q4_0
- LM Studio
- Jan
- Ollama
How to use matrixportalx/gemma-4-E4B-it-assistant-MTP-GGUF with Ollama:
ollama run hf.co/matrixportalx/gemma-4-E4B-it-assistant-MTP-GGUF:Q4_0
- Unsloth Studio
How to use matrixportalx/gemma-4-E4B-it-assistant-MTP-GGUF 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 matrixportalx/gemma-4-E4B-it-assistant-MTP-GGUF 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 matrixportalx/gemma-4-E4B-it-assistant-MTP-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for matrixportalx/gemma-4-E4B-it-assistant-MTP-GGUF to start chatting
- Atomic Chat new
- Docker Model Runner
How to use matrixportalx/gemma-4-E4B-it-assistant-MTP-GGUF with Docker Model Runner:
docker model run hf.co/matrixportalx/gemma-4-E4B-it-assistant-MTP-GGUF:Q4_0
- Lemonade
How to use matrixportalx/gemma-4-E4B-it-assistant-MTP-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull matrixportalx/gemma-4-E4B-it-assistant-MTP-GGUF:Q4_0
Run and chat with the model
lemonade run user.gemma-4-E4B-it-assistant-MTP-GGUF-Q4_0
List all available models
lemonade list
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf matrixportalx/gemma-4-E4B-it-assistant-MTP-GGUF:# Run inference directly in the terminal:
llama cli -hf matrixportalx/gemma-4-E4B-it-assistant-MTP-GGUF:Use pre-built binary
# Download pre-built binary from:
# https://github.com/ggerganov/llama.cpp/releases# Start a local OpenAI-compatible server with a web UI:
./llama-server -hf matrixportalx/gemma-4-E4B-it-assistant-MTP-GGUF:# Run inference directly in the terminal:
./llama-cli -hf matrixportalx/gemma-4-E4B-it-assistant-MTP-GGUF:Build from source code
git clone https://github.com/ggerganov/llama.cpp.git
cd llama.cpp
cmake -B build
cmake --build build -j --target llama-server llama-cli# Start a local OpenAI-compatible server with a web UI:
./build/bin/llama-server -hf matrixportalx/gemma-4-E4B-it-assistant-MTP-GGUF:# Run inference directly in the terminal:
./build/bin/llama-cli -hf matrixportalx/gemma-4-E4B-it-assistant-MTP-GGUF:Use Docker
docker model run hf.co/matrixportalx/gemma-4-E4B-it-assistant-MTP-GGUF:Gemma 4 E4B — MTP (assistant) head · GGUF
GGUF conversions of google/gemma-4-E4B-it-assistant, the Gemma 4
Multi-Token-Prediction (MTP) assistant head — architecture gemma4-assistant
in llama.cpp.
These are not a standalone chat model. This is the small speculative / draft-mtp head (~76M parameters) that runs alongside a Gemma 4 E4B main model to accelerate generation via speculative decoding. Load it as the draft model, not as the primary model.
Files
| File | Type |
|---|---|
gemma-4-E4B-it-assistant-f16.gguf |
F16 |
gemma-4-E4B-it-assistant-Q4_0.gguf |
Q4_0 |
gemma-4-E4B-it-assistant-Q6_K.gguf |
Q6_K |
gemma-4-E4B-it-assistant-Q8_0.gguf |
Q8_0 |
All variants are converted from the original bf16 checkpoint with
llama.cpp (commit f955e39).
Choosing a quantization
Most of this head's weights live in the token-embedding tensor, so quantization mainly shrinks the embedding:
- F16 — highest draft acceptance rate; recommended when disk isn't a concern.
- Q8_0 — near-F16 quality, ~half the size.
- Q6_K — smaller still, minor acceptance loss.
- Q4_0 — smallest; acceptance drops the most (the embedding is quantized to 4-bit).
Because the head is tiny to begin with, the size savings from lower bit-widths are modest while acceptance decreases — F16 or Q8_0 are the practical picks.
Usage (llama.cpp speculative decoding)
Use this file as the draft/MTP head together with a Gemma 4 E4B main model in a
llama.cpp build that supports gemma4 MTP (draft-mtp) speculative decoding.
The head shares the KV cache with the target model. Typical speculative-decoding
settings: n_max (draft length) of 3 tends to give the best throughput;
higher values reduce acceptance and can end up slower than no speculation.
Base model & license
Derived from the gated model
google/gemma-4-E4B-it-assistant.
Distributed under the Gemma license;
you are responsible for complying with Google's Gemma Terms of Use.
- Downloads last month
- 454
4-bit
6-bit
8-bit
16-bit
Model tree for matrixportalx/gemma-4-E4B-it-assistant-MTP-GGUF
Base model
google/gemma-4-E4B-it-assistant
Install (macOS, Linux)
# Start a local OpenAI-compatible server with a web UI: llama serve -hf matrixportalx/gemma-4-E4B-it-assistant-MTP-GGUF:# Run inference directly in the terminal: llama cli -hf matrixportalx/gemma-4-E4B-it-assistant-MTP-GGUF: