forked from Harmonai-org/sample-generator
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathcog.yaml
38 lines (33 loc) · 1.49 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
# 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
# a list of ubuntu apt packages to install
system_packages:
- "curl"
- "ffmpeg"
# python version in the form '3.8' or '3.8.12'
python_version: "3.8"
# a list of packages in the format <package-name>==<version>
python_packages:
- "numpy==1.21.6"
- "torchvision==0.10.0"
- "torch==1.9.0"
- "torchaudio==0.9.0"
# commands run after the environment is setup
run:
- pip install --upgrade pip
- pip install einops pandas prefigure pytorch_lightning scipy torch tqdm wandb
- mkdir /models
- git clone https://github.com/harmonai-org/sample-generator
- git clone --recursive https://github.com/crowsonkb/v-diffusion-pytorch
- pip install /sample-generator
- pip install /v-diffusion-pytorch
- pip install ipywidgets==7.7.1
- pip install matplotlib soundfile
- wget -O /models/gwf-440k.ckpt https://model-server.zqevans2.workers.dev/gwf-440k.ckpt > /dev/null 2>&1
- wget -O /models/jmann-large-580k.ckpt https://model-server.zqevans2.workers.dev/jmann-large-580k.ckpt > /dev/null 2>&1
- wget -O /models/maestro-uncond-150k.ckpt https://model-server.zqevans2.workers.dev/maestro-uncond-150k.ckpt > /dev/null 2>&1
- wget -O /models/unlocked-uncond-250k.ckpt https://model-server.zqevans2.workers.dev/unlocked-uncond-250k.ckpt > /dev/null 2>&1
predict: "predict.py:Predictor"