Views
No views yet


vllm serve RedHatAI/Qwen3.5-35B-A3B-FP8-dynamic --reasoning-parser qwen3 --language-model-onlyvllm serve RedHatAI/Qwen3.5-35B-A3B-FP8-dynamic --reasoning-parser qwen3vllm serve RedHatAI/Qwen3.5-35B-A3B-FP8-dynamic --reasoning-parser qwen3 --enable-auto-tool-choice --tool-call-parser qwen3_codervllm serve RedHatAI/Qwen3.5-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.5-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.5-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:.*mlp\\.shared_expert$",
28 "re:.*linear_attn.*",
29 ],
30)
31
32# Apply quantization.
33oneshot(model=model, recipe=recipe)
34
35# Save to disk in compressed-tensors format.
36SAVE_DIR = MODEL_ID.rstrip("/").split("/")[-1] + "-FP8-dynamic"
37model.save_pretrained(SAVE_DIR)
38processor.save_pretrained(SAVE_DIR)--language-model-only.| Category | Benchmark | Qwen/Qwen3.5-35B-A3B | RedHatAI/Qwen3.5-35B-A3B-FP8-dynamic | Recovery |
|---|---|---|---|---|
| Reasoning | GSM8K-Platinum (0-shot) | 94.98 | 95.12 | 100.1% |
| MMLU-Pro (0-shot) | 85.65 | 85.65 | 100.0% | |
| Math 500 (0-shot) | 84.93 | 84.33 | 99.3% | |
| AIME 25 (0-shot) | 91.25 | 91.25 | 100.0% | |
| GPQA Diamond (0-shot) | 83.00 | 83.16 | 100.2% | |
| Instruction Following | IFEval prompt-level strict (0-shot) | 91.00 | 90.45 | 99.4% |
| IFEval inst-level strict (0-shot) | 93.69 | 93.29 | 99.6% | |
| Coding | LiveCodeBench v6 (0-shot) | 75.43 | 76.38 | 101.3% |
vllm serve RedHatAI/Qwen3.5-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.5-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.5-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.5-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.5-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-details