-
Notifications
You must be signed in to change notification settings - Fork 48
Update Docs Theme #143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Update Docs Theme #143
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,59 @@ | ||
| .. _api-reference: | ||
|
|
||
| API Reference | ||
| ============= | ||
|
|
||
| This page shows the most useful APIs of Trinity-RFT. | ||
|
|
||
| .. contents:: | ||
| :local: | ||
| :depth: 2 | ||
|
|
||
| trinity.buffer | ||
| -------------- | ||
| .. automodule:: trinity.buffer | ||
| :members: | ||
| :undoc-members: | ||
| :show-inheritance: | ||
|
|
||
| trinity.explorer | ||
| ---------------- | ||
| .. automodule:: trinity.explorer | ||
| :members: | ||
| :undoc-members: | ||
| :show-inheritance: | ||
|
|
||
| trinity.trainer | ||
| --------------- | ||
| .. automodule:: trinity.trainer | ||
| :members: | ||
| :undoc-members: | ||
| :show-inheritance: | ||
|
|
||
| trinity.algorithm | ||
| ----------------- | ||
| .. automodule:: trinity.algorithm | ||
| :members: | ||
| :undoc-members: | ||
| :show-inheritance: | ||
|
|
||
| trinity.manager | ||
| --------------- | ||
| .. automodule:: trinity.manager | ||
| :members: | ||
| :undoc-members: | ||
| :show-inheritance: | ||
|
|
||
| trinity.common | ||
| -------------- | ||
| .. automodule:: trinity.common | ||
| :members: | ||
| :undoc-members: | ||
| :show-inheritance: | ||
|
|
||
| trinity.utils | ||
| ------------- | ||
| .. automodule:: trinity.utils | ||
| :members: | ||
| :undoc-members: | ||
| :show-inheritance: | ||
|
Comment on lines
+54
to
+59
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,8 +3,6 @@ | |
|
|
||
|
|
||
|
|
||
| # Trinity-RFT: A General-Purpose and Unified Framework for Reinforcement Fine-Tuning of Large Language Models | ||
|
|
||
|
|
||
|
|
||
| ## 🚀 News | ||
|
|
@@ -90,12 +88,12 @@ It is designed to support diverse application scenarios and serve as a unified p | |
|
|
||
| * **Adaptation to New Scenarios:** | ||
|
|
||
| Implement agent-environment interaction logic in a single `Workflow` or `MultiTurnWorkflow` class. ([Example](./docs/sphinx_doc/source/tutorial/example_multi_turn.md)) | ||
| Implement agent-environment interaction logic in a single `Workflow` or `MultiTurnWorkflow` class. ([Example](/tutorial/example_multi_turn.md)) | ||
|
|
||
|
|
||
| * **RL Algorithm Development:** | ||
|
|
||
| Develop custom RL algorithms (loss design, sampling, data processing) in compact, plug-and-play classes. ([Example](./docs/sphinx_doc/source/tutorial/example_mix_algo.md)) | ||
| Develop custom RL algorithms (loss design, sampling, data processing) in compact, plug-and-play classes. ([Example](/tutorial/example_mix_algo.md)) | ||
|
|
||
|
|
||
| * **Low-Code Usage:** | ||
|
|
@@ -301,39 +299,39 @@ For studio users, click "Run" in the web interface. | |
|
|
||
| Tutorials for running different RFT modes: | ||
|
|
||
| + [Quick example: GRPO on GSM8k](./docs/sphinx_doc/source/tutorial/example_reasoning_basic.md) | ||
| + [Off-policy RFT](./docs/sphinx_doc/source/tutorial/example_reasoning_advanced.md) | ||
| + [Fully asynchronous RFT](./docs/sphinx_doc/source/tutorial/example_async_mode.md) | ||
| + [Offline learning by DPO or SFT](./docs/sphinx_doc/source/tutorial/example_dpo.md) | ||
| + [Quick example: GRPO on GSM8k](/tutorial/example_reasoning_basic.md) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| + [Off-policy RFT](/tutorial/example_reasoning_advanced.md) | ||
| + [Fully asynchronous RFT](/tutorial/example_async_mode.md) | ||
| + [Offline learning by DPO or SFT](/tutorial/example_dpo.md) | ||
|
|
||
|
|
||
| Tutorials for adapting Trinity-RFT to a new multi-turn agentic scenario: | ||
|
|
||
| + [Multi-turn tasks](./docs/sphinx_doc/source/tutorial/example_multi_turn.md) | ||
| + [Multi-turn tasks](/tutorial/example_multi_turn.md) | ||
|
|
||
|
|
||
| Tutorials for data-related functionalities: | ||
|
|
||
| + [Advanced data processing & human-in-the-loop](./docs/sphinx_doc/source/tutorial/example_data_functionalities.md) | ||
| + [Advanced data processing & human-in-the-loop](/tutorial/example_data_functionalities.md) | ||
|
|
||
|
|
||
| Tutorials for RL algorithm development/research with Trinity-RFT: | ||
|
|
||
| + [RL algorithm development with Trinity-RFT](./docs/sphinx_doc/source/tutorial/example_mix_algo.md) | ||
| + [RL algorithm development with Trinity-RFT](/tutorial/example_mix_algo.md) | ||
|
|
||
|
|
||
| Guidelines for full configurations: see [this document](./docs/sphinx_doc/source/tutorial/trinity_configs.md) | ||
| Guidelines for full configurations: see [this document](/tutorial/trinity_configs.md) | ||
|
|
||
|
|
||
| Guidelines for developers and researchers: | ||
|
|
||
| + [Build new RL scenarios](./docs/sphinx_doc/source/tutorial/trinity_programming_guide.md#workflows-for-rl-environment-developers) | ||
| + [Implement new RL algorithms](./docs/sphinx_doc/source/tutorial/trinity_programming_guide.md#algorithms-for-rl-algorithm-developers) | ||
| + [Build new RL scenarios](/tutorial/trinity_programming_guide.md#workflows-for-rl-environment-developers) | ||
| + [Implement new RL algorithms](/tutorial/trinity_programming_guide.md#algorithms-for-rl-algorithm-developers) | ||
|
|
||
|
|
||
|
|
||
|
|
||
| For some frequently asked questions, see [FAQ](./docs/sphinx_doc/source/tutorial/faq.md). | ||
| For some frequently asked questions, see [FAQ](/tutorial/faq.md). | ||
|
|
||
|
|
||
|
|
||
|
|
||
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
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
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
trinity.commonmodule has an empty__init__.pyfile, soautomodulewill generate an empty documentation section. If this module is intended to be part of the public API, please export its members. Otherwise, it should be removed from this API reference file.