lagrangedao / go-computing-provider

A golang implementation of computing provider
MIT License
2 stars 36 forks source link

Add the specified model in the yaml file for download #47

Closed sonic-chain closed 1 year ago

Normalnoise commented 1 year ago

this is a example for running multi-models after deploying the image

version: "2.0"
services:
  stable-diffusion-ui:
    image: sonic868/stable-diffusion:v1.0
    models:
      - name: illustroV3.safetensors
        url: https://civitai.com/api/download/models/151490
        dir: "/easy-diffusion/models/stable-diffusion"
      - name: midchapter2.safetensors
        url: https://civitai.com/api/download/models/154252
        dir: "/easy-diffusion/models/stable-diffusion"
      - name: v1-5-pruned-emaonly.safetensors
        url: https://huggingface.co/runwayml/stable-diffusion-v1-5/resolve/main/v1-5-pruned-emaonly.safetensors
        dir: "/easy-diffusion/models/stable-diffusion"

    expose:
      - port: 9000
        as: 80
        to:
          - global: true
deployment:
  stable-diffusion-ui:
    lagrange:
      count: 1
Normalnoise commented 1 year ago

space link: https://lagrangedao.org/spaces/0x6091b2f5678952cAfbf02755D78973EBff302e11/Stable-Diffusion-base-2/files