Views
No views yet
train_sft split of HuggingFaceH4/ultrachat_200k. Responses were regenerated by Qwen3-8B (with reasoning).1# In virtual environment with speculators installed
2python scripts/prepare_data.py \
3 --model Qwen/Qwen3-8B
4 --data ./regenerated_data.jsonl \
5 --output ./output \
6 --seq-length 81921# In (separate) virutal environment with vllm installed
2CUDA_VISIBLE_DEVICES=0,1 vllm_venv/bin/python scripts/launch_vllm.py \
3 Qwen/Qwen3-8B \
4 --target-layer-ids 2 10 18 26 34 \
5 -- --port 8000 \
6 --gpu-memory-utilization 0.9 \
7 --disable-uvicorn-access-log \
8 --tensor-parallel-size 1 \
9 --data-parallel-size 21# In virtual environment with speculators installed
2CUDA_VISIBLE_DEVICES=2,3 torchrun \
3 --standalone --nproc_per_node 2 \
4 scripts/train.py \
5 --verifier-name-or-path qwen/qwen3-8b \
6 --data-path output \
7 --vllm-endpoint http://localhost:8000/v1 \
8 --hidden-states-path output/hidden_states \
9 --save-path output/checkpoints \
10 --epochs 5 \
11 --lr 6e-4 \
12 --total-seq-len 8192 \
13 --speculator-type peagle \
14 --num-layers 4 \
15 --num-depths 7 \
16 --down-sample-ratio 0.6 \
17 --down-sample-ratio-min 0.2 \
18 --no-norm-before-residual \
19 --scheduler-type cosine \
20 --on-missing generate \
21 --on-generate delete| Base Model | Qwen/Qwen3-8B |
| Chat Template | Qwen/Qwen3-8B (use /chat/completions endpoint) |
| Format | Safetensors |
| License | Apache 2.0 |
| Validation Hardware | Nvidia H100 |
1# Install vLLM
2
3# Deploy with speculative decoding
4vllm serve RedHatAI/Qwen3-8B-speculator.peagle| Dataset | Pos 1 | Pos 2 | Pos 3 | Pos 4 | Pos 5 | Pos 6 | Pos 7 | Avg Length |
|---|---|---|---|---|---|---|---|---|
| HumanEval | 81.3% | 59.0% | 41.1% | 27.9% | 18.8% | 12.8% | 8.9% | 3.500 |
| math_reasoning | 83.3% | 63.5% | 47.0% | 34.3% | 24.4% | 17.2% | 11.8% | 3.820 |
| qa | 70.5% | 44.7% | 27.6% | 17.1% | 10.8% | 7.1% | 4.8% | 2.830 |
| question | 74.6% | 49.6% | 31.6% | 20.2% | 13.1% | 8.5% | 5.6% | 3.030 |
| rag | 73.6% | 48.4% | 29.8% | 18.4% | 11.3% | 6.9% | 4.1% | 2.930 |
| summarization | 68.0% | 39.0% | 21.0% | 10.8% | 5.4% | 2.6% | 1.2% | 2.480 |
| tool_call | 73.7% | 47.6% | 28.7% | 17.1% | 10.3% | 6.2% | 3.7% | 2.870 |
| translation | 73.8% | 47.7% | 28.7% | 17.3% | 10.4% | 6.5% | 4.1% | 2.890 |
| writing | 75.0% | 50.0% | 32.1% | 20.6% | 13.3% | 8.7% | 5.7% | 3.050 |