Skip to content

docs: Add comprehensive bilingual documentation (EN/CN)#43

Open
tianhao909 wants to merge 1 commit into
tally-project:masterfrom
tianhao909:docs/add-bilingual-documentation
Open

docs: Add comprehensive bilingual documentation (EN/CN)#43
tianhao909 wants to merge 1 commit into
tally-project:masterfrom
tianhao909:docs/add-bilingual-documentation

Conversation

@tianhao909

Copy link
Copy Markdown

Summary

This PR adds comprehensive bilingual (English/Chinese) documentation to the Tally project, significantly improving project accessibility and onboarding experience.

Changes

README

  • README.md (English): Professional project documentation with badges, architecture overview, scheduling policies, configuration reference, quick start guide, and benchmarks
  • README_cn.md (Chinese): Complete Chinese translation of the English README

docs/ Directory

  • docs/architecture.md / docs/architecture_cn.md — Detailed system architecture (client-server, IPC, transformer, scheduler, cache)
  • docs/quick-start.md / docs/quick-start_cn.md — Installation and usage guide (Docker + source build)
  • docs/scheduling-policies.md / docs/scheduling-policies_cn.md — All 5 scheduling policies explained
  • docs/configuration.md / docs/configuration_cn.md — Complete environment variable reference
  • docs/develop/design.md — Kernel transformation design (PTB, slicing, sync-aware)
  • docs/develop/contributing.md — Contributing guidelines (EN + CN)

Motivation

The existing README is minimal (~29 lines). This documentation brings Tally to the standard expected of well-maintained open source projects, helping:

  • New users understand what Tally does and how to use it
  • Developers understand the architecture before contributing
  • Chinese-speaking users access the project without language barriers

Reference

Documentation style inspired by HAMi (CNCF Sandbox project).

Add professional README.md and README_cn.md with complete project documentation including architecture overview, scheduling policies, configuration reference, and quick start guide. Add docs/ directory with detailed architecture design, quick-start guide, scheduling policies explanation, configuration reference, kernel transformation design, and contributing guidelines - all in both English and Chinese.
Copilot AI review requested due to automatic review settings June 29, 2026 14:35

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.

Pull request overview

This PR expands Tally’s end-user and developer documentation by introducing a comprehensive bilingual (EN/CN) README plus a structured docs/ set covering architecture, quick start, scheduling policies, configuration reference, and developer design/contribution guidance.

Changes:

  • Replaces the minimal README with a detailed English README and adds a full Chinese counterpart.
  • Adds bilingual docs for architecture, quick start, scheduling policies, and configuration reference.
  • Adds developer-focused docs under docs/develop/ (design + contributing).

Reviewed changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 14 comments.

Show a summary per file
File Description
README.md Expands the project README with architecture, usage, configuration, and benchmark info (EN).
README_cn.md Adds a Chinese translation of the README for bilingual onboarding.
docs/architecture.md Adds a detailed architecture deep dive (EN).
docs/architecture_cn.md Adds a Chinese translation of the architecture doc.
docs/quick-start.md Adds installation/build/run quick start documentation (EN).
docs/quick-start_cn.md Adds a Chinese translation of the quick start doc.
docs/scheduling-policies.md Documents all scheduler policies and selection guidance (EN).
docs/scheduling-policies_cn.md Adds a Chinese translation of scheduling policies doc.
docs/configuration.md Adds an environment-variable and config-file reference (EN).
docs/configuration_cn.md Adds a Chinese translation of the configuration reference.
docs/develop/design.md Adds kernel transformation design notes (EN + CN in one file).
docs/develop/contributing.md Adds contributing guidelines (EN + CN in one file).

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

Comment thread docs/quick-start.md
The build process:
1. Compiles NCCL from `third_party/nccl`
2. Runs CMake configuration
3. Builds all targets: `tally_server`, `tally_client.so`, `tally_client_local.so`, `tally_cutlass.so`
Comment thread docs/quick-start.md
Comment on lines +114 to +118
# High-priority inference workload (priority=1)
TALLY_CLIENT_PRIORITY=1 ./scripts/start_client.sh python inference_server.py

# Low-priority training workload (priority=0)
TALLY_CLIENT_PRIORITY=0 ./scripts/start_client.sh python train.py
Comment thread docs/quick-start_cn.md
编译过程:
1. 从 `third_party/nccl` 编译 NCCL
2. 运行 CMake 配置
3. 构建所有目标:`tally_server`、`tally_client.so`、`tally_client_local.so`、`tally_cutlass.so`
Comment thread docs/quick-start_cn.md
Comment on lines +114 to +118
# 高优先级推理工作负载(优先级=1)
TALLY_CLIENT_PRIORITY=1 ./scripts/start_client.sh python inference_server.py

# 低优先级训练工作负载(优先级=0)
TALLY_CLIENT_PRIORITY=0 ./scripts/start_client.sh python train.py
Comment thread docs/configuration.md

| Variable | Default | Type | Description |
| --- | --- | --- | --- |
| `TALLY_CLIENT_PRIORITY` | `0` | int32 | Client priority (higher = more important) |
Comment thread README_cn.md
这将会:
1. 编译 NCCL 依赖
2. 创建 `build/` 目录并使用 CMake 配置
3. 编译 `tally_server`、`tally_client.so` 及相关库
Comment thread docs/architecture.md
Comment on lines +12 to +14
A1[App 1] --> C1[tally_client.so]
A2[App 2] --> C2[tally_client.so]
A3[App N] --> C3[tally_client.so]
Comment thread docs/architecture.md

## Core Components

### 1. Client Preload Library (`tally_client.so`)
Comment thread docs/architecture_cn.md
Comment on lines +12 to +14
A1[应用 1] --> C1[tally_client.so]
A2[应用 2] --> C2[tally_client.so]
A3[应用 N] --> C3[tally_client.so]
Comment thread docs/architecture_cn.md

## 核心组件

### 1. 客户端预加载库 (`tally_client.so`)
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