forked from THUDM/CogVideo
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathcog.yaml
34 lines (29 loc) · 1.29 KB
/
cog.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Configuration for Cog ⚙️
# Reference: https://github.com/replicate/cog/blob/main/docs/yaml.md
build:
gpu: true
cuda: "11.3"
system_packages:
- "ffmpeg"
- "libsm6"
- "libxext6"
- "libglib2.0-0"
python_version: "3.9"
python_packages:
- "deep-translator==1.8.3"
- "gifmaker==1.5"
- "icetk==0.0.4"
- "opencv-python==4.6.0.66"
- "SwissArmyTransformer==0.2.9"
- "torch==1.11.0"
- "torchvision==0.12.0"
- "tqdm==4.64.0"
run:
- "pip install torch==1.11.0+cu113 torchvision==0.12.0+cu113 pytorch-lightning torch-fidelity -f https://download.pytorch.org/whl/torch_stable.html"
- "mkdir -p /sharefs/cogview-new; cd /sharefs/cogview-new; wget https://models.nmb.ai/cogvideo/cogvideo-stage1.tar.gz -O - | tar xz"
- "cd /sharefs/cogview-new; wget https://models.nmb.ai/cogvideo/cogvideo-stage2.tar.gz -O - | tar xz"
- "mkdir -p /root/.icetk_models; wget -O /root/.icetk_models/ice_text.model https://models.nmb.ai/cogvideo/ice_text.model"
- "mkdir -p /root/.tcetk_models; wget -O /root/.icetk_models/ice_image.pt https://models.nmb.ai/cogvideo/ice_image.pt"
- "cd /sharefs/cogview-new; wget https://models.nmb.ai/cogview2/cogview2-dsr.tar.gz -O - | tar xz"
predict: "predict.py:Predictor"
image: "r8.im/nightmareai/cogvideo"