RadixArk/Inkling-Small-DSpark
Inkling-Small DSpark speculator
Overview
A DSpark speculator for the Inkling-Small NVFP4 target, enabling faster inference through speculative decoding. DSpark extends the DFlash parallel-draft backbone with a Markov logit-bias head and a per-position confidence head. This checkpoint was trained with SpecForge using hidden states from a live SGLang target engine.
Model Specifications
- Base model:
thinkingmachines/Inkling-Small-NVFP4; the exact matching target checkpoint and tokenizer are required. - Format: Safetensors (single-file BF16, 1.39B trainable parameters; draft weights only).
- Draft: 6 layers (Qwen3-style GQA), hidden 4096, 32 heads / 8 KV heads, headdim 128, FFN 12288, ropetheta 8000000,
block_size=7. - RoPE: YaRN, factor 128,
original_max_position_embeddings=8192,max_position_embeddings=1048576(matches the target addressable range); config carries bothrope_scalingandrope_parametersschemas. - Vocabulary: 200,058 tokenizer entries and 201,024 padded weight rows;
mask_token_id=200064. - DSpark heads: Markov rank 256 (vanilla) and confidence head (with-Markov).
- Aux hidden-state layers:
[1, 6, 12, 17, 23, 28, 34, 39]. - Trained context: 8,192 native; long-context adaptation with sequences up to 65,536.
- Target weights: target embedding and unembedding weights are not included in this checkpoint.
Evaluation Results
Acceptance length over the full DeepSpec workload datasets. DSPARK block size 7, thinking effort 0.99, temperature 0 and temperature 1.0 / top-p 0.95:
RULER V2 at the 1M input configuration (50 prompts per partition, actual prompts 1,022,335–1,045,000 tokens):
Long-context acceptance is flat on held-out 16K–64K agentic trajectories (67 rows, temperature 0): 3.592 (8–16K), 3.560 (16–32K), 3.534 (32K+).
Serving with SGLang
Requires a SGLang build with DSpark support
SGLANG_ENABLE_UNIFIED_RADIX_TREE=1 \
sglang serve --trust-remote-code \
--model-path thinkingmachines/Inkling-Small-NVFP4 --tp 8 \
--quantization modelopt_fp4 --attention-backend fa4 --page-size 128 \
--fp4-gemm-backend flashinfer_trtllm --moe-runner-backend flashinfer_trtllm_routed \
--enable-torch-symm-mem --mamba-radix-cache-strategy extra_buffer \
--mem-fraction-static 0.60 --swa-full-tokens-ratio 0.1 --mamba-full-memory-ratio 0.1 \
--max-running-requests 68 --reasoning-parser inkling --tool-call-parser inkling \
--skip-server-warmup --speculative-algorithm DSPARK \
--speculative-draft-model-path RadixArk/Inkling-Small-DSpark \
--speculative-draft-model-quantization unquant \
--speculative-dspark-block-size 7 \
--chunked-prefill-size 8192 --cuda-graph-max-bs-prefill 8192 \
--disable-flashinfer-autotune --host 0.0.0.0 --port 30000Training Details
- Framework: SpecForge online distillation with hidden states captured from a frozen Inkling-Small target served by a colocated per-node TP4 SGLang engine; KV injection of fused target features into every draft layer with block-local bidirectional attention.
- Loss:
0.1 CE + 0.9 L1 distillation + 1.0 confidence BCE, 512 sampled anchors per sequence,block_size=7, within-block decay gamma4.
