Skip to content

Add whitelist to iic and damo#1720

Merged
tastelikefeet merged 3 commits into
masterfrom
fix/0519-1
May 19, 2026
Merged

Add whitelist to iic and damo#1720
tastelikefeet merged 3 commits into
masterfrom
fix/0519-1

Conversation

@tastelikefeet

Copy link
Copy Markdown
Collaborator

No description provided.

(cherry picked from commit 9549ee7d25e383fc59d4a7196065aefc6cfcdeba)

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request introduces a mechanism to automatically trust remote code for models belonging to specific trusted groups ('iic', 'damo', 'modelscope') by adding an is_trusted_group utility and integrating it into the model, pipeline, and trainer builders. Feedback suggests optimizing the utility function by compiling the regular expression at the module level, handling cases where the model input is a list in the builders, and addressing an unused trust_remote_code parameter added to the preprocessor base class.

Comment thread modelscope/utils/plugins.py
Comment thread modelscope/pipelines/builder.py Outdated
Comment thread modelscope/trainers/builder.py Outdated
Comment thread modelscope/preprocessors/base.py
@tastelikefeet tastelikefeet merged commit d52d5e6 into master May 19, 2026
2 of 3 checks passed
@tastelikefeet tastelikefeet deleted the fix/0519-1 branch May 19, 2026 04:55
Jintao-Huang pushed a commit that referenced this pull request May 19, 2026
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