Skip to content
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

Trust remote code param #385

Merged
merged 3 commits into from
Aug 15, 2024
Merged

Conversation

2108038773
Copy link
Contributor

@2108038773 2108038773 commented Aug 13, 2024

model_utils中的prepare_simple_aesthetics_model和prepare_diffusion_model分别使用了simple-aesthetics-predictor和diffusers库,二者也是基于transformers开发的,会使用transformers下载模型。
#382 中,我提交了对算子的trust_remote_code参数支持,解决了算子无法接受trust_remote_code参数的问题。
算子接受trust_remote_code后会传递给prepare_model,其中prepare_huggingface_model有trust_remote_code参数入口,但是prepare_simple_aesthetics_model和prepare_diffusion_model没有trust_remote_code参数入口,这可能会导致与之相关的美学评分算子和diffusion算子出bug。因此,本次PR修正了这两个函数。

Copy link
Collaborator

@HYLcool HYLcool left a comment

Choose a reason for hiding this comment

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

LGTM

@HYLcool HYLcool merged commit 7a00933 into modelscope:main Aug 15, 2024
2 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