replicate

This commit is contained in:
chenxwh
2024-02-11 14:45:44 +00:00
parent db877abb91
commit 32b2faf06e
3 changed files with 183 additions and 0 deletions

15
cog.yaml Normal file
View File

@@ -0,0 +1,15 @@
# Configuration for Cog ⚙️
# Reference: https://github.com/replicate/cog/blob/main/docs/yaml.md
build:
gpu: true
python_version: "3.11"
python_packages:
- torch==2.0.1
- torchvision==0.15.2
- transformers==4.37.2
- accelerate==0.27.0
- hf_transfer
# predict.py defines how predictions are run on your model
predict: "predict.py:Predictor"