Views
No views yet


vllm serve RedHatAI/Qwen3.6-35B-A3B-FP8-dynamic --reasoning-parser qwen3 --language-model-onlyvllm serve RedHatAI/Qwen3.6-35B-A3B-FP8-dynamic --reasoning-parser qwen3vllm serve RedHatAI/Qwen3.6-35B-A3B-FP8-dynamic --reasoning-parser qwen3 --enable-auto-tool-choice --tool-call-parser qwen3_codervllm serve RedHatAI/Qwen3.6-35B-A3B-FP8-dynamic --reasoning-parser qwen3 --speculative-config '{"method":"qwen3_next_mtp","num_speculative_tokens":2}'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/Qwen3.6-35B-A3B-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)
21
22generated_text = outputs.choices[0].message.content
23print(generated_text)1from transformers import AutoProcessor, Qwen3_5MoeForConditionalGeneration
2from compressed_tensors.utils import save_mtp_tensors_to_checkpoint
3
4from llmcompressor import oneshot
5from llmcompressor.modifiers.quantization import QuantizationModifier
6
7MODEL_ID = "Qwen/Qwen3.6-35B-A3B"
8
9# Load model.
10model = Qwen3_5MoeForConditionalGeneration.from_pretrained(MODEL_ID, dtype="auto")
11processor = AutoProcessor.from_pretrained(MODEL_ID)
12
13# Configure the quantization algorithm and scheme.
14# In this case, we:
15# * quantize the weights to fp8 with channel-wise quantization
16# * quantize the activations to fp8 with dynamic per-token quantization
17recipe = QuantizationModifier(
18 targets="Linear",
19 scheme="FP8_DYNAMIC",
20 ignore=[
21 "re:.*lm_head",
22 "re:visual.*",
23 "re:model.visual.*",
24 "re:.*mlp.gate$",
25 "re:.*embed_tokens$",
26 "re:.*shared_expert_gate$",
27 "re:.*linear_attn.*",
28 ],
29)
30
31# Apply quantization.
32oneshot(model=model, recipe=recipe)
33
34# Save to disk in compressed-tensors format.
35SAVE_DIR = MODEL_ID.rstrip("/").split("/")[-1] + "-FP8-dynamic"
36model.save_pretrained(SAVE_DIR)
37processor.save_pretrained(SAVE_DIR)--language-model-only.| Benchmark | Qwen/Qwen3.6-35B-A3B | RedHatAI/Qwen3.6-35B-A3B-FP8-dynamic | Recovery (%) |
|---|---|---|---|
| GSM8k Platinum | 95.73 | 95.62 | 99.88 |
| IfEval | 93.09 | 92.69 | 99.57 |
| AIME 2025 | 92.92 | 92.50 | 99.55 |
| GPQA diamond | 84.51 | 84.85 | 100.40 |
| Math 500 | 84.80 | 84.73 | 99.92 |
| Lcb Codegeneration V6 | 77.33 | 78.86 | 101.97 |
| MMLU Pro Chat | 85.32 | 85.36 | 100.05 |
| BFCLv4 Overall | 57.83 | 57.94 | 100.19 |
| BFCLv4 Single Turn | 53.81 | 53.33 | 99.11 |
| BFCLv4 Multi-Turn | 62.250 | 60.880 | 97.80 |
| BFCLv4 Agentic | 49.910 | 51.310 | 102.81 |
| SWEBench Verified | 54.8 | 52 | 94.89 |
vllm serve RedHatAI/Qwen3.6-35B-A3B-FP8-dynamic --reasoning-parser qwen3 --language-model-only --max-model-len 96000lm_eval --model local-chat-completions \
--tasks gsm8k_platinum_cot_llama \
--model_args "model=RedHatAI/Qwen3.6-35B-A3B-FP8-dynamic,max_length=96000,base_url=http://0.0.0.0:8000/v1/chat/completions,num_concurrent=128,max_retries=3,tokenized_requests=False,tokenizer_backend=None,timeout=2400" \
--num_fewshot 0 \
--apply_chat_template \
--output_path results.json \
--seed 42 \
--gen_kwargs "do_sample=true,temperature=1.0,top_p=0.95,top_k=20,min_p=0.0,max_gen_toks=64000,presence_penalty=1.5,repetition_penalty=1.0,seed=42"lm_eval --model local-chat-completions \
--tasks ifeval \
--model_args "model=RedHatAI/Qwen3.6-35B-A3B-FP8-dynamic,max_length=96000,base_url=http://0.0.0.0:8000/v1/chat/completions,num_concurrent=128,max_retries=3,tokenized_requests=False,tokenizer_backend=None,timeout=2400" \
--apply_chat_template \
--output_path results.json \
--seed 42 \
--gen_kwargs "do_sample=true,temperature=1.0,top_p=0.95,top_k=20,min_p=0.0,max_gen_toks=64000,presence_penalty=1.5,repetition_penalty=1.0,seed=42"lm_eval --model local-chat-completions \
--tasks mmlu_pro_chat \
--model_args "model=RedHatAI/Qwen3.6-35B-A3B-FP8-dynamic,max_length=96000,base_url=http://0.0.0.0:8000/v1/chat/completions,num_concurrent=128,max_retries=3,tokenized_requests=False,tokenizer_backend=None,timeout=3600" \
--num_fewshot 0 \
--apply_chat_template \
--output_path results.json \
--seed 42 \
--gen_kwargs "do_sample=true,temperature=1.0,top_p=0.95,top_k=20,min_p=0.0,max_gen_toks=64000,presence_penalty=1.5,repetition_penalty=1.0,seed=42"1model_parameters:
2 provider: "hosted_vllm"
3 model_name: "hosted_vllm/RedHatAI/Qwen3.6-35B-A3B-FP8-dynamic"
4 base_url: "http://0.0.0.0:8000/v1"
5 api_key: ""
6 timeout: 2400
7 concurrent_requests: 64
8 generation_parameters:
9 temperature: 1.0
10 max_new_tokens: 64000
11 top_p: 0.95
12 top_k: 20
13 min_p: 0.0
14 presence_penalty: 1.5
15 repetition_penalty: 1.0
16 seed: 0lighteval endpoint litellm litellm_config.yaml \
"math_500|0,gpqa:diamond|0,lcb:codegeneration_v6|0" \
--output-dir results \
--save-detailslighteval endpoint litellm litellm_config.yaml \
"aime25|0" \
--output-dir results \
--save-detailsbfcl_eval/constants/model_config.pyapi_inference_model_map:1"Qwen3.6-35B-A3B-FP8-dynamic": ModelConfig(
2 model_name="Qwen3.6-35B-A3B-FP8-dynamic",
3 display_name="Qwen3.6-35B-A3B-FP8-dynamic (FC)",
4 url="https://huggingface.co/RedHatAI/Qwen3.6-35B-A3B-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"Qwen3.6-35B-A3B-FP8-dynamic" to the SUPPORTED_MODELS list.--served-model-name flag ensures BFCL can find the model by its registered slug).bfcl generate --model Qwen3.6-35B-A3B-FP8-dynamic --test-category all
bfcl evaluate --model Qwen3.6-35B-A3B-FP8-dynamic --test-category all