Views
No views yet
train_sft split of HuggingFaceH4/ultrachat_200k. Responses were regenerated by Mistral-Small-4-119B-2603. The model was initialized from a full-attention DFlash checkpoint and finetuned with sliding window attention (window=2048) on all 5 draft layers.1# In virtual environment with speculators installed
2python scripts/prepare_data.py \
3 --model mistralai/Mistral-Small-4-119B-2603 \
4 --data ./regenerated_data.jsonl \
5 --output ./output/dflash_mistral_119b_sliding_window \
6 --seq-length 81921# In (separate) virtual environment with vllm installed
2CUDA_VISIBLE_DEVICES=0,1,2,3 python scripts/launch_vllm.py \
3 mistralai/Mistral-Small-4-119B-2603 \
4 --target-layer-ids 2 18 33 \
5 -- --port 8000 \
6 --tensor-parallel-size 4 \
7 --max-model-len 8194 \
8 --enforce-eager1# In virtual environment with speculators installed
2CUDA_VISIBLE_DEVICES=4,5,6,7 torchrun \
3 --standalone \
4 --nproc_per_node 4 \
5 scripts/train.py \
6 --verifier-name-or-path mistralai/Mistral-Small-4-119B-2603 \
7 --speculator-type dflash \
8 --from-pretrained ./output/dflash_mistral_119b_sliding_window/patched_checkpoint \
9 --data-path ./output/dflash_mistral_119b_sliding_window \
10 --vllm-endpoint http://localhost:8000/v1 \
11 --save-path ./output/dflash_mistral_119b_sliding_window/checkpoints \
12 --epochs 3 \
13 --lr 5e-5 \
14 --total-seq-len 8192 \
15 --max-anchors 1024 \
16 --loss-fn '{"ce": 0.1, "tv": 0.9}' \
17 --fsdp-shard \
18 --no-sample-from-anchor \
19 --on-missing generate \
20 --on-generate delete \
21 --checkpoint-freq 0.1| Base Model | mistralai/Mistral-Small-4-119B-2603 |
| Chat Template | mistralai/Mistral-Small-4-119B-2603 (use /chat/completions endpoint) |
| Format | Safetensors |
| License | Apache 2.0 |
| Validation Hardware | Nvidia H100 |
1# Install vLLM from the required PR
2pip install git+https://github.com/vllm-project/vllm.git@refs/pull/41880/head
3
4# Deploy with speculative decoding
5vllm serve mistralai/Mistral-Small-4-119B-2603 \
6 --tensor-parallel-size 4 \
7 --max-model-len 16384 \
8 --speculative-config '{
9 "model": "RedHatAI/Mistral-Small-4-119B-2603.dflash",
10 "num_speculative_tokens": 7,
11 "method": "dflash"
12 }'| Dataset | Pos 1 | Pos 2 | Pos 3 | Pos 4 | Pos 5 | Pos 6 | Pos 7 | Avg Length |
|---|---|---|---|---|---|---|---|---|
| HumanEval | 80.9% | 61.0% | 45.7% | 33.7% | 24.7% | 17.8% | 12.1% | 3.759 |
| math_reasoning | 91.7% | 77.5% | 65.5% | 55.0% | 45.1% | 36.0% | 27.4% | 4.982 |
| qa | 62.6% | 35.5% | 19.5% | 11.1% | 6.0% | 3.1% | 1.4% | 2.392 |
| question | 67.5% | 42.3% | 27.1% | 17.9% | 12.0% | 8.0% | 5.2% | 2.801 |
| rag | 65.9% | 39.7% | 22.8% | 13.5% | 8.1% | 4.2% | 2.2% | 2.565 |
| summarization | 65.1% | 36.2% | 19.3% | 10.7% | 5.6% | 2.8% | 1.0% | 2.407 |
| tool_call | 66.6% | 40.7% | 24.9% | 15.8% | 10.0% | 6.1% | 3.5% | 2.675 |
| translation | 71.5% | 40.9% | 20.1% | 9.0% | 4.0% | 1.5% | 0.8% | 2.478 |
| writing | 67.9% | 42.2% | 26.6% | 17.2% | 11.8% | 7.8% | 5.0% | 2.786 |
