Downloads · 30 days
30
8% of all-time downloads
rj1013/gemma-4-26B-A4B-it_q8
gemma-4-26B-A4B-it_q8 is a image-text-to-text model from rj1013. 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 gemma.
This repository contains a vLLM-compatible, expert-only W8A16 quantization of google/gemma-4-26B-A4B-it.
Downloads · 30 days
30
8% of all-time downloads
All-time downloads
363
Public
Parameters
9.4B
30.2 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors30.2 GB · 100%
How the weights are stored.
I3222.8B · 86%
From the Hugging Face model README
This repository contains a vLLM-compatible, expert-only W8A16 quantization of
google/gemma-4-26B-A4B-it.
gate_proj, up_proj, and down_projcompressed-tensors / pack-quantizedThe compressed-tensors ignore metadata includes the missing v_proj aliases
for Gemma 4 global-attention layers so that vLLM can consistently fuse Q/K/V.
CompressedTensorsWNA16MarlinMoEMethod/v1/models and /v1/chat/completions: testeddocker run -d \
--name gemma4-vllm \
--gpus '"device=0"' \
--ipc=host \
--ulimit memlock=-1 \
-p 8000:8000 \
-v "$PWD:/model:ro" \
vllm/vllm-openai:v0.21.0 \
--model /model \
--served-model-name gemma-4-26B-A4B-it_q8 \
--host 0.0.0.0 \
--port 8000 \
--dtype bfloat16 \
--max-model-len 8192 \
--max-num-batched-tokens 4096 \
--gpu-memory-utilization 0.90
docker run -d \
--name gemma4-vllm \
--userns=keep-id \
--user "$(id -u):$(id -g)" \
--device nvidia.com/gpu=1 \
--ipc=host \
--ulimit memlock=-1 \
-p 18080:8000 \
-v "$PWD:/model:ro,Z" \
--entrypoint /usr/bin/python3 \
localhost/vllm/vllm-openai:v0.21.0-cu129-ubuntu2404-media \
-m vllm.entrypoints.openai.api_server \
--model /model \
--served-model-name gemma-4-26B-A4B-it_q8 \
--host 0.0.0.0 \
--port 8000 \
--dtype bfloat16 \
--max-model-len 8192 \
--max-num-batched-tokens 4096 \
--gpu-memory-utilization 0.90
Gemma 4 requires --max-num-batched-tokens to be greater than its multimodal
item token budget. The tested value is 4,096.
curl http://127.0.0.1:8000/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "gemma-4-26B-A4B-it_q8",
"messages": [
{"role": "user", "content": "Write a Python two_sum function in O(n)."}
],
"max_tokens": 256,
"temperature": 0.2
}'