Skip to content
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

[Examples][Serve] Update TGI example with customizable env vars #3121

Merged
merged 1 commit into from
Feb 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions examples/serve/huggingface-tgi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# SkyServe YAML to run HuggingFace TGI
#
# Usage:
# sky serve up -n tgi huggingface-tgi.yaml \
# [--env MODEL_ID=<model-id-on-huggingface>]
# Then visit the endpoint printed in the console. You could also
# check the endpoint by running:
# sky serve status --endpoint tgi

envs:
MODEL_ID: lmsys/vicuna-13b-v1.5

service:
readiness_probe: /health
replicas: 2

resources:
ports: 8080
accelerators: A100:1

run: |
docker run --gpus all --shm-size 1g -p 8080:80 \
-v ~/data:/data ghcr.io/huggingface/text-generation-inference \
--model-id $MODEL_ID
19 changes: 0 additions & 19 deletions examples/serve/tgi_coder.yaml

This file was deleted.

Loading