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

Add hf-transfer for faster HF Hub ops #75

Merged
merged 2 commits into from
Mar 15, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
3 changes: 2 additions & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
CUDA_VISIBLE_DEVICES=""
USE_DEPLOYMENT_CACHE = True
SAVE_DEPLOYMENT_CACHE = True
SAVE_DEPLOYMENT_CACHE = True
HF_HUB_ENABLE_HF_TRANSFER = 1
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ sh install.sh
5. Run the SDK.

```bash
CUDA_VISIBLE_DEVICES=0 poetry run aana --port 8000 --host 0.0.0.0 --target chat_with_video
HF_HUB_ENABLE_HF_TRANSFER=1 CUDA_VISIBLE_DEVICES=0 poetry run aana --port 8000 --host 0.0.0.0 --target chat_with_video
movchan74 marked this conversation as resolved.
Show resolved Hide resolved
```

The target parameter specifies the set of endpoints to deploy.
Expand Down
76 changes: 74 additions & 2 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ deepdiff = "^6.7.0"
diffusers = "^0.23.1"
fastapi = "^0.104.0"
faster-whisper = ">=0.10.0"
hf-transfer = "^0.1.6"
onnxruntime = "1.16.1"
opencv-python = "^4.8.1.78"
portpicker = "^1.6.0"
Expand Down
2 changes: 1 addition & 1 deletion startup.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
# TODO: pass arguments to the docker to set target instead of environment variable
poetry run aana --port 8000 --host 0.0.0.0 --target $TARGET
HF_HUB_ENABLE_HF_TRANSFER=1 poetry run aana --port 8000 --host 0.0.0.0 --target $TARGET
Loading