runpod-workers / worker-a1111

Automatic1111 serverless worker.
MIT License
75 stars 109 forks source link

How to add LoRa in Dockerfile ? #18

Open cmwang92 opened 1 year ago

cmwang92 commented 1 year ago

Hello , Great work! just one question, how to add LoRa in Dockerfile ?

visveshkhanna commented 11 months ago

Did you find a way to do it? @cmwang92 ?

jinto commented 7 months ago

I think I got LORA to work.

on download layer

 RUN apk add --no-cache wget && \
-    wget -q -O /model.safetensors https://civitai.com/api/download/models/15236
+    wget -q -O /model.safetensors https://civitai.com/api/download/models/15236 && \
+    wget -q -O /YOUR_LORA.safetensors https://your_site.com/YOUR_LORA.safetensors

on build_final_image layer

 COPY --from=download /model.safetensors /model.safetensors
+COPY --from=download /YOUR_LORA.safetensors /stable-diffusion-webui/models/Lora/
Karthiks915 commented 6 months ago

Does this way of adding lora work?