Views
No views yet
train_sft split of the HuggingFaceH4/ultrachat_200k dataset. Training data used Magpie + UltraChat with responses from the gemma-4-31B-it model (no reasoning)./chat/completions endpoint.VLLM_USE_PRECOMPILED=1 uv pip install -U --torch-backend=auto "vllm @ git+https://github.com/vllm-project/vllm.git@refs/pull/42095/head"1python scripts/prepare_data.py \
2 --model google/gemma-4-31B-it \
3 --data ./gemma4-31B-responses/magpie_gemma-4-31B-it.jsonl \
4 --data ./gemma4-31B-responses/ultrachat_gemma-4-31B-it.jsonl \
5 --output ./output1CUDA_VISIBLE_DEVICES=0,1,2,3 python scripts/launch_vllm.py \
2 google/gemma-4-31B-it \
3 --hidden-states-path ./output \
4 --target-layer-ids 1 17 29 47 58 60 \
5 -- --max-model-len 16384 \
6 -tp 2 \
7 --data-parallel-size 21CUDA_VISIBLE_DEVICES=4,5,6,7 torchrun \
2 --standalone \
3 --nproc_per_node=4 \
4 scripts/train.py \
5 --verifier-name-or-path google/gemma-4-31B-it \
6 --data-path ./output \
7 --on-missing generate \
8 --on-generate delete \
9 --scheduler-type cosine \
10 --draft-vocab-size 32000 \
11 --max-anchors 3072 \
12 --target-layer-ids 1 17 29 47 58 \
13 --speculator-type dflash \
14 --num-layers 5 \
15 --logger trackio \
16 --run-name dflash_5layers_5epochs \
17 --lr 0.0006 \
18 --epochs 5 \
19 --draft-hidden-act silu1uv pip install -U vllm \
2 --torch-backend=auto \
3 --extra-index-url https://wheels.vllm.ai/nightlyvllm serve -tp 2 RedHatAI/gemma-4-31B-it-speculator.dflash1vllm serve RedHatAI/gemma-4-31B-it-FP8-block --tensor-parallel-size 2 --speculative-config '{
2 "model": "RedHatAI/gemma-4-31B-it-speculator.dflash",
3 "num_speculative_tokens": 8,
4 "method": "dflash"
5 }'1vllm bench serve --backend openai-chat --endpoint /v1/chat/completions \
2 --dataset-name hf --tokenizer google/gemma-4-31B-it \
3 --dataset-path "philschmid/mt-bench" --num-prompts 80 \
4 --max-concurrency 1 --model RedHatAI/gemma-4-31B-it-speculator.dflash \
5 --hf-output-len 2048 \
6 --temperature 0 --save-result --save-detailed| Dataset | Pos 0 | Pos 1 | Pos 2 | Pos 3 | Pos 4 | Pos 5 | Pos 6 | Pos 7 | Avg. Length |
|---|---|---|---|---|---|---|---|---|---|
| HumanEval | 85.8% | 72.1% | 60.3% | 50.4% | 41.8% | 34.3% | 26.9% | 19.6% | 4.91 |
| math_reasoning | 88.7% | 76.1% | 64.8% | 54.9% | 45.5% | 36.5% | 28.8% | 21.5% | 5.17 |
| qa | 67.5% | 41% | 23.8% | 13.8% | 8.1% | 4.5% | 2.6% | 1.3% | 2.63 |
| question | 75.1% | 51.1% | 34.7% | 24.5% | 17.9% | 13% | 9.4% | 6.5% | 3.32 |
| rag | 76.1% | 54.8% | 39.8% | 28.7% | 19.9% | 12.9% | 7% | 3.8% | 3.43 |
| summarization | 67.3% | 39.9% | 22.3% | 12% | 6.4% | 3.1% | 1.5% | 0.7% | 2.53 |
| tool_call | 65.7% | 45.7% | 31.6% | 21.7% | 15% | 9.6% | 6.2% | 3.6% | 2.99 |
| translation | 73.4% | 51.4% | 35.3% | 23.6% | 15.6% | 9.3% | 5.4% | 2.6% | 3.17 |
| writing | 75.3% | 51.6% | 35.1% | 24.5% | 17.8% | 13% | 9.4% | 6.5% | 3.33 |