Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add LoRa in Dockerfile ? #18

Open
cmwang92 opened this issue Oct 3, 2023 · 3 comments
Open

How to add LoRa in Dockerfile ? #18

cmwang92 opened this issue Oct 3, 2023 · 3 comments

Comments

@cmwang92
Copy link

cmwang92 commented Oct 3, 2023

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

@visveshkhanna
Copy link

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

@jinto
Copy link

jinto commented Mar 8, 2024

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
Copy link

Does this way of adding lora work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants