/ai-infra-auto-driven-skills:model-architecture-diagramfrom ai-infra-auto-driven-skills
Returns public original model architecture diagrams for LLM, VLM, MoE, diffusion, OCR, and SGLang model families. Use when a user requests a structure chart or architecture diagram for models like DeepSeek, Qwen, GLM, Kimi, MiniMax, Hunyuan, or Wan.
Ships in ai-infra-auto-driven-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Return only public original diagrams indexed by this skill.
python3 skills/model-architecture-diagram/scripts/model_architecture_diagram.py "<model name>"
kind: existing, return the raw image Markdown it prints and preserve the source attribution line.kind: no_match, tell the user that no public original architecture diagram is indexed for that model.Use references/diagram-index.json as the source of truth. It stores raw GitHub image URLs and official vendor/CDN or pinned Hugging Face
resolve/<sha> URLs. Official sources include Qwen and XiaomiMiMo; GitHub sources:
datawhalechina/self-llmCalvinXKY/InfraTechTongyi-MAI/Z-ImageWan-Video/Wan2.1Wan-Video/Wan2.2Tencent-Hunyuan/HunyuanVideoTencent-Hunyuan/Hunyuan3D-2brayevalerien/Flux.1-Architecture-DiagramPrefer detailed implementation, cookbook, or architecture-card diagrams over paper figures. Good sources show module boundaries, dataflow, MoE / attention / cache paths, or model-specific runtime structure rather than only a high-level paper overview. Official repository diagrams and curated implementation diagrams are first choice; paper figures are fallback only when no more detailed public original diagram is indexed.
Do not copy remote image binaries into the skill. Return the indexed original URLs so the chat renderer can display the original image.
For a direct match, show the original image. Good direct matches include:
qwen4_exp in runtime code). Plain Qwen3.8 2.4T remains no_match; these are different architectures.no_match because no direct diagram was verified.If multiple diagrams match, show all high-confidence matches up to the resolver's default limit. For example, DeepSeek V3 may return the full architecture plus MLA MHA/MQA diagrams.
Do not commit the sgl-cookbook-model-architecture-images/ gallery into the repository. The public-original image set is hosted as a GitHub Release asset and indexed by a GitHub issue.
Current hosted artifact:
sha256:ea432081849a250429d3d1ecf246e267c5cc42f989aaf4b9ca695b581e7fa50fThe gallery is a 2026-05-02 snapshot containing 44 public original diagram image files; it does not mirror the current index, plus a lightweight index.html, index.md, manifest.json, HTML contact sheet, and architecture-audit.md.
To inspect the gallery locally:
curl -L -o /tmp/sgl-cookbook-model-architecture-images-2026-05-02.zip \
https://github.com/BBuf/AI-Infra-Auto-Driven-SKILLS/releases/download/sgl-cookbook-architecture-images-2026-05-02/sgl-cookbook-model-architecture-images-2026-05-02.zip
unzip -q /tmp/sgl-cookbook-model-architecture-images-2026-05-02.zip -d /tmp
open /tmp/sgl-cookbook-model-architecture-images/index.html
List known original diagram aliases:
python3 skills/model-architecture-diagram/scripts/model_architecture_diagram.py --list-known
Emit JSON for automation:
python3 skills/model-architecture-diagram/scripts/model_architecture_diagram.py "GLM-5" --format json
references/diagram-index.json: original diagram link index and aliases.references/source-notes.md: audited source repositories and local cache paths.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub bbuf/ai-infra-auto-driven-skills --plugin ai-infra-auto-driven-skills10 skills in this plugin
/llm-pipeline-analysisInspect LLM torch profiler traces at forward-pass, layer, and kernel level. Use when you need layer timings, anchor-kernel boundaries, representative kernel flows, or Perfetto time ranges./llm-serving-auto-benchmarkFramework-independent LLM serving benchmark skill for comparing SGLang, vLLM, TensorRT-LLM, TokenSpeed, or another serving framework. Use when a user wants to find the best deployment command for one model across multiple serving frameworks under the same workload, GPU budget, and latency SLA./llm-serving-capacity-plannerParse SGLang/vLLM startup logs to explain GPU memory use and request capacity. Use for KV cache budget, mem-fraction-static comparisons, OOM triage, and max-concurrency estimates./llm-torch-profiler-analysisAnalyze existing Torch Profiler Chrome traces or capture from SGLang, vLLM, TensorRT-LLM and TokenSpeed servers. Return kernel attribution, overlap opportunities and fusion patterns; use for model dispatch, CUDA Graph gaps, stream contention or exposed kernel tails. Includes existing SGLang Omni traces./model-compute-simulationBuild an operator-level compute template for an LLM and estimate FLOPs/MFU for a serving shape. Use when you need tensor shapes, per-op FLOPs, kernel-to-op MFU mapping, or parallelism what-if analysis./sglang-explainer-videoTurn an SGLang PR (number or URL) or a technical article (Markdown path) into a Chinese explainer video that fully explains every algorithm and code change (length follows the material, no time cap) — natural edge-tts narration, word-synced bilingual 中文/English captions, a cover designed for each video, SGLang-brand visuals by default (or the kimi-dark theme), and ending links to the source and the cookbook — built on HyperFrames' pr-to-video pipeline and delivered to ~/Desktop. Use when the user sends an sgl-project/sglang PR number or link, or an article file, and asks for a video (做个视频, 讲解视频, PR 视频, 文章转视频).Other plugins' skills for the same job