Skip to content

Fix pipeline parameter#1717

Merged
tastelikefeet merged 4 commits into
masterfrom
fix/0515-1
May 15, 2026
Merged

Fix pipeline parameter#1717
tastelikefeet merged 4 commits into
masterfrom
fix/0515-1

Conversation

@tastelikefeet
Copy link
Copy Markdown
Collaborator

No description provided.

@tastelikefeet tastelikefeet changed the title Fix damoyolo parameter Fix pipeline parameter May 15, 2026
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 improves the propagation of the trust_remote_code parameter across the pipeline and trainer modules, ensuring that security settings are respected during model instantiation. It also introduces a plugin whitelist filter in the base model's security check. Feedback suggests extending this security check to include the allow_remote configuration field for better consistency across the framework.

I am having trouble creating individual review comments. Click here to see my feedback.

modelscope/models/base/base_model.py (194)

medium

For consistency with the security checks in modelscope/pipelines/builder.py and modelscope/trainers/builder.py, the allow_remote field from the configuration should also be checked here. This ensures that models requiring remote code execution are correctly blocked when trust_remote_code is False, even if they don't use plugins.

        if (filter_plugin_in_whitelist(plugins) or cfg.get('allow_remote', False)) and not trust_remote_code:

@tastelikefeet tastelikefeet merged commit cddbaba into master May 15, 2026
2 of 3 checks passed
@tastelikefeet tastelikefeet deleted the fix/0515-1 branch May 15, 2026 06:07
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