-
Notifications
You must be signed in to change notification settings - Fork 0
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
base: main
Are you sure you want to change the base?
Conversation
vllm/transformers_utils/config.py
Outdated
return config |
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
是的,我们封装的HF的AutoConfig
vllm/engine/llm_engine.py
Outdated
@@ -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 |
There was a problem hiding this comment.
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?
Fixed broken of download models from modelscope
FIX vllm-project#4362