Skip to content

doc: add doc best-practice/index#392

Open
diw-zw wants to merge 2 commits into
sgl-project:mainfrom
diw-zw:0710-doc-index
Open

doc: add doc best-practice/index#392
diw-zw wants to merge 2 commits into
sgl-project:mainfrom
diw-zw:0710-doc-index

Conversation

@diw-zw

@diw-zw diw-zw commented Jul 10, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds new best-practice documentation index pages (EN/ZH) intended to guide readers to the right operational/deployment docs via an index table, decision matrix, and scenario-based reading paths.

Changes:

  • Introduces 00-index.md for English and Chinese best-practice documentation navigation.
  • Adds model-size and deployment-architecture based recommendations, plus a quick decision matrix and typical scenario paths.
  • Adds a dependency chain and FAQ-style quick references to related documents/topics.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 8 comments.

File Description
doc/best-practice/zh/00-index.md New Chinese best-practice index with document mapping, decision matrix, and scenario paths.
doc/best-practice/en/00-index.md New English best-practice index with document mapping, decision matrix, and scenario paths.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +6 to +10
| 1 | [Multi-Role Configuration & Role Topology](01-deploy-inference-service.md) | 4 deployment topologies (Aggregated/PD-disaggregated × single-node/multi-node) |
| 2 | [Simplifying Configuration with RoleTemplates](02-using-role-templates.md) | Reuse role configuration via RoleTemplate |
| 3 | [Configuring Rolling Update Strategies](03-configuring-rolling-updates.md) | Rolling update parameters and strategy selection |
| 8 | [Configuring Autoscaling for RBG Services](08-configuring-autoscaling.md) | HPA/KEDA/RBG Planner — three scaling solutions |
| 9 | [Large-Scale Cluster Resource Estimation, Configuration, and Stress Testing](09-stress-testing-and-tuning.md) | Controller resource estimation and stress testing tools |
Comment thread doc/best-practice/en/00-index.md Outdated
Comment on lines +34 to +39
## Medium Models (7B-70B, Single-Node Multi-GPU)
**Typical models**: Qwen-72B, Llama-3-70B, DeepSeek-V2-Lite

| Scenario | Recommended Document | Notes |
| --- | --- | --- |
| **First deployment** | Document 1 (Aggregated deployment + multi-node multi-GPU) | Use LeaderWorkerPattern for tensor parallelism |
Comment thread doc/best-practice/en/00-index.md Outdated
Comment on lines +19 to +20
## Small Models (<7B, Single GPU)
**Typical models**: Qwen-1.8B, Llama-3-8B, GLM-4-9B
Comment on lines +267 to +268
2. Run the /stress-test Skill
↓ Execute stress test, collect performance data
Comment on lines +6 to +10
| 1 | [多角色配置&角色拓扑](01-deploy-inference-service.md) | 4 种部署拓扑(聚合/PD分离 × 单机/多机) |
| 2 | [使用 RoleTemplate 简化配置](02-using-role-templates.md) | 通过 RoleTemplate 复用角色配置 |
| 3 | [配置滚动更新策略](03-configuring-rolling-updates.md) | 滚动更新的参数和策略选择 |
| 8 | [为 RBG 服务配置弹性伸缩策略](08-configuring-autoscaling.md) | HPA/KEDA/RBG Planner 三种伸缩方案 |
| 9 | [大规模集群资源评估、配置与压测](09-stress-testing-and-tuning.md) | Controller 资源评估和压测工具 |
Comment thread doc/best-practice/zh/00-index.md Outdated
Comment on lines +34 to +39
## 中型模型(7B-70B,单机多 GPU)
**典型模型**:Qwen-72B、Llama-3-70B、DeepSeek-V2-Lite

| 场景 | 推荐文档 | 说明 |
| --- | --- | --- |
| **首次部署** | 文档 1(聚合部署 + 多机多卡) | 使用 LeaderWorkerPattern 进行张量并行 |
Comment thread doc/best-practice/zh/00-index.md Outdated
Comment on lines +19 to +20
## 小型模型(<7B,单 GPU)
**典型模型**:Qwen-1.8B、Llama-3-8B、GLM-4-9B
Comment on lines +267 to +268
2. 运行 /stress-test Skill
↓ 执行压测,收集性能数据
@cheyang

cheyang commented Jul 13, 2026

Copy link
Copy Markdown
Collaborator

/copilot review

@cheyang

cheyang commented Jul 13, 2026

Copy link
Copy Markdown
Collaborator

@gemini-code-assist /review

@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@cheyang

cheyang commented Jul 13, 2026

Copy link
Copy Markdown
Collaborator

This PR adds a well-structured documentation index for the best-practice series (EN + ZH). The content organization and scenario-based navigation approach are solid, but there are several issues that need to be addressed before merge:

  1. CI is failing with 14 MD025 errors — the document uses multiple # H1 headings where the linter expects a single H1. Demote section headings to ##.
  2. Document numbering is internally inconsistent — the index table uses file-based IDs (feat: support rbgs scaling #1,2,3,8,9,10) while the body references logical sequential IDs (1-10). This makes the index contradictory and un-navigable.
  3. Model size threshold mismatch — "Small Models (<7B)" lists 8B and 9B models as examples.

Please fix issues 1-3 and the CI should pass. The rest are non-blocking suggestions.

Comment thread doc/best-practice/en/00-index.md Outdated

---

# Choosing Documents by Model Size

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Both files use multiple # (H1) headings throughout, but the repo's markdownlint config enforces MD025 (single-title/single-h1). CI reports 14 errors across both files.

Fix: keep only the very first heading as # and demote all other top-level sections to ##. Adjust sub-headings accordingly (## -> ###, etc.).

# Documentation Index
This best practice documentation series covers the full range of scenarios from deployment to operations. Below is a quick index of all documents:

| # | Document | Core Content |

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

The index table uses file-based numbering (#1, #2, #3, #8, #9, #10), but the body text uses a different logical numbering (1-10 sequential). This creates contradictions:

Please unify the numbering scheme so the index table and all body references are consistent.

Model size determines deployment topology and resource requirements — this is the first dimension for selecting documents.

## Small Models (<7B, Single GPU)
**Typical models**: Qwen-1.8B, Llama-3-8B, GLM-4-9B

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

"Small Models (<7B)" lists Llama-3-8B (8B) and GLM-4-9B (9B) as typical models, both of which exceed the stated <7B threshold. Either raise the threshold (e.g., "<=9B") or replace the examples with actual <7B models (e.g., Qwen-1.8B, Llama-3.2-3B). The same issue exists in the Chinese version at the same line.


| Scenario | Recommended Document | Notes |
| --- | --- | --- |
| **First deployment** | Document 1 (Aggregated deployment + multi-node multi-GPU) | Use LeaderWorkerPattern for tensor parallelism |

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

The section header says "Medium Models (7B-70B, Single-Node Multi-GPU)" but the first deployment row recommends "Aggregated deployment + multi-node multi-GPU". If medium models can require multi-node for TP, the header should reflect that.


| # | Document | Core Content |
| --- | --- | --- |
| 1 | [Multi-Role Configuration & Role Topology](01-deploy-inference-service.md) | 4 deployment topologies (Aggregated/PD-disaggregated × single-node/multi-node) |

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

The linked files (01-.md through 10-.md) don't exist in the repository. If these will be added in follow-up PRs, consider adding a brief note at the top mentioning that the referenced documents are being added incrementally, so readers aren't surprised by 404s.

↓ Understand Controller resource requirements and configuration guidelines

2. Run the /stress-test Skill
↓ Execute stress test, collect performance data

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

"Run the /stress-test Skill" (line 268) assumes readers use a specific tool interface. Consider linking to the underlying stress test documentation or describing the command so the guidance is actionable for all readers.

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.

3 participants