hunyuan_v1_moe_tiny
A Hunyuan-A13B Mixture-of-Experts decoder language model with a shared expert plus routed experts.
Language · 386 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Task
- Language
- Parameters
- 8.3M
- Operations
- 386
- Framework
- PyTorch
- Recurrent
- No
- Published
- 2025
- Authors
- Tencent Hunyuan Team
- Source
- transformers 5.20.2
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m5386
- Graph hash
- b2befc7635122483b721b2b984a662000b96ce5298cb69855d2290f24048abfd
- Skeleton hash
- 00a4f1311d370bbe6951a9f9b48e62609c6d1df6b0ca9f7a3b144bba59903e75
- Architecture hash
- 47ae2aecf3e3feaad6ff83b2a995c96fa458ef3a40e6432eb90f1c135437d121
- Diagram SHA-256
- 98ecccaa3cc0b856760bc04c76761c93b0ad5acee2bbf738f6ace9effbf1b82a
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
This model is a scaled-down build of the HunYuanMoEV1ForCausalLM class from the transformers library, with the same layer structure at a much smaller size.
Hunyuan-A13B is an open-source large language model built as a Mixture-of-Experts (MoE), where only part of the network runs for each token. The technical report gives it 80 billion parameters in total, of which 13 billion are active for any one input.
Each expert layer holds one shared expert and 64 smaller non-shared experts of the same width. The shared expert is always on, while only 8 of the non-shared experts are switched on at a time. In the transformers code, a linear router scores every expert for each token and keeps the top-k by softmax weight. Attention uses Grouped-Query Attention (GQA) to save KV-cache memory.
The report describes pretraining on a filtered 20T-token corpus with extra care for STEM data. Two later phases extend the context window to 32K tokens and then to 256K tokens. Post-training adds a dual-mode chain of thought: a fast-thinking mode for routine questions and a slow-thinking mode for multi-step reasoning. The model card says the model defaults to slow-thinking reasoning.
Key idea. The Hunyuan-A13B report built an open-source MoE language model that activates 13 billion of its 80 billion parameters during inference.
- Hunyuan-A13B
- Hunyuan-A13B-Instruct
- Hunyuan MoE
- HunYuanMoEV1
- mixture of experts
- large language model
- LLM
- reasoning
- chain of thought
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{hunyuanmoe2025,
title = {Hunyuan-A13B Technical Report},
author = {Tencent Hunyuan Team},
year = {2025}
}