界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
效率与协作 · SKILL.md

core-apis-and-architecture

core-apis-and-architecture

【效率与协作】Explain the HunyuanImage-3.0 package layout, public APIs, generation helpers, cache utilities, and lazy import behavior.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: core-apis-and-architecture description: "Explain the HunyuanImage-3.0 package layout, public APIs, generation helpers, cache utilities, and lazy import behavior." disable-model-invocation: true metadata: disco-role: operating license: NOASSERTION

Core APIs and Architecture

Use this sub-skill when you need to understand how HunyuanImage-3.0 is wired, which public objects are stable, and how config, tokenizer, image processing, scheduler, cache, and model objects relate to one another.

Read first

  1. API reference
  2. Architecture
  3. Troubleshooting
  4. Core API surface checker for safe import and signature smoke checks.

Route elsewhere

  • End-user generation commands, checkpoint selection, and CLI examples: ../local-inference-cli/SKILL.md
  • System-prompt modes, recaption/think flows, and image-conditioning policy: ../prompt-and-image-conditioning/SKILL.md
  • Repo-wide install/import guidance and staleness checks: ../../SKILL.md once the root skill is present

Owned surface

  • HunyuanImage3Config
  • HunyuanImage3ForCausalMM
  • HunyuanImage3Model
  • HunyuanImage3TokenizerFast
  • HunyuanImage3ImageProcessor
  • HunyuanImage3Text2ImagePipeline
  • FlowMatchDiscreteScheduler
  • HunyuanStaticCache
  • cache_utils helpers (cache_init, TaylorCacheContainer, CacheWithFreqsContainer)
  • get_system_prompt
  • import / lazy-loading behavior
  • signature-level notes and object relationships

What to explain here

  • Which module owns which responsibility
  • How generate_image turns prompt/image/message input into model inputs
  • How the tokenizer and image processor cooperate on mixed text/image sections
  • How the pipeline, scheduler, VAE, and caches interact during generation
  • Why skip_load_module exists and what it does not guarantee

What not to explain here

  • CLI walkthroughs and shell launch recipes
  • Gradio UI launch
  • vLLM deployment or client request execution
  • prompt rewrite service operation details
我的收藏