-
Notifications
You must be signed in to change notification settings - Fork 23
/
cog.yaml
25 lines (24 loc) · 634 Bytes
/
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
# Configuration for Cog ⚙️
# Reference: https://github.com/replicate/cog/blob/main/docs/yaml.md
build:
gpu: true
system_packages:
- "libgl1-mesa-glx"
- "libglib2.0-0"
python_version: "3.11"
python_packages:
- torch
- torchvision
- diffusers
# - transformers
- opencv-python
- omegaconf
- tqdm
- safetensors
- hf_transfer
- accelerate
# - peft
run:
- pip install -U peft transformers
- curl -o /usr/local/bin/pget -L "https://github.com/replicate/pget/releases/download/v0.6.0/pget_linux_x86_64" && chmod +x /usr/local/bin/pget
predict: "predict.py:Predictor"