-
Notifications
You must be signed in to change notification settings - Fork 22
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
[Doc] Add vllm-ascend usage doc & fix doc format #53
base: main
Are you sure you want to change the base?
Conversation
No need to update installation and quick start doc. They will be updated in new PR. |
ok. |
|
||
```bash | ||
cd /usr/local/Ascend/ascend-toolkit/latest/<arch>-linux # <arch>: aarch64 or x86_64 | ||
cat ascend_toolkit_install.info |
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.
We can just use one instruction
cat ~/Ascend/ascend-toolkit/latest/"$(uname -i)"-linux/ascend_toolkit_install.info
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.
This has been removed now.
Signed-off-by: Shanshan Shen <[email protected]>
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.
Overall, it has been greatly improved compared to the previous version, thank you!
```bash | ||
# Use Modelscope mirror to speed up model download | ||
export VLLM_USE_MODELSCOPE=True | ||
export MODELSCOPE_CACHE=/root/models/ |
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.
export MODELSCOPE_CACHE=/root/models/ |
you can use default cache -v /root/.cache:/root/.cache
-v /usr/local/Ascend/driver/lib64/:/usr/local/Ascend/driver/lib64/ \ | ||
-v /usr/local/Ascend/driver/version.info:/usr/local/Ascend/driver/version.info \ | ||
-v /etc/ascend_install.info:/etc/ascend_install.info \ | ||
-v /root/models:/root/models \ |
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.
-v /root/models:/root/models \ | |
-v /root/.cache:/root/.cache \ |
-v /usr/local/Ascend/driver/lib64/:/usr/local/Ascend/driver/lib64/ \ | ||
-v /usr/local/Ascend/driver/version.info:/usr/local/Ascend/driver/version.info \ | ||
-v /etc/ascend_install.info:/etc/ascend_install.info \ | ||
-v /root/models:/root/models \ |
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.
-v /root/models:/root/models \ | |
-v /root/.cache:/root/.cache \ |
-v /root/models:/root/models \ | ||
-p 8000:8000 \ | ||
-e VLLM_USE_MODELSCOPE=True \ | ||
-e MODELSCOPE_CACHE=/root/models/ \ |
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.
-e MODELSCOPE_CACHE=/root/models/ \ |
-v /usr/local/Ascend/driver/lib64/:/usr/local/Ascend/driver/lib64/ \ | ||
-v /usr/local/Ascend/driver/version.info:/usr/local/Ascend/driver/version.info \ | ||
-v /etc/ascend_install.info:/etc/ascend_install.info \ | ||
-v /root/models:/root/models \ |
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.
-v /root/models:/root/models \ | |
-v /root/.cache:/root/.cache \ |
```bash | ||
# Use Modelscope mirror to speed up model download | ||
export VLLM_USE_MODELSCOPE=True | ||
export MODELSCOPE_CACHE=/root/models/ |
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.
export MODELSCOPE_CACHE=/root/models/ |
def clean_up(): | ||
destroy_model_parallel() | ||
destroy_distributed_environment() | ||
gc.collect() | ||
torch.npu.empty_cache() |
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.
Looks like a little bit wired, would you mind taking a look? @wangxiyuan
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.
since this is only a simple example, no need to do
del llm
clean_up()
What this PR does / why we need it?
docs
dir, e.g. format tables, add underline for links, add line feed...Does this PR introduce any user-facing change?
no.
How was this patch tested?
no.