Skip to content

[docs] update docs#9250

Merged
Jintao-Huang merged 4 commits intomodelscope:mainfrom
Jintao-Huang:update_docs_0430
Apr 30, 2026
Merged

[docs] update docs#9250
Jintao-Huang merged 4 commits intomodelscope:mainfrom
Jintao-Huang:update_docs_0430

Conversation

@Jintao-Huang
Copy link
Copy Markdown
Collaborator

No description provided.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates the dependency constraints for 'transformers' and 'trl' across documentation and configuration files, and adds a hyperlink to the Mcore-Bridge documentation. The review feedback suggests ensuring consistency in the documentation tables by including the recommended version for 'trl' and improving the dependency specification in the installation script to match the constraints defined in 'requirements/framework.txt'.

| modelscope | >=1.23 | | |
| peft | >=0.11,<0.20 | | LoRA |
| trl | >=0.15,<0.30 | | RLHF |
| trl | >=0.15,<1.0 | | RLHF |
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.

medium

For consistency with other documentation files (such as README.md and SWIFT-installation.md), the recommended version for trl should be specified as 0.29.1 in this table.

Suggested change
| trl | >=0.15,<1.0 | | RLHF |
| trl | >=0.15,<1.0 | 0.29.1 | RLHF |

| modelscope | >=1.23 | | |
| peft | >=0.11,<0.20 | | LoRA |
| trl | >=0.15,<0.30 | | RLHF |
| trl | >=0.15,<1.0 | | RLHF |
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.

medium

For consistency with other documentation files, the recommended version for trl should be specified as 0.29.1 in this table.

Suggested change
| trl | >=0.15,<1.0 | | RLHF |
| trl | >=0.15,<1.0 | 0.29.1 | RLHF |

pip install "vllm>=0.5.1" -U
pip install "lmdeploy>=0.5,<0.10.2" -U --no-deps
pip install "transformers<5.7" "trl<0.30" peft -U
pip install "transformers<5.8" "trl<1.0" peft -U
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.

medium

The dependency constraints in this script should be consistent with those defined in requirements/framework.txt. This includes adding the lower bounds for transformers and trl, adding the version constraint for peft, and using the same version string format (e.g., <5.8.0 instead of <5.8).

Suggested change
pip install "transformers<5.8" "trl<1.0" peft -U
pip install "transformers>=4.33,<5.8.0" "trl>=0.15,<1.0" "peft>=0.11,<0.20" -U

@Jintao-Huang Jintao-Huang merged commit 85c8d53 into modelscope:main Apr 30, 2026
2 of 3 checks passed
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