Downloads · 30 days
64
15% of all-time downloads
lsm0729/gemma-4-E4B-it-W8A8-INT8-GPTQ
gemma-4-E4B-it-W8A8-INT8-GPTQ is a any-to-any model from lsm0729. Use it for the any-to-any 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.
This repository contains an INT8 W8A8 GPTQ quantized checkpoint derived from google/gemma-4-E4B-it.
Downloads · 30 days
64
15% of all-time downloads
All-time downloads
419
Public
Parameters
7.9B
12 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors12 GB · 100%
How the weights are stored.
BF164.1B · 51%
From the Hugging Face model README
This repository contains an INT8 W8A8 GPTQ quantized checkpoint derived from google/gemma-4-E4B-it.
The original Gemma 4 E4B IT model was developed by Google DeepMind and is released under the Apache 2.0 license. This quantized checkpoint keeps the same license metadata and links to Google's Gemma license page: https://ai.google.dev/gemma/docs/gemma_4_license
google/gemma-4-E4B-itllmcompressorGPTQModifierW8A8actorder: nullHuggingFaceH4/ultrachat_200k, split train_sftMultimodal encoders, lm_head, Gemma 4 AltUp/Laurel modules, and per-layer
embedding projection paths were excluded from quantization and kept in BF16.
The language-model attention and MLP Linear layers were quantized.
See recipe.yaml and config.json for the serialized quantization metadata.
from transformers import AutoProcessor, AutoModelForImageTextToText
model_id = "lsm0729/gemma-4-E4B-it-W8A8-INT8-GPTQ"
processor = AutoProcessor.from_pretrained(model_id, trust_remote_code=True)
model = AutoModelForImageTextToText.from_pretrained(
model_id,
dtype="auto",
device_map="auto",
trust_remote_code=True,
)
For vLLM-based evaluation in this environment, the quantized checkpoint was
tested with linear_backend=triton.
lm-eval run \
--model vllm \
--model_args 'pretrained=lsm0729/gemma-4-E4B-it-W8A8-INT8-GPTQ,dtype=auto,add_bos_token=false,max_model_len=15000,gpu_memory_utilization=0.5,enable_chunked_prefill=True,enforce_eager=True,trust_remote_code=True,linear_backend=triton' \
--tasks mmlu_llama \
--batch_size auto \
--num_fewshot 5 \
--apply_chat_template \
--fewshot_as_multiturn
The base model card reports Gemma 4 E4B MMLU Pro performance of 69.4%. This repository is a post-training quantized derivative; benchmark scores can differ from the original BF16 checkpoint depending on the harness, prompt template, thinking mode, backend, and runtime settings.
lsm0729