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

Bugfix: fix broken of download models from modelscope #1

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

liuyhwangyh
Copy link
Owner

Fixed broken of download models from modelscope
FIX vllm-project#4362

return config

Choose a reason for hiding this comment

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

revert unintended change?

from modelscope import AutoConfig
config = AutoConfig.from_pretrained(
model,
trust_remote_code=trust_remote_code,

Choose a reason for hiding this comment

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

does modelscope support trust_remote_code?

Copy link
Owner Author

Choose a reason for hiding this comment

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

是的,我们封装的HF的AutoConfig

@@ -402,7 +402,9 @@ def _init_tokenizer(self, **tokenizer_init_kwargs) -> BaseTokenizerGroup:
max_input_length=None,
tokenizer_mode=self.model_config.tokenizer_mode,
trust_remote_code=self.model_config.trust_remote_code,
revision=self.model_config.tokenizer_revision)
revision=self.model_config.tokenizer_revision
if self.model_config.tokenizer_revision is not None else

Choose a reason for hiding this comment

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

only do this when use_modelscope?

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.

[Bug]: v0.4.1 VLLM_USE_MODELSCOPE not working
2 participants