Skip to content

[Usage]: how to change the path of download models #16975

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

Closed
1 task done
eternal8080 opened this issue Apr 22, 2025 · 2 comments · Fixed by #17013
Closed
1 task done

[Usage]: how to change the path of download models #16975

eternal8080 opened this issue Apr 22, 2025 · 2 comments · Fixed by #17013
Labels
usage How to use vllm

Comments

@eternal8080
Copy link

Motivation.

how can I change the path of my download models?

Proposed Change.

how can I change the path of my download models?

Feedback Period.

how can I change the path of my download models?

CC List.

how can I change the path of my download models?

Any Other Things.

how can I change the path of my download models?

Before submitting a new issue...

  • Make sure you already searched for relevant issues, and asked the chatbot living at the bottom right corner of the documentation page, which can answer lots of frequently asked questions.
@DarkLight1337
Copy link
Member

We use HuggingFace Hub for downloading most models, you can refer to their own documentation

@reidliu41
Copy link
Contributor

you can try HF_HOME env var, e.g

vllm serve facebook/opt-125m
INFO 04-23 06:23:57 [__init__.py:239] Automatically detected platform cpu.
config.json: 100%|█████████████████████████████████████████████████| 651/651 [00:00<00:00, 1.20MB/s]
tokenizer_config.json: 100%|███████████████████████████████████████| 685/685 [00:00<00:00, 13.1MB/s]

$ ls ~/.cache/huggingface/hub/models--facebook--opt-125m/
blobs     refs      snapshots

$ mkdir /tmp/test-hf-download
$ export HF_HOME=/tmp/test-hf-download
$ vllm serve facebook/opt-125m
INFO 04-23 06:26:05 [__init__.py:239] Automatically detected platform cpu.
config.json: 100%|█████████████████████████████████████████████████| 651/651 [00:00<00:00, 1.00MB/s]
tokenizer_config.json: 100%|███████████████████████████████████████| 685/685 [00:00<00:00, 14.0MB/s]
$ ls /tmp/test-hf-download/hub/models--facebook--opt-125m/
blobs     refs      snapshots

@DarkLight1337 DarkLight1337 added usage How to use vllm and removed RFC labels Apr 23, 2025
@DarkLight1337 DarkLight1337 changed the title [RFC]: how to change the path of download models [Usage]: how to change the path of download models Apr 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
usage How to use vllm
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants