Model reference · open weights

Qwen3.8-27B-UBTree

NEW · this week LLMs inclusionAI Text gen 1 build Open weights 0 dl/mo

Qwen3.8-27B-UBTree is an open-weight language model from inclusionAI. Qwen3.8-27B-UBTree (BF16) weighs 3.7 GB; the smallest configuration that runs it is RTX 3060 12 GB.

For self-hosting, compare this build's requirements below with the GPU you plan to rent.

  • Qwen3.8-27B-UBTree is a speculative decoding draft model created by inclusionAI to accelerate the Qwen3.8-27B target model.
  • It uses a five-layer parallel draft network and a trainable bigram selector to propose candidate tokens for verification.
  • The checkpoint contains 1.8B parameters, supports a context length of 262144 tokens, and is licensed under the MIT license.

Summary of the inclusionAI/Qwen3.8-27B-UBTree model card, 2026-12-02

What it is

Released byinclusionAI
Released2026-12-01
Parameters1.8B
VRAM3.7 GB for the weights

What it runs on

Memory and cards for Qwen3.8-27B-UBTree (BF16)

3.7 GBweights, file size
20 MBcache per 1K tokens
910 MBruntime overhead, at least
262,144 tokenscontext max
CardRequests at onceContext maxMemory
8K each32K each
RTX 3060 12 GB4110all 256K11.6 GB
RTX 4060 Ti 16 GB6416all 256K15.4 GB
RTX 3090 24 GB11228all 256K23.4 GB
RTX 4090 24 GB11127all 256K23.4 GB
RTX 5090 32 GB15739all 256K31.0 GB
L40S 48 GB23458all 256K44.0 GB
A100 80 GB438109all 256K78.2 GB
H100 80 GB404101all 256K78.1 GB
RTX PRO 6000 Blackwell 96 GB498124all 256K93.8 GB
DGX Spark (GB10) 128 GB unified579144all 256K107 GB
H200 141 GB761190all 256K138 GB
B200 180 GB984246all 256K176 GB
Memory needed at each load
Requests at once8K tokens each32K tokens each
14.8 GB5.3 GB
55.4 GB7.9 GB
85.9 GB10.0 GB
167.3 GB15.3 GB
3210.0 GB26.1 GB
6415.3 GB47.5 GB

One card, with vLLM's small-card settings.

From the model card

What inclusionAI says about Qwen3.8-27B-UBTree

Read the model card

Website · Paper · Code · Target model

Qwen3.8-27B-UBTree-B16 accelerates Qwen3.8-27B with a five-layer parallel draft network and a trainable bigram selector. The draft produces candidate tokens, the selector connects them into a tree, and Qwen3.8-27B checks the proposed continuations.

Load this checkpoint together with its target model, which supplies the tokenizer, token embeddings, and language-model head. The draft alone does not provide a text-generation service. This model card covers text inference.

How UBTree works

UBTree pipeline

UBTree uses unigram predictions to propose tokens and bigram scores to choose branches:

  1. Predict candidates for several future positions in one parallel draft pass.
  2. Estimate how well neighbouring candidates fit together with the selector.
  3. Assemble a candidate tree up to the requested node budget.
  4. Run target verification and append the accepted tokens to the output.

The draft backbone starts from DFlash training, then learns jointly with the selector. Method details and tree-native supervision are described in the paper.

Model specifications

ItemValue
Target modelQwen/Qwen3.8-27B
Draft architectureQwen3UBTreeModel
Draft backbone5 full-attention Transformer layers
Parameters stored in this checkpoint1,841,887,774 (1.842B)
Weight dtypeBF16
Hidden size5,120
Attention heads / KV heads24 / 4
Target auxiliary feature layers (zero-based)5, 19, 33, 47, 61
Draft block size16, including the anchor
Candidate top-k64 per draft position
Default verification tree budget64 non-root nodes + 1 anchor
Serving tree budget below32 nodes, including the anchor
TrainingDFlash warm start, followed by joint backbone and selector training

The distributed weights are the raw step 12,314 checkpoint. Its parameter count excludes the embeddings and output head loaded from the target. B16 specifies the draft block size; the serving tree budget is configured separately. The serving profile overrides the checkpoint's 65-node default with a 32-node tree.

Serving with SGLang

Install the inference component from the UBTree project in a dedicated environment:

git clone https://github.com/inclusionAI/ubtree.git
cd ubtree
python3.12 -m venv .venv-inference
source .venv-inference/bin/activate
python -m pip install --upgrade pip
python scripts/install.py inference

Use the bundled SGLang source, pinned to commit 329c30b65946a51c46c60bb197419cbf3c44ecf6 of xiaoqiu/ubtree_qwen38_recent. The installation guide lists CUDA, build-tool, and dependency requirements.

Point the launcher at your downloaded target and draft folders:

CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7 \
python scripts/serve.py qwen38-27b \
  --target-model-path /path/to/Qwen3.8-27B \
  --draft-model-path /path/to/Qwen3.8-27B-UBTree-B16-release

This profile uses TP8, concurrency 1, B16, and 32 verification nodes, with BF16 weights, FP32 SSM states, FA3, full decode CUDA Graphs, and a 16K context. It enables the optimized UBTree tree-construction and GDN verification paths. The server listens on http://127.0.0.1:30000 by default.

From another terminal in the same environment, send an xhigh-thinking request:

python examples/chat.py qwen38-27b \
  --target-model-path /path/to/Qwen3.8-27B \
  --prompt "What is 17 times 23?" --max-new-tokens 8192

Benchmark results

Both methods use TP8 on 8 × NVIDIA L20X, concurrency 1, BF16, and greedy xhigh-thinking decoding. UBTree uses B16 / 32 nodes; DFlash2 uses B8 / 8 nodes.

Each cell shows acceptance length / TPS (tok/s).

DatasetUBTreeDFlash2
GSM8K7.562 / 890.984.994 / 677.64
MATH-5007.133 / 926.784.599 / 676.14
AIME 20256.230 / 830.404.318 / 650.52
HumanEval6.666 / 882.164.580 / 683.21
MBPP6.175 / 804.584.760 / 695.92
LiveCodeBench5.523 / 736.153.866 / 582.52
Avg. (6 datasets)6.548 / 845.184.520 / 660.99

TPS includes prefill, thinking, and answer generation. Acceptance length is averaged over decoding rounds and includes the root/bonus token. Each Avg. value is the arithmetic mean of the six reported per-dataset values. Results are from one measured run per dataset, with an 8,192-token output cap. See the evaluation details for the full protocol, recorded with SGLang commit 389ee80ca4.

Citation

If UBTree supports your research, please cite:

@article{liang2026ubtree,
  title   = {UBTree: Parallel Tree Drafting via Unigram and Bigram Models for Speculative Decoding},
  author  = {Liang, Chumeng and Wang, Linxuan and Peng, Xinyu and Liu, Huabin and Chen, Yuxin and Liu, Ge and Lin, Guang and Song, Qifan and Li, Jianguo},
  journal = {arXiv preprint arXiv:2609.39972},
  year    = {2026},
  url     = {https://arxiv.org/abs/2609.39972}
}

License

The draft weights use the MIT License in LICENSE. The target model is distributed separately under Apache 2.0. The diagram reproduces Liang et al., Figure 2 under CC BY 4.0.

Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.

© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms