Add lora inside a docker image with A1111
Hello, I'm trying to add lora to the docker image created by the runpod team.
If somebody knows how it needs to be done, can he checks some lines of my dockerfile? I can't run docker on my PC, so I want to be pretty sure about the code before running it with a friend.
The dockerfile already provide the solution to install the checkpoint. I tried to mimic the code to get the same result, but I don't know if I put the file in the right place.
First download of models:
RUN apk update && \
wget -q -O /model.safetensors https://civitai.com/api/download/models/270057
RUN apk update && \
wget -q -O /Lora.safetensors https://civitai.com/api/download/models/118273
Then copy from download:
COPY --from=download /model.safetensors /model.safetensors
COPY --from=download /Lora.safetensors /Lora.safetensors
Finally run them:
RUN cd /stable-diffusion-webui && python cache.py --use-cpu=all --ckpt /model.safetensors
RUN cd /stable-diffusion-webui && python cache.py --use-cpu=all --ckpt /Lora.safetensors
Thanks in advance!
1 Reply
You can use this and add your own models and LoRA:
https://github.com/ashleykleynhans/runpod-worker-a1111
GitHub
GitHub - ashleykleynhans/runpod-worker-a1111: RunPod Serverless Wor...
RunPod Serverless Worker for the Automatic1111 Stable Diffusion API - GitHub - ashleykleynhans/runpod-worker-a1111: RunPod Serverless Worker for the Automatic1111 Stable Diffusion API