Spaces:
Running
on
Zero
Running
on
Zero
<feat> using docker sdk.
Browse files- .gitattributes +1 -0
- Dockerfile +17 -0
- README.md +1 -4
- app.sh +0 -4
- models/hyvideo/transformer_hunyuan_video_i2v.py +1 -1
.gitattributes
CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
36 |
+
*.py text eol=lf
|
Dockerfile
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM pytorch/pytorch:2.5.1-cuda12.1-cudnn8-runtime
|
2 |
+
|
3 |
+
RUN apt-get update && apt-get install -y \
|
4 |
+
git build-essential python3-dev ninja-build && \
|
5 |
+
rm -rf /var/lib/apt/lists/*
|
6 |
+
|
7 |
+
RUN pip install --upgrade pip
|
8 |
+
|
9 |
+
COPY requirements.txt /tmp/requirements.txt
|
10 |
+
RUN pip install -r /tmp/requirements.txt
|
11 |
+
|
12 |
+
RUN pip install git+https://github.com/Dao-AILab/[email protected]#subdirectory=csrc
|
13 |
+
|
14 |
+
COPY . /app
|
15 |
+
WORKDIR /app
|
16 |
+
|
17 |
+
CMD ["python", "app.py"]
|
README.md
CHANGED
@@ -3,13 +3,10 @@ title: DRA-Ctrl
|
|
3 |
emoji: 😻
|
4 |
colorFrom: green
|
5 |
colorTo: gray
|
6 |
-
sdk:
|
7 |
-
sdk_version: 5.33.2
|
8 |
-
app_file: app.py
|
9 |
pinned: false
|
10 |
license: apache-2.0
|
11 |
short_description: huggingface space for DRA-Ctrl.
|
12 |
-
entrypoint: app.sh
|
13 |
---
|
14 |
|
15 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
3 |
emoji: 😻
|
4 |
colorFrom: green
|
5 |
colorTo: gray
|
6 |
+
sdk: docker
|
|
|
|
|
7 |
pinned: false
|
8 |
license: apache-2.0
|
9 |
short_description: huggingface space for DRA-Ctrl.
|
|
|
10 |
---
|
11 |
|
12 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
app.sh
DELETED
@@ -1,4 +0,0 @@
|
|
1 |
-
#!/bin/bash
|
2 |
-
pip install torch==2.5.1
|
3 |
-
pip install git+https://github.com/Dao-AILab/[email protected]#subdirectory=csrc
|
4 |
-
python app.py
|
|
|
|
|
|
|
|
|
|
models/hyvideo/transformer_hunyuan_video_i2v.py
CHANGED
@@ -43,7 +43,7 @@ try:
|
|
43 |
from flash_attn import flash_attn_func, flash_attn_varlen_func
|
44 |
FLASH_ATTN_AVALIABLE = True
|
45 |
except:
|
46 |
-
FLASH_ATTN_AVALIABLE =
|
47 |
|
48 |
|
49 |
logger = logging.get_logger(__name__) # pylint: disable=invalid-name
|
|
|
43 |
from flash_attn import flash_attn_func, flash_attn_varlen_func
|
44 |
FLASH_ATTN_AVALIABLE = True
|
45 |
except:
|
46 |
+
FLASH_ATTN_AVALIABLE = True
|
47 |
|
48 |
|
49 |
logger = logging.get_logger(__name__) # pylint: disable=invalid-name
|