SenseNova-Loop-9B-DFlash2

SenseNova-Loop-9B-DFlash2 is a draft model for accelerating SenseNova-Loop-9B. It generates candidate tokens in parallel for verification by the target model and is deployed together with the target checkpoint.

The BF16 checkpoint contains 967M parameters and five decoder layers. Its input features combine hidden states from target execution-layer indices 3, 27, 51, and 54 with the target's final normalized hidden state. Indices are zero-based and follow the execution order of the shared Loop layers. Token embeddings and the output head are shared with the target.

Deployment

Use the LightLLM integration with the target and draft checkpoints. The evaluated environment used Python 3.10.20, PyTorch 2.11.0+cu130, Triton 3.6.0 and Transformers 5.8.0.

Until the integration is merged, use the PR branch with a configured LightLLM environment:

git clone --branch feat/sensenova-loop-dflash2 https://github.com/wangshiyu119/LightLLM.git
cd LightLLM

hf download sensenova/SenseNova-Loop-9B \
    --revision 3cc220e9c14bd7a74813c1299765e22147b1a3d5 \
    --local-dir /path/to/SenseNova-Loop-9B
hf download sensenova/SenseNova-Loop-9B-DFlash2 \
    --local-dir /path/to/SenseNova-Loop-9B-DFlash2

MODEL_DIR=/path/to/SenseNova-Loop-9B \
DRAFT_MODEL_DIR=/path/to/SenseNova-Loop-9B-DFlash2 \
CUDA_VISIBLE_DEVICES=0,1,2,3 \
bash test/start_scripts/sensenova_loop/sensenova_loop_dflash2.sh

The script uses tensor parallelism across four GPUs, normal serving mode, BF16 model loading, and FP32 linear-attention state. The default draft length is five tokens per verification round. Set MTP_STEP=7 for seven draft tokens per round, or METHOD=target to run the target model without speculative decoding. The script enables per-request acceptance statistics through the native LightLLM API.

The target backbone weights, tokenizer, and chat template used for the measurements below match SenseNova-Loop-9B, revision 3cc220e9. This DFlash2 draft is loaded separately from the target model's built-in multi-token prediction weights.

Measured throughput

Concurrency Target tokens/s DFlash2 tokens/s Speedup
1 125.61 268.37 2.137ร—
8 754.02 1392.79 1.847ร—
32 1899.32 2550.62 1.343ร—

Measurements used four NVIDIA H800 GPUs with tensor parallelism and a fixed draft length of five tokens. Both methods used BF16 model loading and FP32 linear-attention state. Each method and concurrency setting was evaluated once on 3,030 fixed prompts across nine benchmark subsets. Generation settings were temperature 1.0, top-p 1.0, top-k -1, and a maximum of 2,048 output tokens, with identical per-prompt seeds for both methods. The remaining four GPUs on the node ran a separate workload. The serving runtime used the DFlash2 integration based on LightLLM commit 38793654.

Project: SenseNova-Loop.

License

This checkpoint is licensed under the Apache License, Version 2.0. A copy of the license is included in this repository.

Downloads last month
394
Safetensors
Model size
1.0B params
Tensor type
BF16
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for sensenova/SenseNova-Loop-9B-DFlash2

Quantizations
1 model

Collection including sensenova/SenseNova-Loop-9B-DFlash2