Downloads · 30 days
33
23% of all-time downloads
tss-deposium/gemma-4-E4B-text-only-nvfp4
gemma-4-E4B-text-only-nvfp4 is a text generation model from tss-deposium. Use it when you need the model to write or continue text. The card lists the license as gemma.
NVFP4 quantization of Gemma 4 E4B's text decoder, produced via nvidia-modelopt. Hardware-agnostic checkpoint; inference requires NVIDIA Blackwell GPUs (RTX 50xx, B100/B200, GB200) via TensorRT-LLM.
Downloads · 30 days
33
23% of all-time downloads
All-time downloads
144
Public
Parameters
6B
9.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors9.5 GB · 100%
How the weights are stored.
F163.5B · 58%
From the Hugging Face model README
NVFP4 quantization of Gemma 4 E4B's text decoder, produced via nvidia-modelopt. Hardware-agnostic checkpoint; inference requires NVIDIA Blackwell GPUs (RTX 50xx, B100/B200, GB200) via TensorRT-LLM.
config.json # Gemma4ForCausalLM, NVFP4 quantization metadata
generation_config.json
tokenizer.json + tokenizer_config.json + chat_template.jinja
model.safetensors # NVFP4 weights (~5-6 GB)
This is the modelopt checkpoint, not a TRT-LLM engine.
# Download
git lfs install
git clone https://huggingface.co/tss-deposium/gemma-4-E4B-text-only-nvfp4
cd gemma-4-E4B-text-only-nvfp4
# Validate before the full build (~30s) — cheap signal for compatibility
trtllm-build --checkpoint_dir . --output_dir /tmp/dryrun \
--dry_run --log_level debug
# Full engine build (10-30 min on RTX 50xx)
trtllm-build --checkpoint_dir . \
--output_dir ./engine \
--gemm_plugin nvfp4 \
--max_batch_size 4 --max_input_len 4096 --max_seq_len 5120 \
--use_paged_context_fmha enable
from tensorrt_llm.runtime import ModelRunner
from transformers import AutoTokenizer
tok = AutoTokenizer.from_pretrained("tss-deposium/gemma-4-E4B-text-only-nvfp4")
runner = ModelRunner.from_dir("./engine")
prompt = tok.apply_chat_template(
[{"role": "user", "content": "Quelle est la capitale de la France ?"}],
tokenize=False, add_generation_prompt=True,
)
ids = tok(prompt, return_tensors="pt").input_ids.cuda()
out = runner.generate(ids, max_new_tokens=64)
print(tok.decode(out[0][0]))
tss-deposium/gemma-4-E4B-text-only-onnx-int4| This repo (NVFP4) | Sibling INT4 ONNX | |
|---|---|---|
| Hardware | Blackwell only | Any GPU + CPU fallback |
| Stack | TensorRT-LLM | ONNX Runtime |
| Vitesse | 1.5-3× INT4 ONNX on Blackwell | baseline |
| Portabilité | Self-hosted RTX 50xx only | Linux/Docker/Railway/cross-OS |
| Quality | ~97-99% MMLU | ~95-97% MMLU |
If you're not on Blackwell, or you need cross-platform deployment, use the INT4 ONNX repo.
google/gemma-4-E4B-it (multimodal — text decoder loaded directly via AutoModelForCausalLM)nvidia-modelopt NVFP4_DEFAULT_CFGdocs/gemma4_e4b_nvfp4_modelopt_export.ipynb