forked from Jack000/glid-3-xl-stable
-
Notifications
You must be signed in to change notification settings - Fork 2
/
cog.yaml
49 lines (39 loc) · 1.33 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
# Configuration for Cog ⚙️
# Reference: https://github.com/replicate/cog/blob/main/docs/yaml.md
image: r8.im/devxpy/glid-3-xl-stable
build:
# set to true if your model requires a GPU
gpu: true
cuda: "11.6.2"
# a list of ubuntu apt packages to install
system_packages:
- libopenmpi-dev
# python version in the form '3.8' or '3.8.12'
python_version: "3.10"
# a list of packages in the format <package-name>==<version>
python_packages:
# standard DL packages
- numpy==1.21.6
- torch==1.12.1+cu116 --extra-index-url=https://download.pytorch.org/whl/cu116
- torchvision==0.13.1+cu116 --extra-index-url=https://download.pytorch.org/whl/cu116
# latent-diffusion deps
- ipywidgets==7.7.1
- omegaconf==2.2.3
- pytorch-lightning==1.7.7
- torch-fidelity==0.3.0
- einops==0.5.0
# glid-3-xl-stable deps
- mpi4py==3.1.3
- PyQt5==5.15.7
- transformers==4.22.2
- ftfy==6.1.1
- blobfile==2.0.0
- tqdm==4.64.1
# commands run after the environment is setup
run:
# install latent-diffusion
- git clone https://github.com/CompVis/latent-diffusion.git
- git clone https://github.com/CompVis/taming-transformers
- pip install -e ./taming-transformers -e ./latent-diffusion
# predict.py defines how predictions are run on your model
predict: "predict.py:Predictor"