-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathcog.yaml
More file actions
34 lines (27 loc) · 1.14 KB
/
cog.yaml
File metadata and controls
34 lines (27 loc) · 1.14 KB
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:
# set to true if your model requires a GPU
gpu: true
cuda: "11.8"
# a list of ubuntu apt packages to install
system_packages:
- "libgl1-mesa-glx"
- "libglib2.0-0"
# python version in the form '3.11' or '3.11.4'
python_version: "3.10.4"
# python_requirements: requirements.txt
# a list of packages in the format <package-name>==<version>
python_packages:
- "torch==2.0.1"
- "torchvision==0.15.2"
- "xformers==0.0.20"
# commands run after the environment is setup
run:
- git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui /stable-diffusion-webui
- wget --content-disposition -P /stable-diffusion-webui/models/Stable-diffusion "https://civitai.com/api/download/models/176425?type=Model&format=SafeTensor&size=pruned&fp=fp16"
- git clone https://github.com/LLSean/cog-A1111-webui /cog-sd-webui
- python /cog-sd-webui/init_env.py --skip-torch-cuda-test
image: "r8.im/llsean/cog-a1111-webui"
# predict.py defines how predictions are run on your model
predict: "predict.py:Predictor"