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 load local safetensors model #2512

Merged
merged 2 commits into from
Jan 20, 2024
Merged

Conversation

esmeetu
Copy link
Collaborator

@esmeetu esmeetu commented Jan 19, 2024

No description provided.

@simon-mo
Copy link
Collaborator

i think i roughly understand the fix, can you explain though? i'm a bit confused on in what case this would happen?

@esmeetu
Copy link
Collaborator Author

esmeetu commented Jan 20, 2024

i think i roughly understand the fix, can you explain though? i'm a bit confused on in what case this would happen?

When loading local safetensors model, use_safetensors flag was missed currently. And it will go to load default .bin format model.

You can download TinyLlama/TinyLlama-1.1B-Chat-v1.0 in a local folder like /models/TinyLlama-1.1B-Chat-v1.0, and then running any server with --model /models/TinyLlama-1.1B-Chat-v1.0 args.

@simon-mo simon-mo merged commit 91a61da into vllm-project:main Jan 20, 2024
16 checks passed
@esmeetu esmeetu deleted the fix-sf branch January 20, 2024 00:26
@NikolaBorisov
Copy link
Contributor

Sorry, I think I broke this. Fix makes sense.

hongxiayang pushed a commit to hongxiayang/vllm that referenced this pull request Feb 13, 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.

None yet

3 participants