Downloads · 30 days
8
11% of all-time downloads
derkar00/gemma-4-E2B-it-4bit-nf4
gemma-4-E2B-it-4bit-nf4 is a machine learning model from derkar00. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
4-bit NF4 quantized version of google/gemma-4-E2B-it.
Downloads · 30 days
8
11% of all-time downloads
All-time downloads
75
Public
Parameters
5.2B
6.8 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors6.7 GB · 100%
How the weights are stored.
BF162.8B · 53%
From the Hugging Face model README
4-bit NF4 quantized version of google/gemma-4-E2B-it.
Audio, video, and image inputs are fully preserved. Only the LLM backbone linear layers are quantized. Audio and image encoders remain at bfloat16.
bnb_4bit_quant_type: nf4bnb_4bit_use_double_quant: Truebnb_4bit_compute_dtype: bfloat16from transformers import AutoProcessor, AutoModelForImageTextToText
import torch
model = AutoModelForImageTextToText.from_pretrained(
"derkar00/gemma-4-E2B-it-4bit-nf4",
device_map="auto",
torch_dtype=torch.bfloat16,
)
processor = AutoProcessor.from_pretrained("derkar00/gemma-4-E2B-it-4bit-nf4")