Gemma 4 E2B IT Q8_K_XL GGUF Dequantized BF16 for vLLM
This private artifact was converted from unsloth/gemma-4-E2B-it-GGUF file gemma-4-E2B-it-UD-Q8_K_XL.gguf into standalone Gemma4 text safetensors for Transformers and vLLM.
The converter streams GGUF tensors, dequantizes them to fp32, maps Gemma4 text/PLE tensor names, then casts once to BF16 before writing sharded safetensors. The output config is rewritten from the multimodal gemma4 wrapper to standalone gemma4_text / Gemma4ForCausalLM.
Validation
- GGUF dry-run mapping: 601 input tensors; 600 mapped,
rope_freqs.weightskipped as runtime metadata. - Output index: 600 HF keys, 4 safetensor shards,
9,294,899,782bytes. - Transformers load: passed as
Gemma4ForCausalLMwith tied embeddings and no missing language weights. - Numeric spot-checks: passed with
max_abs_vs_bf16=0for sampled embeddings, PLE projection/norm, layer norms, local attention, global attention, and layer scalar tensors. - Transformers chat-template generation smoke: passed.
- vLLM chat-completions smoke: passed on vLLM 0.23.0.
vLLM command used
VLLM_USE_FLASHINFER_SAMPLER=0 vllm serve /path/to/model --served-model-name gemma-4-e2b-it-gguf-q8_k_xl-bf16 --dtype bfloat16 --max-model-len 4096 --gpu-memory-utilization 0.5 --trust-remote-code
This is an instruction model; use the chat template or /v1/chat/completions for behavioral smoke tests.