-
Notifications
You must be signed in to change notification settings - Fork 30
/
cog.yaml.template
34 lines (29 loc) · 1.21 KB
/
cog.yaml.template
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://cog.run/yaml
build:
# set to true if your model requires a GPU
gpu: true
cuda: "12.4"
python_version: "3.11"
python_packages:
- "numpy<2"
- "einops==0.8.0"
- "fire==0.6.0"
- "huggingface-hub==0.24.3"
- "safetensors==0.4.3"
- "sentencepiece==0.2.0"
- "transformers==4.43.3"
- "tokenizers==0.19.1"
- "protobuf==5.27.2"
- "diffusers==0.29.2"
- "loguru==0.7.2"
- "pybase64==1.4.0"
- "pydash==8.0.3"
# pinning to specific nightlies for release
- "https://download.pytorch.org/whl/nightly/cu124/torch-2.6.0.dev20240918%2Bcu124-cp311-cp311-linux_x86_64.whl"
- "https://download.pytorch.org/whl/nightly/cu124/torchaudio-2.5.0.dev20240918%2Bcu124-cp311-cp311-linux_x86_64.whl"
- "https://download.pytorch.org/whl/nightly/cu124/torchvision-0.20.0.dev20240918%2Bcu124-cp311-cp311-linux_x86_64.whl"
- "https://download.pytorch.org/whl/nightly/pytorch_triton-3.1.0%2B5fe38ffd73-cp311-cp311-linux_x86_64.whl"
# commands run after the environment is setup
run:
- curl -o /usr/local/bin/pget -L "https://github.com/replicate/pget/releases/download/v0.8.2/pget_linux_x86_64" && chmod +x /usr/local/bin/pget