generated from VectorInstitute/aieng-template
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update inference examples to manual input URLs, update flags for mode…
…l launch script, update vllm version to 0.4.0 to support logits
- Loading branch information
Showing
7 changed files
with
1,281 additions
and
1,266 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -142,6 +142,6 @@ dmypy.json | |
*.err | ||
|
||
# Server url files | ||
.vllm_api_base_url | ||
.vllm* | ||
|
||
logs/ |
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 |
---|---|---|
@@ -1,15 +1,10 @@ | ||
# Did you modify this line in openai_entrypoint.sh? | ||
# If so, modify it here accordingly. | ||
model_type="llama2" | ||
top_directory=$(dirname $(dirname $(realpath "$0"))) | ||
VLLM_BASE_URL_FILENAME=${top_directory}/models/${model_type}/.vllm_api_base_url | ||
|
||
API_BASE_URL=$(cat ${VLLM_BASE_URL_FILENAME}) | ||
# The url is located in the .vllm_model-variant_url file in the corresponding model directory. | ||
export API_BASE_URL=http://gpuXXX:XXXXX/v1 | ||
|
||
curl ${API_BASE_URL}/completions \ | ||
-H "Content-Type: application/json" \ | ||
-d '{ | ||
"model": "/model-weights/Llama-2-7b-hf", | ||
"model": "/model-weights/Llama-2-13b-hf", | ||
"prompt": "What is the capital of Canada?", | ||
"max_tokens": 20 | ||
}' |
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
Oops, something went wrong.