-
Notifications
You must be signed in to change notification settings - Fork 470
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Examples] Add vLLM container example (#3694)
* add docker example * fix link
- Loading branch information
1 parent
bd383e9
commit a51b507
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
envs: | ||
MODEL_NAME: meta-llama/Llama-2-7b-chat-hf | ||
HF_TOKEN: # TODO: Fill with your own huggingface token, or use --env to pass. | ||
|
||
resources: | ||
image_id: docker:vllm/vllm-openai:latest | ||
accelerators: {L4:1, A10G:1, A10:1, A100:1, A100-80GB:1} | ||
ports: | ||
- 8000 | ||
|
||
setup: | | ||
conda deactivate | ||
python3 -c "import huggingface_hub; huggingface_hub.login('${HF_TOKEN}')" | ||
run: | | ||
conda deactivate | ||
echo 'Starting vllm openai api server...' | ||
python -m vllm.entrypoints.openai.api_server \ | ||
--model $MODEL_NAME --tokenizer hf-internal-testing/llama-tokenizer \ | ||
--host 0.0.0.0 |