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 #5233

Merged

Conversation

liuyhwangyh
Copy link
Contributor

FIX #4362

@liuyhwangyh liuyhwangyh force-pushed the fix_download_from_modelscope branch from 7a02025 to a3fa75d Compare June 3, 2024 23:43
@liuyhwangyh liuyhwangyh changed the title Bugfix: fix broken of download models from modelscope #1 Bugfix: fix broken of download models from modelscope Jun 3, 2024
Copy link
Collaborator

Choose a reason for hiding this comment

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

This test isn't ran at the moment, and I would prefer this be put inside test_regression if possible

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Moved to test_regression.py

trust_remote_code=trust_remote_code,
revision=revision,
code_revision=code_revision)
if VLLM_USE_MODELSCOPE:
Copy link
Collaborator

Choose a reason for hiding this comment

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

can you use the following pattern?

if VLLM_USE_MODELSCOPE:
    from modelscope import AutoConfig
    auto_cls = AutoConfig
else: 
    from transformers import AutoConfig
    auto_cls = AutoConfig

config = AutoConfig...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated

@simon-mo
Copy link
Collaborator

simon-mo commented Jun 6, 2024

@liuyhwangyh
Copy link
Contributor Author

@WoosukKwon WoosukKwon merged commit 4efff03 into vllm-project:main Jun 6, 2024
52 of 55 checks passed
dtrifiro pushed a commit to opendatahub-io/vllm that referenced this pull request Jun 10, 2024
robertgshaw2-redhat pushed a commit to neuralmagic/nm-vllm that referenced this pull request Jun 11, 2024
joerunde pushed a commit to joerunde/vllm that referenced this pull request Jun 17, 2024
xjpang pushed a commit to xjpang/vllm that referenced this pull request Jun 27, 2024
xjpang pushed a commit to xjpang/vllm that referenced this pull request Jul 8, 2024
xjpang pushed a commit to xjpang/vllm that referenced this pull request Jul 24, 2024
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
3 participants