feature(wzn): add language switcher and complete some Chinese documentation for LightRFT docs#42
Open
zunian-wan wants to merge 5 commits intoopendilab:mainfrom
Open
feature(wzn): add language switcher and complete some Chinese documentation for LightRFT docs#42zunian-wan wants to merge 5 commits intoopendilab:mainfrom
zunian-wan wants to merge 5 commits intoopendilab:mainfrom
Conversation
- Initialize Chinese documentation structure with index files for main, quick start, and best practices pages. - Implement a polished, floating language toggle button in the bottom-right corner. - Add a custom SVG language icon and PyTorch-themed styling (accent border and hover effects). - Create dynamic JavaScript to handle intelligent switching between English and Chinese versions of the same page. - Update conf.py to globally include the new localized assets and styles.
- Add Chinese docs for model testing, design philosophy, troubleshooting, and core project architecture. - Standardize all Chinese documentation suffixes from `_cn` to `_zh` to follow standard locale naming.
puyuan1996
requested changes
Feb 10, 2026
puyuan1996
reviewed
Feb 10, 2026
PaParaZz1
requested changes
Feb 22, 2026
| @@ -73,7 +73,6 @@ make docs-live | |||
| ```bash | |||
| # Run specific tests | |||
Member
There was a problem hiding this comment.
where is the directory of these tests
| ```bash | ||
| # Run specific tests | ||
| python test_trajectory_saver_fix.py | ||
| python test_action_mask_indexing.py |
|
|
||
| ## 代码规范 | ||
|
|
||
| - Python 代码请遵循 PEP 8 规范。 |
| - 确保所有现有测试均能通过。 | ||
|
|
||
| 2. **提交 PR**: | ||
| - 填写清晰的 PR 标题和描述。 |
Member
There was a problem hiding this comment.
add PR name format like our previous format
| - **LLMs**: Qwen, Qwen2.5, LLaMA, Mistral, and most HuggingFace models | ||
| - **VLMs**: Qwen-VL, Qwen2-VL, LLaVA | ||
| - **LLM**: Qwen, Qwen2.5 and most HuggingFace models | ||
| - **VLM**: Qwen-VL, Qwen2-VL |
| - 经验生成与收集 | ||
| - 优势估计 (Advantage estimation) 与回报计算 (return computation) | ||
| - 策略与价值函数更新 | ||
| - 重放缓存 (Replay buffer) 管理(标准和视觉语言) |
|
|
||
| 核心组件: | ||
|
|
||
| - PPO (Proximal Policy Optimization) 实现 |
| - 完全分片数据并行 (FSDP) 实现 | ||
| - 高效推理引擎 (vLLM, SGLang) | ||
| - 分布式张量操作工具 | ||
| - 检查点 (Checkpoint) 管理和广播 |
| 核心组件: | ||
|
|
||
| - Actor 网络实现(语言、视觉语言、音频语言) | ||
| - 奖励模型实现(通用和安全奖励模型) |
| - **DeepSpeed 集成**:原生支持 DeepSpeed ZeRO 优化。 | ||
| - **FSDP 兼容性**:支持完全分片数据并行 (Fully Sharded Data Parallel) 训练。 | ||
|
|
||
| ## 错误处理与健壮性 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📋 Summary
Add language switcher for en & zh in LightRFT docs and complete Chinese documentation for model testing, design philosophy, troubleshooting, and core project architecture.
Purpose:
Type of Change:
🔗 Related Issues
None
📝 Changes
What changed:
Why these changes:
Key implementation details:
🧪 Testing
Test Plan
Test commands:
# Commands used to test the changesTest Results
Test Output
📊 Performance Impact
📚 Documentation
docs/updated (if applicable)✅ Checklist
Code Quality
make formatandmake fcheck)Compatibility
Testing
Documentation
💭 Additional Notes
🔍 Review Checklist for Maintainers
BEFORE SUBMITTING, PLEASE READ: