Views
No views yet
Disclaimer: This is a quantized checkpoint intended for development and testing of the ExecuTorch CUDA export pipeline. The output quality has not been formally evaluated against the base model. Use at your own discretion for production workloads.
| Component | Bits | Method | Group Size |
|---|---|---|---|
| Most linear layers (q, k, o, gate, up, lm_head) | INT4 | HQQ (asymmetric) | 32 |
| Sensitive layers (v_proj, down_proj on layers 0-14, 45-59) | INT8 | min_max | 32 |
| Embedding | INT8 | min_max | per-axis |
| Norms, layer_scalar | bf16 | — | — |
huggingface-cli download SocialLocalMobile/gemma-4-31B-it-HQQ-INT4 --local-dir gemma-4-31B-it-HQQ-INT41cd executorch/examples/models/gemma4_31b
2python inference.py \
3 --prequantized /path/to/gemma-4-31B-it-HQQ-INT4 \
4 --prompt "The capital of France is" \
5 --max-new-tokens 1281cd executorch/examples/models/gemma4_31b
2python export.py \
3 --prequantized /path/to/gemma-4-31B-it-HQQ-INT4 \
4 --output-dir ./gemma4_31b_exports \
5 --backend cuda1make gemma4_31b-cuda
2
3cmake-out/examples/models/gemma4_31b/gemma4_31b_runner \
4 --model_path ./gemma4_31b_exports/model.pte \
5 --data_path ./gemma4_31b_exports/aoti_cuda_blob.ptd \
6 --tokenizer_path /path/to/gemma-4-31B-it-HQQ-INT4/tokenizer.json \
7 --prompt "Write a short joke about saving RAM." \
8 --max_new_tokens 128| File | Description |
|---|---|
model.safetensors | Quantized weights (torchao Int4Tensor + IntxUnpackedToInt8Tensor + bf16) |
config.json | Model architecture configuration |
tokenizer.json | HuggingFace tokenizer |
tokenizer_config.json | Tokenizer configuration |
1cd executorch/examples/models/gemma4_31b
2
3python quantize_and_save.py \
4 --model-dir /path/to/gemma-4-31B-it \
5 --output /path/to/gemma-4-31B-it-HQQ-INT4 \
6 --quant-recipe sensitive