generated from mobiusml/aana_app_template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from mobiusml/dstack_deploy
Add Configuration Files for dstack Deploy
- Loading branch information
Showing
8 changed files
with
161 additions
and
105 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
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,50 @@ | ||
type: service | ||
|
||
name: aana-chat-with-video | ||
|
||
image: nvidia/cuda:12.3.2-cudnn9-devel-ubuntu22.04 | ||
|
||
env: | ||
- NUM_WORKERS=5 | ||
- TASK_QUEUE__EXECUTION_TIMEOUT=10000 | ||
- TASK_QUEUE__NUM_WORKERS=5 | ||
- TMP_DATA_DIR=/demo_data/aana | ||
- IMAGE_DIR=/demo_data/aana/images | ||
- VIDEO_DIR=/demo_data/aana/videos | ||
- AUDIO_DIR=/demo_data/aana/audios | ||
- MODEL_DIR=/demo_data/aana/models | ||
- DB_CONFIG__DATASTORE_TYPE=sqlite | ||
- DB_CONFIG__DATASTORE_CONFIG__PATH=/demo_data/aana.db | ||
|
||
commands: | ||
- apt-get update | ||
- apt-get install -y libgl1 libglib2.0-0 ffmpeg python3 python3-dev git nvtop htop sqlite3 cron | ||
- curl -sSL https://install.python-poetry.org | python3 - | ||
- export PATH=$PATH:/root/.local/bin | ||
- sh install.sh | ||
- mkdir -p /demo_data | ||
- mkdir -p /demo_data/hf_cache | ||
- (crontab -l 2>/dev/null; echo "0 3 * * * find $TMP_DATA_DIR/videos/* -type f -atime +3 -exec rm -f {} \;") | sort -u | crontab - | ||
- (crontab -l 2>/dev/null; echo "0 3 * * * find $TMP_DATA_DIR/audios/* -type f -atime +3 -exec rm -f {} \;") | sort -u | crontab - | ||
- (crontab -l 2>/dev/null; echo "0 3 * * * find $TMP_DATA_DIR/images/* -type f -atime +3 -exec rm -f {} \;") | sort -u | crontab - | ||
- HF_HUB_CACHE="/demo_data/hf_cache" CUDA_VISIBLE_DEVICES="0" poetry run aana deploy aana_chat_with_video.app:aana_app | ||
|
||
port: 8000 | ||
|
||
replicas: 1 | ||
|
||
auth: False | ||
|
||
spot_policy: on-demand | ||
|
||
max_price: 0.5 | ||
|
||
volumes: | ||
- name: demo-data | ||
path: /demo_data | ||
|
||
resources: | ||
gpu: 48GB.. | ||
cpu: 8.. | ||
memory: 50GB.. | ||
disk: 50GB.. |
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,3 @@ | ||
#!/bin/sh | ||
poetry install | ||
poetry run pip install flash-attn --no-build-isolation # temporary fix for flash-attn bug in vLLM |
Large diffs are not rendered by default.
Oops, something went wrong.
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,7 @@ | ||
type: volume | ||
name: demo-data | ||
|
||
backend: runpod | ||
region: EU-SE-1 | ||
|
||
size: 100GB |