Skip to content

Commit

Permalink
Merge pull request #1 from sdtechdev/ar-289-deploy
Browse files Browse the repository at this point in the history
Ar 289 deploy
  • Loading branch information
garg-aayush authored Nov 11, 2024
2 parents 592d059 + f1ec108 commit 5e8d391
Show file tree
Hide file tree
Showing 4 changed files with 539 additions and 409 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Push models to Replicate

on:
workflow_dispatch:
inputs:
model_name:
type: string
description: "Model name on Replicate (format: username/model-name)"
default: "sdtechdev/clarity-upscaler-4-deployment"
required: true


jobs:
push_to_replicate:
name: Push to Replicate
runs-on: ubuntu-latest
steps:
- name: Push to Replicate
run: |
echo "Pushing model to Replicate"
- name: Free disk space
uses: jlumbroso/[email protected]
with:
tool-cache: false
docker-images: false

- name: Checkout
uses: actions/checkout@v4

- name: Setup Cog
uses: replicate/setup-cog@v2
with:
token: ${{ secrets.REPLICATE_API_TOKEN }}

- name: Download model weights
run: python download_weights.py --

- name: Push to Replicate
run: cog push r8.im/${{ inputs.model_name || vars.DEFAULT_MODEL_NAME }}
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
__pycache__
.mypy_cache
.pytest_cache
.ruff_cache
.ruff_cache
*.safetensors
*.ckpt
*.pth
1 change: 0 additions & 1 deletion cog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,4 @@ build:
- git config --global --add safe.directory /src/extensions/multidiffusion-upscaler-for-automatic1111
- git clone https://github.com/philz1337x/stable-diffusion-webui-cog-init /stable-diffusion-webui
- python /stable-diffusion-webui/init_env.py --skip-torch-cuda-test
- sed -i 's/from pkg_resources import packaging/import packaging/g' /root/.pyenv/versions/3.10.4/lib/python3.10/site-packages/clip/clip.py
predict: "predict.py:Predictor"
Loading

0 comments on commit 5e8d391

Please sign in to comment.