-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add k8s support for audioqna * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
4f7fc39
commit 0a6bad0
Showing
3 changed files
with
866 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Deploy VisualQnA in a Kubernetes Cluster | ||
|
||
> [NOTE] | ||
> The following values must be set before you can deploy: | ||
> HUGGINGFACEHUB_API_TOKEN | ||
> You can also customize the "MODEL_ID" and "model-volume" | ||
## Deploy On Xeon | ||
``` | ||
cd GenAIExamples/AudioQnA/kubernetes/manifests/xeon | ||
export HUGGINGFACEHUB_API_TOKEN="YourOwnToken" | ||
sed -i "s/insert-your-huggingface-token-here/${HUGGINGFACEHUB_API_TOKEN}/g" audioqna.yaml | ||
kubectl apply -f audioqna.yaml | ||
``` | ||
## Deploy On Gaudi | ||
``` | ||
cd GenAIExamples/AudioQnA/kubernetes/manifests/gaudi | ||
export HUGGINGFACEHUB_API_TOKEN="YourOwnToken" | ||
sed -i "s/insert-your-huggingface-token-here/${HUGGINGFACEHUB_API_TOKEN}/g" audioqna.yaml | ||
kubectl apply -f audioqna.yaml | ||
``` | ||
|
||
|
||
## Verify Services | ||
|
||
Make sure all the pods are running, and restart the audioqna-xxxx pod if necessary. | ||
|
||
```bash | ||
kubectl get pods | ||
|
||
curl http://${host_ip}:3008/v1/audioqna -X POST -d '{"audio": "UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA", "max_tokens":64}' -H 'Content-Type: application/json' | ||
``` |
Oops, something went wrong.