inference-optimization / Qwen3.5-397B-A17B-speculator.dflash-extra

huggingface.co
Total runs: 33
24-hour runs: 0
7-day runs: 0
30-day runs: 18
Model's Last Updated: July 31 2026

Introduction of Qwen3.5-397B-A17B-speculator.dflash-extra

Model Details of Qwen3.5-397B-A17B-speculator.dflash-extra

RedHatAI/Qwen3.5-397B-A17B-speculator.dflash

This is a DFlash speculator model for Qwen/Qwen3.5-397B-A17B .

Training Details

This model was trained using the Speculators library on a subset of Magpie-Align/Magpie-Llama-3.1-Pro-300K-Filtered and the train_sft split of HuggingFaceH4/ultrachat_200k . Responses were regenerated by RedHatAI/Qwen3.5-397B-A17B and stored at Qwen3.5-397B-A17B-responses

Commands

Using the Speculators library and the helper scripts provided in the repo.

Prepare data
# In virtual environment with speculators installed
python scripts/prepare_data.py \
  --model Qwen/Qwen3.5-397B-A17B
  --data ./regenerated_data.jsonl \
  --assistant-pattern "<\|im_start\|>assistant\s*([\s\S]*?)<\|im_end\|>" \
  --output ./output \
  --seq-length 16384
Launch vLLM
# In (separate) virtual environment with [vLLM](https://github.com/imargulis/vllm/tree/fix/extract-hidden-states-hybrid-block-size) installed
CUDA_VISIBLE_DEVICES=0,1,2,3 vllm_venv/bin/python scripts/launch_vllm.py \
  Qwen/Qwen3.5-397B-A17B \
  --target-layer-ids 3 15 23 35 47 \
  --max-model-len  32000 \
  --reasoning-parser qwen3 \
  --language-model-only \
  --kv-cache-dtype fp8 \ 
  --max-num-batched-tokens 32768\
  --tensor-parallel-size 4 \ 
  --async-scheduling
Launch training

Must be run once vLLM has finished launching and is running in the background.

# In virtual environment with speculators installed
CUDA_VISIBLE_DEVICES=4,5,6,7 torchrun \
  --standalone \
  --nproc_per_node 4 \
  scripts/train.py \
  --verifier-name-or-path Qwen/Qwen3.5-397B-A17B \     
  --data-path ./output \    
  --on-missing generate \    
  --on-generate delete \    
  --scheduler-type cosine \    
  --draft-vocab-size 24576 \    
  --max-anchors 3072 \    
  --target-layer-ids 3 15 23 35 47 \
  --speculator-type dflash \     
  --logger trackio  \    
  --lr 0.0006 \    
  --epochs 5 \ 
  --draft-config 397_config.json
Model Specifications
Base Model Qwen/Qwen3.5-397B-A17B
Chat Template Qwen/Qwen3.5-397B-A17B (use /chat/completions endpoint)
Format Safetensors
License Apache 2.0
Validation Hardware Nvidia H200
Deployment
# Install vLLM from the required PR
pip install git+https://github.com/vllm-project/vllm.git  
                                                                                                                                                                                                                                                                                                          
# Deploy with speculative decoding                                                                                                                                                                                                                                                                        
vllm serve Qwen/Qwen3.5-397B-A17B \                                                                                                                                                                                                                                                                                
    --tensor-parallel-size 8 \                                                                                                                                                                                                                                                                            
    --max-num-batched-tokens 32768 \
    --attention-backend FLASH_ATTN \ 
    --speculative-config '{                                                                                                                                                                                                                                                                               
        "model": "RedHatAI/Qwen3.5-397B-A17B-speculator.dflash",                                                                                                                                                                                                                                                   
        "num_speculative_tokens": 7,                                                                                                                                                                                                                                                                   
        "method": "dflash"                                                                                                                                                                                                                                                                                
    }'
Acceptance Rates

Per-position token acceptance rates across datasets DFLASH:
(with reasoning enabled)

Dataset Pos 0 Pos 1 Pos 2 Pos 3 Pos 4 Pos 5 Pos 6 Avg. Length
HumanEval 83.9% 68.6% 56.6% 46.9% 39.1% 32.4% 26.2% 4.54
math_reasoning 85.5% 71.9% 61.1% 52.3% 44.6% 37.6% 31.2% 4.84
qa 69.8% 47.3% 33.1% 24.5% 18.8% 14.0% 10.1% 3.18
question 73.6% 52.0% 37.6% 28.6% 22.7% 18.0% 13.9% 3.46
rag 78.7% 59.3% 45.0% 34.7% 26.9% 20.7% 15.6% 3.81
summarization 72.5% 49.6% 34.8% 25.5% 19.1% 14.4% 10.6% 3.27
tool_call 73.9% 52.2% 36.7% 26.2% 18.8% 13.3% 9.7% 3.31
translation 67.1% 41.3% 23.6% 13.0% 7.0% 3.8% 2.0% 2.58
writing 73.6% 52.0% 37.6% 28.6% 22.6% 18.0% 13.9% 3.46

Per-position token acceptance rates across datasets MTP:
(with reasoning enabled)

Dataset Pos 0 Pos 1 Pos 2 Pos 3 Pos 4 Pos 5 Pos 6 Avg. Length
HumanEval 93.4% 84.8% 75.7% 67.0% 59.3% 52.1% 45.9% 5.78
math_reasoning 91.9% 81.7% 71.8% 63.0% 54.9% 47.3% 40.6% 5.51
qa 83.5% 64.5% 49.4% 38.7% 30.6% 24.0% 18.7% 4.09
question 84.7% 66.6% 52.0% 41.3% 33.4% 27.2% 22.1% 4.27
rag 87.2% 72.0% 59.2% 49.2% 40.9% 34.2% 28.7% 4.71
summarization 85.6% 68.6% 54.4% 43.3% 34.7% 27.9% 22.5% 4.37
tool_call 88.1% 73.0% 59.6% 48.5% 39.9% 32.9% 27.0% 4.69
translation 85.0% 65.4% 47.7% 34.2% 24.5% 17.5% 12.5% 3.87
writing 84.7% 66.6% 52.0% 41.2% 33.3% 27.2% 22.1% 4.27
Latency Speedup

Speedup comparisons of DFlash speculative decoding vs. baseline (no speculation) at varying request rates on Nvidia H200:















References

Paper : DFlash: Block Diffusion for Flash Speculative Decoding

Runs of inference-optimization Qwen3.5-397B-A17B-speculator.dflash-extra on huggingface.co

33
Total runs
0
24-hour runs
-1
3-day runs
0
7-day runs
18
30-day runs

More Information About Qwen3.5-397B-A17B-speculator.dflash-extra huggingface.co Model

More Qwen3.5-397B-A17B-speculator.dflash-extra license Visit here:

https://choosealicense.com/licenses/apache-2.0

Qwen3.5-397B-A17B-speculator.dflash-extra huggingface.co

Qwen3.5-397B-A17B-speculator.dflash-extra huggingface.co is an AI model on huggingface.co that provides Qwen3.5-397B-A17B-speculator.dflash-extra's model effect (), which can be used instantly with this inference-optimization Qwen3.5-397B-A17B-speculator.dflash-extra model. huggingface.co supports a free trial of the Qwen3.5-397B-A17B-speculator.dflash-extra model, and also provides paid use of the Qwen3.5-397B-A17B-speculator.dflash-extra. Support call Qwen3.5-397B-A17B-speculator.dflash-extra model through api, including Node.js, Python, http.

Qwen3.5-397B-A17B-speculator.dflash-extra huggingface.co Url

https://huggingface.co/inference-optimization/Qwen3.5-397B-A17B-speculator.dflash-extra

inference-optimization Qwen3.5-397B-A17B-speculator.dflash-extra online free

Qwen3.5-397B-A17B-speculator.dflash-extra huggingface.co is an online trial and call api platform, which integrates Qwen3.5-397B-A17B-speculator.dflash-extra's modeling effects, including api services, and provides a free online trial of Qwen3.5-397B-A17B-speculator.dflash-extra, you can try Qwen3.5-397B-A17B-speculator.dflash-extra online for free by clicking the link below.

inference-optimization Qwen3.5-397B-A17B-speculator.dflash-extra online free url in huggingface.co:

https://huggingface.co/inference-optimization/Qwen3.5-397B-A17B-speculator.dflash-extra

Qwen3.5-397B-A17B-speculator.dflash-extra install

Qwen3.5-397B-A17B-speculator.dflash-extra is an open source model from GitHub that offers a free installation service, and any user can find Qwen3.5-397B-A17B-speculator.dflash-extra on GitHub to install. At the same time, huggingface.co provides the effect of Qwen3.5-397B-A17B-speculator.dflash-extra install, users can directly use Qwen3.5-397B-A17B-speculator.dflash-extra installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

Qwen3.5-397B-A17B-speculator.dflash-extra install url in huggingface.co:

https://huggingface.co/inference-optimization/Qwen3.5-397B-A17B-speculator.dflash-extra

Url of Qwen3.5-397B-A17B-speculator.dflash-extra

Qwen3.5-397B-A17B-speculator.dflash-extra huggingface.co Url

Provider of Qwen3.5-397B-A17B-speculator.dflash-extra huggingface.co

inference-optimization
ORGANIZATIONS

Other API from inference-optimization