Downloads · 30 days
1.4K
0% of all-time downloads
ciocan/gemma-4-E4B-it-W4A16
gemma-4-E4B-it-W4A16 is a image-text-to-text model from ciocan. Use it for the image-text-to-text task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as apache-2.0.
GPTQ 4-bit quantization of google/gemma-4-E4B-it.
Downloads · 30 days
1.4K
0% of all-time downloads
All-time downloads
412K
Public
Parameters
4B
10.1 GB on disk
Likes
3
Public
Click a slice to open those files.
.safetensors10.1 GB · 100%
How the weights are stored.
I324B · 50%
From the Hugging Face model README
GPTQ 4-bit quantization of google/gemma-4-E4B-it.
Fits in 12GB VRAM (RTX 3080 Ti, RTX 4070, etc.) with vLLM.
| Base model | google/gemma-4-E4B-it |
| Parameters | 8B total, 4B effective (PLE architecture) |
| Modalities | Text, Image, Audio, Video |
| Context | 128K native, 8K recommended for 12GB GPUs |
| License | Apache 2.0 |
| Method | auto-round (RTN mode, GPTQ-compatible output) |
| Bits | 4 |
| Group size | 128 |
| Symmetric | Yes |
| Format | auto_gptq (vLLM-compatible) |
| Quantized layers | Language model only (vision/audio towers kept at full precision) |
| Model loading VRAM | ~9.65 GiB |
vllm serve ./gemma-4-E4B-it-W4A16 \
--quantization gptq \
--max-model-len 8192 \
--enforce-eager \
--enable-auto-tool-choice \
--tool-call-parser gemma4 \
--port 8000
This model is supported as the e4b variant in the service script:
GEMMA_VARIANT=e4b ./service.sh up
GEMMA_VARIANT=e4b ./service.sh test
from openai import OpenAI
client = OpenAI(base_url="http://localhost:8000/v1", api_key="unused")
response = client.chat.completions.create(
model="gemma-4-E4B-it",
messages=[{"role": "user", "content": "What's the weather in Paris?"}],
tools=[{
"type": "function",
"function": {
"name": "get_weather",
"description": "Get the current weather for a location",
"parameters": {
"type": "object",
"properties": {
"location": {"type": "string"}
},
"required": ["location"],
},
},
}],
tool_choice="auto",
)
--max-model-len 8192 or lower. Reduce to 4096 if you hit OOM.