-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathcog.yaml
executable file
·60 lines (53 loc) · 1.55 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Configuration for Cog ⚙️
# Reference: https://github.com/replicate/cog/blob/main/docs/yaml.md
build:
# set to true if your model requires a GPU
gpu: true
cuda: "11.7"
# a list of ubuntu apt packages to install
system_packages:
- "ffmpeg"
- "portaudio19-dev"
# - "libgl1-mesa-glx"
# - "libglib2.0-0"
# python version in the form '3.8' or '3.8.12'
python_version: "3.9"
# a list of packages in the format <package-name>==<version>
python_packages:
- "torch==2.0.1"
- "av"
- "einops"
- "flashy>=0.0.1"
- "hydra-core>=1.1"
- "hydra_colorlog"
- "julius"
- "num2words"
- "sentencepiece"
- "spacy==3.5.2"
- "torchaudio>=2.0.0"
- "huggingface_hub"
- "tqdm"
- "transformers>=4.31.0"
- "xformers==0.0.22"
- "demucs"
- "librosa"
- "gradio"
- "torchmetrics"
- "encodec"
- "protobuf"
- "tensorboard>=1.15"
- "pyaudio==0.2.13"
- "git+https://github.com/CPJKU/madmom"
- "ninja"
- "allin1"
- "pytsmod"
# commands run after the environment is setup
run:
- pip3 install natten -f https://shi-labs.com/natten/wheels/cu117/torch2.0.0/index.html
- curl -o /usr/local/bin/pget -L "https://github.com/replicate/pget/releases/download/v0.0.6/pget" && chmod +x /usr/local/bin/pget
# - "apt-get update && apt-get install -y ffmpeg"
# - "apt-get install unzip"
# - "python -m pip install pip --upgrade"
# - "pip install BeatNet==1.1.0"
# predict.py defines how predictions are run on your model
predict: "predict.py:Predictor"