Views
No views yet

vllm serve RedHatAI/gemma-4-26B-A4B-it-FP8-dynamic \
--max-model-len 32768 \
--gpu-memory-utilization 0.90 \
--enable-auto-tool-choice \
--reasoning-parser gemma4 \
--tool-call-parser gemma4 \
--chat-template examples/tool_chat_template_gemma4.jinja \
--limit-mm-per-prompt '{"image": 4, "audio": 1}'Tip: For text-only workloads, pass--limit-mm-per-prompt '{"image": 0, "audio": 0}'to skip vision encoder memory allocation and free up GPU memory for a longer context window.
1from openai import OpenAI
2
3openai_api_key = "EMPTY"
4openai_api_base = "http://<your-server-host>:8000/v1"
5
6client = OpenAI(
7 api_key=openai_api_key,
8 base_url=openai_api_base,
9)
10
11model = "RedHatAI/gemma-4-26B-A4B-it-FP8-dynamic"
12
13messages = [
14 {"role": "user", "content": "Explain quantum mechanics clearly and concisely."},
15]
16
17outputs = client.chat.completions.create(
18 model=model,
19 messages=messages,
20 extra_body={"chat_template_kwargs": {"enable_thinking": True}},
21)
22
23generated_text = outputs.choices[0].message.content
24print(generated_text)1from llmcompressor import model_free_ptq
2
3MODEL_ID = "google/gemma-4-26B-A4B-it"
4SAVE_DIR = MODEL_ID.split("/")[1] + "-FP8-dynamic"
5
6model_free_ptq(
7 model_stub=MODEL_ID,
8 save_directory=SAVE_DIR,
9 scheme="FP8_DYNAMIC",
10 ignore=["lm_head", "re:.*embed.*", "re:.*router", "re:.*vision_tower.*"],
11)| Category | Benchmark | google/gemma-4-26B-A4B-it | RedHatAI/gemma-4-26B-A4B-it-FP8-dynamic | Recovery |
|---|---|---|---|---|
| Instruction Following | IFEval (0-shot, prompt-level strict) | 89.96 | 89.34 | 99.3% |
| IFEval (0-shot, inst-level strict) | 93.21 | 92.69 | 99.4% | |
| Reasoning | GSM8K Platinum (0-shot, strict-match) | 95.43 | 95.37 | 99.9% |
| MMLU-Pro (0-shot, custom-extract) | 83.47 | 83.26 | 99.7% | |
| MATH-500 (0-shot, pass@1) | 84.80 | 85.93 | 101.3% | |
| AIME 2025 (0-shot, pass@1) | 80.00 | 80.00 | 100.0% | |
| GPQA Diamond (0-shot, pass@1) | 73.20 | 74.75 | 102.1% | |
| Coding | LiveCodeBench v6 (0-shot, pass@1) | 74.48 | 73.90 | 99.2% |
| Category | Benchmark | google/gemma-4-26B-A4B-it | RedHatAI/gemma-4-26B-A4B-it-FP8-dynamic | Recovery |
|---|---|---|---|---|
| Instruction Following | IFEval (0-shot, prompt-level strict) | 94.39 | 95.07 | 100.7% |
| IFEval (0-shot, inst-level strict) | 96.16 | 96.60 | 100.5% | |
| Reasoning | GSM8K Platinum (0-shot, strict-match) | 95.95 | 95.64 | 99.7% |
| MMLU-Pro (0-shot, custom-extract) | 85.19 | 85.07 | 99.9% | |
| MATH-500 (0-shot, pass@1) | 85.87 | 85.93 | 100.1% | |
| AIME 2025 (0-shot, pass@1) | 88.75 | 91.67 | 103.3% | |
| GPQA Diamond (0-shot, pass@1) | 80.81 | 80.13 | 99.2% | |
| Coding | LiveCodeBench v6 (0-shot, pass@1) | 77.90 | 76.00 | 97.6% |
| Tool Calling | BFCLv4 Overall | 67.62% | 68.31% | 101.0% |
| BFCLv4 Single Turn | 83.85% | 83.04% | 99.0% | |
| BFCLv4 Multi-Turn | 62.13% | 64.50% | 103.8% | |
| BFCLv4 Agentic | 62.16% | 61.91% | 99.6% |
vllm serve RedHatAI/gemma-4-26B-A4B-it-FP8-dynamic \
--tensor-parallel-size 2 \
--max-model-len 69632 \
--gpu-memory-utilization 0.90 \
--enable-auto-tool-choice \
--reasoning-parser gemma4 \
--tool-call-parser gemma4 \
--chat-template examples/tool_chat_template_gemma4.jinja \
--limit-mm-per-prompt '{"image":0,"audio":0}' \
--async-scheduling \
--default-chat-template-kwargs '{"enable_thinking": true}'Note: To reproduce the results without thinking, remove--default-chat-template-kwargs '{"enable_thinking": true}'. To run without tool calling, remove--enable-auto-tool-choice,--tool-call-parser gemma4, and--reasoning-parser gemma4.
lm_eval --model local-chat-completions \
--tasks gsm8k_platinum_cot_llama \
--model_args "model=RedHatAI/gemma-4-26B-A4B-it-FP8-dynamic,max_length=69632,base_url=http://0.0.0.0:8000/v1/chat/completions,num_concurrent=32,max_retries=3,tokenized_requests=False,tokenizer_backend=None,timeout=1200" \
--num_fewshot 0 \
--apply_chat_template \
--output_path results_gsm8k_platinum.json \
--seed 1234 \
--gen_kwargs "do_sample=True,temperature=1.0,top_p=0.95,top_k=64,max_gen_toks=32000,seed=1234"lm_eval --model local-chat-completions \
--tasks mmlu_pro_chat \
--model_args "model=RedHatAI/gemma-4-26B-A4B-it-FP8-dynamic,max_length=69632,base_url=http://0.0.0.0:8000/v1/chat/completions,num_concurrent=32,max_retries=3,tokenized_requests=False,tokenizer_backend=None,timeout=1200" \
--num_fewshot 0 \
--apply_chat_template \
--output_path results_mmlu_pro.json \
--seed 1234 \
--gen_kwargs "do_sample=True,temperature=1.0,top_p=0.95,top_k=64,max_gen_toks=32000,seed=1234"lm_eval --model local-chat-completions \
--tasks ifeval \
--model_args "model=RedHatAI/gemma-4-26B-A4B-it-FP8-dynamic,max_length=69632,base_url=http://0.0.0.0:8000/v1/chat/completions,num_concurrent=32,max_retries=3,tokenized_requests=False,tokenizer_backend=None,timeout=1200" \
--num_fewshot 0 \
--apply_chat_template \
--output_path results_ifeval.json \
--seed 1234 \
--gen_kwargs "do_sample=True,temperature=1.0,top_p=0.95,top_k=64,max_gen_toks=32000,seed=1234"1model_parameters:
2 provider: hosted_vllm
3 model_name: hosted_vllm/RedHatAI/gemma-4-26B-A4B-it-FP8-dynamic
4 base_url: http://0.0.0.0:8000/v1
5 api_key: ''
6 timeout: 3600
7 concurrent_requests: 32
8 generation_parameters:
9 temperature: 1.0
10 max_new_tokens: 65536
11 top_p: 0.95
12 top_k: 64
13 seed: 1234seed in the config each time):lighteval endpoint litellm litellm_config.yaml 'math_500|0' \
--output-dir results/ --save-details
lighteval endpoint litellm litellm_config.yaml 'aime25|0' \
--output-dir results/ --save-details
lighteval endpoint litellm litellm_config.yaml 'gpqa:diamond|0' \
--output-dir results/ --save-details
lighteval endpoint litellm litellm_config.yaml 'lcb:codegeneration_v6|0' \
--output-dir results/ --save-detailsbfcl_eval/constants/model_config.pyapi_inference_model_map:1"gemma-4-26b-a4b-it-FP8-dynamic": ModelConfig(
2 model_name="gemma-4-26b-a4b-it-FP8-dynamic",
3 display_name="Gemma-4-26B-A4B-it-FP8-dynamic (FC)",
4 url="https://huggingface.co/RedHatAI/gemma-4-26B-A4B-it-FP8-dynamic",
5 org="Google",
6 license="Apache 2.0",
7 model_handler=OpenAICompletionsHandler,
8 input_price=None,
9 output_price=None,
10 is_fc_model=True,
11 underscore_to_dot=True,
12),bfcl_eval/constants/supported_models.py"gemma-4-26b-a4b-it-FP8-dynamic" to the SUPPORTED_MODELS list.--served-model-name flag ensures BFCL can find the model by its registered slug).bfcl generate --model gemma-4-26b-a4b-it-FP8-dynamic --test-category all
bfcl evaluate --model gemma-4-26b-a4b-it-FP8-dynamic --test-category all