GSM8K 8-shot evaluation on the full 1319-question test split using vLLM's
OpenAI-compatible chat API (temperature=0, concurrency=16, max_tokens=512,
standard chat template, and final-answer format #### <answer>). Values are
only populated when this card is regenerated with EVAL_BASELINE_JSON and/or
EVAL_QUANT_JSON from eval_gsm8k_chat_vllm.py.
1# Generic vLLM serve command. Use TP=4 for 4x24GB RDNA3 cards.
2vllm serve valoomba/Gemma-4-31B-it-uncensored-heretic-Quark-W8A8-INT8 \
3 --tensor-parallel-size 4 \
4 --max-model-len 8192 \
5 --gpu-memory-utilization 0.9 \
6 --limit-mm-per-prompt '{"image":0,"audio":0,"video":0}' \
7 --trust-remote-code
8
9# On the local RDNA3/gfx1100 vLLM fork, use the optimized INT8 Triton path:
10vllm serve valoomba/Gemma-4-31B-it-uncensored-heretic-Quark-W8A8-INT8 \
11 --tensor-parallel-size 4 \
12 --max-model-len 8192 \
13 --gpu-memory-utilization 0.9 \
14 --limit-mm-per-prompt '{"image":0,"audio":0,"video":0}' \
15 --trust-remote-code \
16 --linear-backend triton
1curl http://localhost:8000/v1/chat/completions \
2 -H "Content-Type: application/json" \
3 -d '{
4 "model": "valoomba/Gemma-4-31B-it-uncensored-heretic-Quark-W8A8-INT8",
5 "messages": [{"role": "user", "content": "Hello! What is the capital of France?"}],
6 "max_tokens": 256,
7 "temperature": 0.7
8 }'
1pip install amd-quark==0.11.1 huggingface_hub safetensors
2
3HIP_VISIBLE_DEVICES="" ROCR_VISIBLE_DEVICES="" CUDA_VISIBLE_DEVICES="" \
4MODEL_IN=llmfan46/gemma-4-31B-it-uncensored-heretic \
5MODEL_OUT=./Gemma-4-31B-it-uncensored-heretic-Quark-W8A8-INT8 \
6HF_REPO_ID=valoomba/Gemma-4-31B-it-uncensored-heretic-Quark-W8A8-INT8 \
7python quantize_gemma4_heretic_quark_w8a8_cpu.py
1weight: INT8, per_channel, ch_axis=0, symmetric=True, is_dynamic=False
2input: INT8, per_channel, ch_axis=1, symmetric=True, is_dynamic=True
1quantizer.direct_quantize_checkpoint(
2 pretrained_model_path=MODEL_IN,
3 save_path=MODEL_OUT,
4 device="cpu",
5)
If you use this model, please cite the original Gemma 4 release and the upstream
source model:
1@misc{google2026gemma4,
2 title = {Gemma 4},
3 author = {Google DeepMind},
4 year = {2026},
5 url = {https://huggingface.co/google/gemma-4-31B-it}
6}
This quantized derivative follows the license metadata of the upstream model,
which is listed as Apache 2.0 / Gemma 4 license metadata on Hugging Face. Check
the upstream model card and any included LICENSE / NOTICE files for complete
terms.
Modified files include the INT8-quantized safetensors checkpoint and the appended
Quark quantization_config block in config.json. No warranty of any kind is
provided.