Views
No views yet
embed_tokens)lm_head)compressed-tensors quantization format.1vllm serve seraphimserapis/gemma-4-31B-it-NVFP4 \
2 --max-model-len 327681vllm serve seraphimserapis/gemma-4-31B-it-NVFP4 \
2 --max-model-len 32768 \
3 --reasoning-parser gemma4 \
4 --tool-call-parser gemma4 \
5 --enable-auto-tool-choice1from openai import OpenAI
2
3client = OpenAI(
4 api_key="EMPTY",
5 base_url="http://localhost:8000/v1",
6)
7
8response = client.chat.completions.create(
9 model="seraphimserapis/gemma-4-31B-it-NVFP4",
10 messages=[
11 {"role": "user", "content": "Explain quantum mechanics clearly and concisely."},
12 ],
13)
14print(response.choices[0].message.content)Tip: For text-only workloads, pass--limit-mm-per-prompt image=0to skip vision encoder memory allocation. Use--gpu-memory-utilization 0.90to maximize KV cache capacity.
1auto-round google/gemma-4-31B-it \
2 --output_dir ./quantized \
3 --scheme NVFP4| Parameter | Value |
|---|---|
bits | 4 |
group_size | 16 |
data_type | nv_fp |
act_data_type | nv_fp4_with_static_gs |
act_group_size | 16 |
nsamples | 64 |
seqlen | 512 |
symmetric | yes (weights and activations) |
packing_format | auto_round:llm_compressor |
compressed-tensors format for vLLM compatibility. The safetensors weights are identical to AutoRound's llm_compressor packing output — only the metadata in config.json was adjusted.| File | Description |
|---|---|
model-00001-of-00005.safetensors – model-00005-of-00005.safetensors | Quantized model weights (~20 GB total) |
config.json | Model config with compressed-tensors quantization config |
tokenizer.json, tokenizer_config.json | Tokenizer files (from base model) |
chat_template.jinja | Chat template (from base model) |
generation_config.json | Generation config (from base model) |
preprocessor_config.json, processor_config.json | Processor configs (from base model) |