tencent_hunyuan/Youtu-LLM-A7B-Base
Model Introduction
Files & versions
Pull Requests
Discussion
Analysis

Youtu-LLM-A7B-Base

Youtu-LLM-A7B-Base is a pre-trained checkpoint of a vision-language Mixture-of-Experts model with about 120B total parameters and ~7B activated parameters per token.

  • This is a base model. We recommend to use raw text continuation, although chat_template.jinja is provided for further purpose. Custom modeling code is shipped in this repository and must be loaded with trust_remote_code=True.
  • It combines a hybrid attention stack, KDA interleaved with GatedMLA, with a fine-grained MoE feed-forward network. The model accepts text and image inputs and is trained with a 262,144-token context window over 11.5T multimodal tokens.
  • Compared to typical MLLMs, this model employs an opposed pre-training strategy: it attaches a randomly initialized LLM to a pre-trained ViT, followed by a multi-stage pre-training process with context lengths of 4K, 32K, 128K, and 256K.

Model Summary

ItemValue
ArchitectureYoutuVLMoEForConditionalGeneration
Total / activated parameters~120B / ~7B per token
Layers48
Hidden size3,072
Attention3 Hybrid KDA linear attention + 1 MLA
MoE256 routed experts, top-8, 1 shared expert
RouterQuantile-balancing, w/ modality-aware expert bias
Vision encoderQwen3-VL-MoE style ViT
Context length262,144
Vocabulary129,280
dtypebfloat16

Evaluation Results

Text

BenchmarkShotsMetricDeepSeek-V4-Pro-BaseYoutu-LLM-A7B-Base
# Activated Params--49B7B
# Total Params--1.6T120B
World Knowledge
MMLU-Redux5-shotEM93.2196.00
MMLU-Pro5-shotEM67.1178.61
MMMLU5-shotacc_norm86.4884.02
AGIEval0-shotacc72.4669.01
SuperGPQA5-shotacc_norm54.2042.28
GPQA (main)5-shotacc_norm55.3668.53
INCLUDE5-shotacc85.5277.25
Math & Code
BBH (CoT)3-shotEM88.3685.85
GSM8K8-shotEM91.9688.86
MGSM (zh)8-shotEM79.9082.60
HumanEval+0-shotpass@176.8078.05
MBPP+3-shotpass@184.1389.15
LiveCodeBench v63-shotpass@112.0015.43
RepoBench3-shotEM32.7233.57
Long Context
RULER 4K-256K0-shotscore93.1192.38
LongBench v20-shotEM46.3048.53
MRCR v2 (<256K)0-shotscore32.5037.93

Vision-Language

BenchmarkShotsMetricMiMo-V2.5-BaseYoutu-LLM-A7B-Base
# Activated Params--15B7B
# Total Params--310B120B
STEM
AI2D (test)3-shotEM85.2389.83
LogicVista3-shotEM47.2050.11
WeMath3-shotScore (Strict)45.1456.19
MMMU (dev+val)3-shotEM65.5667.11
MMMU-Pro (10c)3-shotEM50.1253.87
MathVista (mini)3-shotacc (judge)70.0073.20
VQA
MMBench (EN v1.1)3-shotEM85.1488.08
MMBench (CN v1.1)3-shotEM86.1585.14
SimpleVQA3-shotacc (judge)49.3849.48
ChineseSimpleVQA3-shotacc (judge)47.2753.00
WorldVQA3-shotacc (judge)13.5313.40
BabyVision3-shotacc (judge)18.5614.18
PerceptionBench3-shotacc (judge)32.5734.03
RealWorldQA3-shotEM78.5680.26
MMStar3-shotEM68.0770.47
OCR
ChartQA (test)3-shotrelaxed acc87.8088.60
CharXiv (descriptive)3-shotacc (judge)84.4086.95
CharXiv (reasoning)3-shotacc (judge)65.4061.50
OCRBench v2 (EN)3-shotOverall Score52.0052.19
OCRBench v2 (ZH)3-shotOverall Score59.8460.96
Hallucination
CRPE (exist)3-shotEM94.1496.79
CRPE (relation)3-shotEM64.8473.86
HallusionBench3-shotavg a/f/qAcc57.6560.87
Grounding
EmbSpatialBench3-shotEM80.0081.48
CountBenchQA3-shotacc94.4894.46
RefCOCO3-shotPrecision@172.7191.84

For VL evaluation, MCQ-style benches report option-letter EM after extraction. Open-ended benches use MiniMax-M2.7 for MLLM-as-a-judge. Other columns are the official suite metrics (not generic accuracy).

Transformers

Install transformers==5.12.1, plus torch, accelerate and pillow for images.

pip install transformers==5.12.1 torch accelerate pillow
import torch
from transformers import AutoModelForCausalLM, AutoProcessor

model_path = "tencent/Youtu-LLM-A7B-Base"

processor = AutoProcessor.from_pretrained(model_path, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
    model_path,
    trust_remote_code=True,
    torch_dtype=torch.bfloat16,
    device_map="auto",
)

prompt = "The answer of Q1 is (A). The answer of Q2 is (B). The answer of Q3 is ("
inputs = processor(text=[prompt], return_tensors="pt")
inputs = {k: v.to(model.device) if hasattr(v, "to") else v for k, v in inputs.items()}

outputs = model.generate(**inputs, max_new_tokens=64, do_sample=False)
print(processor.tokenizer.decode(outputs[0], skip_special_tokens=False))

For an image, pass images=[pil_image] to the processor together with a prompt that contains <|vision_start|><|image_pad|><|vision_end|>.

SGLang

Install sglang==0.5.17 and start the server with the adapter shipped in this repository (sglang_adapt/launch.py), not python -m sglang.launch_server.

cd sglang_adapt
MODEL_PATH=tencent/Youtu-LLM-A7B-Base \
  TP_SIZE=4 DP_SIZE=2 EP_SIZE=4 PORT=8000 \
  bash serve_youtu_vl_moe_sglang.sh
curl http://127.0.0.1:8000/generate \
  -H 'Content-Type: application/json' \
  -d '{"text":"The answer of Q1 is (A). The answer of Q2 is (B). The answer of Q3 is (","sampling_params":{"temperature":0,"max_new_tokens":16}}'

Note

  • Use a Python environment that already has SGLang on PATH, or set SGLANG_ENV.
  • Weights are BF16; the serve script sets --dtype bfloat16.
  • On 8 GPUs, the recommended layout is TP_SIZE=4, DP_SIZE=2, EP_SIZE=4.
  • This is a base model: it is recommended to send raw prompts to POST /generate, although chat_template.jinja is provided for further purpose.

Overlap scheduler

DISABLE_OVERLAP_SCHEDULE defaults to 1 (off). For text-only serving you can enable it for higher decode throughput:

DISABLE_OVERLAP_SCHEDULE=0 MODEL_PATH=tencent/Youtu-LLM-A7B-Base \
  TP_SIZE=4 DP_SIZE=2 EP_SIZE=4 bash serve_youtu_vl_moe_sglang.sh

Do not enable it for high-concurrency image traffic — vision prefill can hang in event_loop_overlap.

License

See LICENSE.txt.