Downloads · 30 days
16
2% of all-time downloads
aqweteddy/gemma-4-E4B-it-text
gemma-4-E4B-it-text is a text generation model from aqweteddy. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
This is the text-only (causal LM) version of google/gemma-4-E4B-it, with vision encoder weights removed. Only the text decoder is retained.
Downloads · 30 days
16
2% of all-time downloads
All-time downloads
823
Public
Parameters
7.5B
30 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors15 GB · 100%
From the Hugging Face model README
This is the text-only (causal LM) version of google/gemma-4-E4B-it, with vision encoder weights removed. Only the text decoder is retained.
License: Same as the original — see Gemma Terms of Use.
python3 -m vllm.entrypoints.openai.api_server \
--model /model \
--served-model-name '$MODEL' \
--tensor-parallel-size 1 \
--dtype auto \
--kv-cache-dtype fp8_e4m3 \
--max-model-len 32768 \
--gpu-memory-utilization '$GPU_MEM_UTIL' \
--enforce-eager \
--enable-chunked-prefill \
--max-num-batched-tokens 8192 \
--language-model-only \
--enable-auto-tool-choice \
--reasoning-parser gemma4 \
--tool-call-parser gemma4 \
--async-scheduling \
--enable-prefix-caching \
--host 0.0.0.0
If loading with transformers, the following missing-key warnings are expected and harmless due to Gemma 4's share_kv_layer mechanism (layers 24-41 share KV weights from earlier layers):
model = AutoModelForCausalLM.from_pretrained('aqweteddy/gemma-4-E4B-it-text')
# output
Key | Status |
-----------------------------------------------+---------+-
model.layers.{24...41}.self_attn.v_proj.weight | MISSING |
model.layers.{24...41}.self_attn.k_proj.weight | MISSING |
These do not affect generation results.
curl -s http://localhost:4315/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "gemma-4-E4B-it-causal",
"messages": [{"role": "user", "content": "Hello"}],
"max_tokens": 100
}'
Expected response:
{
"model": "gemma-4-E4B-it-causal",
"choices": [
{
"message": {
"role": "assistant",
"content": "Hello! How can I help you today?"
},
"finish_reason": "stop"
}
]
}