Skip to content

[Docs] Add the manifest and kernel dispatch user guides, and polish the site's prose - #60

Merged
lcy-seso merged 1 commit into
tile-ai:mainfrom
lcy-seso:docs/user-guide-manifest-dispatch
Oct 1, 2026
Merged

lcy-seso merged 1 commit into
tile-ai:mainfrom
lcy-seso:docs/user-guide-manifest-dispatch

Conversation

@lcy-seso

@lcy-seso lcy-seso commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

Problems

  • The manifest and kernel dispatch user guides exist only in TileOpsGov, not on the docs site.
  • manifest repeats the manifest guide in an older form. new-op (kernel selection) and backends (three ways in) repeat the dispatch guide.
  • The Chinese pages mix terms (算子 / op, 家族 / family, 接口 / kernel 接口, 后端 / backend) and contain telegraphic and imperative sentences. The English pages drift from the Chinese in places.

Changes

  • Add user-guide/manifest/ (6 pages) and user-guide/dispatch/ (3 pages), Chinese-authored with English translations. Figures are rendered as img/<name>.svg and img/<name>.zh.svg. Their sources and render.sh are under figures/user-guide/.
  • Delete manifest.md. Shorten the kernel-selection section of new-op and the three-ways section of backends, and link both to the dispatch guide.
  • Polish the Chinese of every other page to the guides' style and terms: op, family, kernel 接口, in-tree 实现, backend.
  • Align the English pages with the Chinese, then polish them. English titles use sentence case, like the existing pages.
  • Update nav and nav translations, and record the zh-authored pages, localized figures and terms in CLAUDE.md.
  • mkdocs build reports only griffe: warnings. pytest, ruff and check_api_pages.py pass.

…he site's prose

The manifest guide and the kernel dispatch guide were written and reviewed in
TileOpsGov. They move here under docs/user-guide/, Chinese first with English
translations, with figure sources and a render script under figures/user-guide/.

The old manifest page is replaced by the new guide. The kernel selection part of
the new-op page and the three ways of the backends page now link to the
dispatch guide instead of repeating it.

The remaining Chinese pages are polished to the guides' style and terminology
(op, family, kernel interface, in-tree implementation, backend), and the English
pages are then aligned with the Chinese and polished.
Copilot AI balanced review requested due to automatic review settings October 1, 2026 08:02

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🔵 Needs a closer look

The 67-file documentation rewrite embeds numerous upstream API contracts that warrant final domain-owner verification.

Review effort: Balanced
Findings: 1 Low severity

Open (1)
What changed in this PR

Adds comprehensive bilingual manifest and kernel-dispatch guides while consolidating duplicated documentation and standardizing terminology.

Changes:

  • Adds nine English/Chinese guide pages with localized diagrams.
  • Replaces the legacy manifest guide and links related pages to the new guides.
  • Polishes existing prose, navigation, and authoring conventions.
File Description
CLAUDE.md Records bilingual terminology and figure rules.
docs/​api/​index.md Updates the manifest-guide link.
docs/​backends.md Condenses dispatch integration guidance.
docs/​backends.zh.md Aligns Chinese backend guidance and terminology.
docs/​index.md Polishes the English landing page.
docs/​index.zh.md Polishes the Chinese landing page.
docs/​manifest.md Removes the superseded English guide.
docs/​manifest.zh.md Removes the superseded Chinese guide.
docs/​new-op.md Links to the new dispatch and manifest guides.
docs/​new-op.zh.md Aligns the Chinese new-op workflow.
docs/​performance-guides/​index.md Polishes performance-guide prose.
docs/​performance-guides/​index.zh.md Standardizes Chinese terminology.
docs/​performance-guides/​memory-bound/​global-memory-access.md Clarifies global-memory guidance.
docs/​performance-guides/​memory-bound/​global-memory-access.zh.md Aligns the Chinese global-memory guide.
docs/​performance-guides/​memory-bound/​index.md Clarifies the roofline introduction.
docs/​performance-guides/​memory-bound/​index.zh.md Aligns the Chinese roofline introduction.
docs/​performance-guides/​memory-bound/​shared-memory-access.md Polishes shared-memory guidance.
docs/​performance-guides/​memory-bound/​shared-memory-access.zh.md Aligns the Chinese shared-memory guide.
docs/​timing.md Clarifies benchmark timing behavior.
docs/​timing.zh.md Aligns the Chinese timing guide.
docs/​torch-compile.md Polishes compile-boundary guidance.
docs/​torch-compile.zh.md Aligns Chinese compile terminology.
docs/​user-guide/​dispatch/​backends.md Documents backend dispatch extension points.
docs/​user-guide/​dispatch/​backends.zh.md Adds the Chinese backend-dispatch guide.
docs/​user-guide/​dispatch/​img/​call.svg Adds the English dispatch-flow figure.
docs/​user-guide/​dispatch/​img/​call.zh.svg Adds the Chinese dispatch-flow figure.
docs/​user-guide/​dispatch/​img/​extension.svg Adds the English extension figure.
docs/​user-guide/​dispatch/​img/​extension.zh.svg Adds the Chinese extension figure.
docs/​user-guide/​dispatch/​index.md Introduces kernel dispatch concepts.
docs/​user-guide/​dispatch/​index.zh.md Adds the Chinese dispatch overview.
docs/​user-guide/​dispatch/​writing.md Documents adding kernel implementations.
docs/​user-guide/​dispatch/​writing.zh.md Adds the Chinese kernel-writing guide.
docs/​user-guide/​index.md Adds the new guides to the index.
docs/​user-guide/​index.zh.md Updates the Chinese guide index.
docs/​user-guide/​manifest/​calls.md Documents calls and validation.
docs/​user-guide/​manifest/​calls.zh.md Adds Chinese call-validation guidance.
docs/​user-guide/​manifest/​concepts.md Explains manifest type concepts.
docs/​user-guide/​manifest/​concepts.zh.md Adds the Chinese concepts guide.
docs/​user-guide/​manifest/​examples.md Adds representative manifest examples.
docs/​user-guide/​manifest/​examples.zh.md Adds Chinese manifest examples.
docs/​user-guide/​manifest/​extensions.md Documents advanced manifest forms.
docs/​user-guide/​manifest/​extensions.zh.md Adds Chinese extension guidance.
docs/​user-guide/​manifest/​img/​call.svg Adds the English call-path figure.
docs/​user-guide/​manifest/​img/​call.zh.svg Adds the Chinese call-path figure.
docs/​user-guide/​manifest/​img/​device.svg Adds the English device-selection figure.
docs/​user-guide/​manifest/​img/​device.zh.svg Adds the Chinese device-selection figure.
docs/​user-guide/​manifest/​img/​new-op.svg Adds the English new-op workflow figure.
docs/​user-guide/​manifest/​img/​new-op.zh.svg Adds the Chinese new-op workflow figure.
docs/​user-guide/​manifest/​img/​overview.svg Adds the English system overview.
docs/​user-guide/​manifest/​img/​overview.zh.svg Adds the Chinese system overview.
docs/​user-guide/​manifest/​index.md Adds the main English manifest guide.
docs/​user-guide/​manifest/​index.zh.md Adds the main Chinese manifest guide.
docs/​user-guide/​manifest/​writing.md Documents core spec fields.
docs/​user-guide/​manifest/​writing.zh.md Adds Chinese spec-writing guidance.
figures/​user-guide/​dispatch/​call.en.puml Sources the English dispatch-flow figure.
figures/​user-guide/​dispatch/​call.zh.puml Sources the Chinese dispatch-flow figure.
figures/​user-guide/​dispatch/​extension.en.puml Sources the English extension figure.
figures/​user-guide/​dispatch/​extension.zh.puml Sources the Chinese extension figure.
figures/​user-guide/​manifest/​call.en.puml Sources the English call-path figure.
figures/​user-guide/​manifest/​call.zh.puml Sources the Chinese call-path figure.
figures/​user-guide/​manifest/​device.en.puml Sources the English device figure.
figures/​user-guide/​manifest/​device.zh.puml Sources the Chinese device figure.
figures/​user-guide/​manifest/​new-op.en.puml Sources the English workflow figure.
figures/​user-guide/​manifest/​new-op.zh.puml Sources the Chinese workflow figure.
figures/​user-guide/​manifest/​overview.py Generates both overview SVGs.
figures/​user-guide/​render.sh Reproducibly renders localized figures.
mkdocs.yml Adds guide navigation and translations.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread docs/backends.zh.md
Comment on lines +172 to +175
# 每个装好的 backend在 import 时都往注册表里放了一个 detect。op 层把 a.device
# 这一个对象原样交给每个 detect,问「这块设备是不是你这套 kernel 的」:
# acme 的 detect(device) → True 其他后端的 → False
# 恰好一个返回 True → target = "acme",这个算子实例此后固定用它
# acme 的 detect(device) → True 其他 backend的 → False
# 恰好一个返回 True → target = "acme",这个op 实例此后固定用它
@lcy-seso
lcy-seso merged commit 80e1403 into tile-ai:main Oct 1, 2026
3 checks passed
@lcy-seso
lcy-seso deleted the docs/user-guide-manifest-dispatch branch October 1, 2026 08:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants