-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bugfix: configurable deployment options (#121)
* feat: adjustable deployment strategy Signed-off-by: BrianPark314 <[email protected]>
- Loading branch information
1 parent
93ad1cd
commit aec9264
Showing
4 changed files
with
45 additions
and
4 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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
|
||
# Curl and save output | ||
[ ! -d "output-02-two-pods" ] && mkdir output-02-two-pods | ||
chmod -R 777 output-02-two-pods | ||
# shellcheck disable=SC2034 # result_model appears unused. Verify it or export it. | ||
result_model=$(curl -s http://"$1":"$2"/models | tee output-02-two-pods/output-02-two-pods.json) | ||
# shellcheck disable=SC2034 # result_query appears unused. Verify it or export it. | ||
result_query=$(curl -X POST http://"$1":"$2"/completions -H "Content-Type: application/json" -d '{"model": "facebook/opt-125m", "prompt": "Once upon a time,", "max_tokens": 10}' | tee output-02-two-pods/output-02-two-pods.json) |
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
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,4 +1,6 @@ | ||
servingEngineSpec: | ||
strategy: | ||
type: Recreate | ||
runtimeClassName: "" | ||
modelSpec: | ||
- name: "opt125m" | ||
|