-
Notifications
You must be signed in to change notification settings - Fork 44
/
cog.yaml
33 lines (27 loc) · 1015 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
26
27
28
29
30
31
32
33
# 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:
- "ffmpeg"
# python version in the form '3.8' or '3.8.12'
python_version: "3.11"
# a list of packages in the format <package-name>==<version>
python_packages:
- "numpy==1.23.5"
- "torch==2.0.1"
- "tqdm==4.66.1"
- "more-itertools==10.1.0"
- "transformers==4.35.0"
- "ffmpeg-python==0.2.0"
- "openai-whisper==20231106"
- ipython
# 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
- --mount=type=cache,target=/root/.cache/pip pip install cog==0.10.0a15
- ln -sf $(which echo) $(which pip)
# predict.py defines how predictions are run on your model
predict: "predict.py:Predictor"