Views
No views yet
Qwen/Qwen3.8-27B, produced with the AWQ algorithm using AMD Quark.Qwen/Qwen3.8-27B (Apache 2.0)| Benchmark | Setting | This model (AWQ) | BF16 base | Recovery % |
|---|---|---|---|---|
| GSM8K, 5-shot (flexible-extract / strict-match) | Thinking: temperature=1.0, top_p=0.95, top_k=20, min_p=0.0, presence_penalty=0.0, repetition_penalty=1.0, max_gen_toks=8192 | 91.21% / 90.67% | 93.33% / 93.33% | 97.7% |
| GSM8K, 5-shot (flexible-extract / strict-match) | Non-thinking: temperature=0.7, top_p=0.80, top_k=20, min_p=0.0, presence_penalty=1.5, repetition_penalty=1.0, max_gen_toks=8192 | 91.51% / 90.37% | 90.67% / 89.76% | 100.9% |
| Wikitext perplexity | Greedy | 8.8250 | 8.4364 | 95.6% |
| BFCL Overall Acc (single_turn)* | Greedy (harness default) | 24.06% | 24.38% | 98.7% |
single_turn categories, not the full Gorilla-leaderboard formula (multi-turn/web-search/memory categories were not run and would count as 0 against the public leaderboard's own Overall Acc). Sub-metrics: Non-Live AST 86.58% (base 88.52%), Live AST 81.57% (base 83.05%), Relevance Detection 75.00% (base 75.00%), Irrelevance Detection 72.47% (base 72.22%).Qwen/Qwen3.8-27B weights, not vendor-reported numbers. GSM8K uses lm-evaluation-harness; non-thinking mode is approximated by pre-closing an empty <think></think> block in the prompt, since the harness task is a raw few-shot completion rather than a chat-templated request. BFCL run via the official bfcl_eval harness.lm-evaluation-harness's native vLLM backend:1lm-eval run \
2 --model vllm \
3 --model_args pretrained=amd/Qwen3.8-27B-Quark-AWQ-INT4-W4A16,tensor_parallel_size=1,dtype=auto,gpu_memory_utilization=0.4,enforce_eager=True,trust_remote_code=True \
4 --tasks gsm8k \
5 --num_fewshot 5 \
6 --gen_kwargs max_gen_toks=8192,do_sample=True,temperature=1.0,top_p=0.95,top_k=20,min_p=0.0,presence_penalty=0.0,repetition_penalty=1.0 \
7 --batch_size auto \
8 --log_samples1# gsm8k_nothink.yaml
2task: gsm8k_nothink
3dataset_path: openai/gsm8k
4dataset_name: main
5output_type: generate_until
6training_split: train
7fewshot_split: train
8test_split: test
9doc_to_text: "Question: {{question}}\nAnswer: <think>\n\n</think>\n\n"
10doc_to_target: "{{answer}}"
11metric_list:
12 - metric: exact_match
13 aggregation: mean
14 higher_is_better: true
15 ignore_case: true
16 ignore_punctuation: false
17 regexes_to_ignore: [",", "\\$", "(?s).*#### ", "\\.$"]
18generation_kwargs:
19 until: ["Question:", "</s>", "<|im_end|>"]
20 do_sample: false
21 temperature: 0.0
22repeats: 1
23num_fewshot: 5
24filter_list:
25 - name: "strict-match"
26 filter: [{function: "regex", regex_pattern: "#### (\\-?[0-9\\.\\,]+)"}, {function: "take_first"}]
27 - name: "flexible-extract"
28 filter: [{function: "regex", group_select: -1, regex_pattern: "(-?[$0-9.,]{2,})|(-?[0-9]+)"}, {function: "take_first"}]
29metadata: {version: 3.0}1lm-eval run \
2 --model vllm \
3 --model_args pretrained=amd/Qwen3.8-27B-Quark-AWQ-INT4-W4A16,tensor_parallel_size=1,dtype=auto,gpu_memory_utilization=0.4,enforce_eager=True,trust_remote_code=True \
4 --tasks gsm8k_nothink \
5 --include_path <dir containing gsm8k_nothink.yaml> \
6 --num_fewshot 5 \
7 --gen_kwargs max_gen_toks=8192,do_sample=True,temperature=0.7,top_p=0.80,top_k=20,min_p=0.0,presence_penalty=1.5,repetition_penalty=1.0 \
8 --batch_size auto \
9 --log_samples--gen_kwargs on the CLI overrides the YAML task's own generation_kwargs defaults (greedy) with the instruct-mode recommended sampling parameters used for the non-thinking scores above.1python3 quantize_quark.py \
2 --model_dir Qwen/Qwen3.8-27B \
3 --output_dir Qwen3.8-27B-Quark-AWQ-INT4-W4A16 \
4 --quant_scheme int4_wo_128 \
5 --num_calib_data 128 \
6 --seq_len 512 \
7 --quant_algo awq \
8 --model_export hf_format \
9 --data_type auto \
10 --device cudaQuark/examples/torch/language_modeling/llm_ptq using AMD Quark with native qwen3_5 architecture support for AWQ (contributed upstream).1vllm serve amd/Qwen3.8-27B-Quark-AWQ-INT4-W4A16 \
2 --trust-remote-code \
3 --tensor-parallel-size 1 \
4 --reasoning-parser qwen3