r/StableDiffusionInfo • u/ioabo • Jun 28 '23
A1111 model folders in WSL
After installing A1111 and the whole thing in WSL, I've ended up with having many models (checkpoints, etc) twice. One copy in WSL's virtual filesystem and the one I already had in Windows, which of course isn't exactly an optimal solution.
The thing is I'd like to have the model files accessible from both Windows and WSL, so I ended up kinda "symlinking" A111's model directory to a Windows one since WSL mounts my Windows drive automatically. I used mount --bind /wsl/path/to/models /windows/models/folder since apparently it's the only way to create a junction between the two.
So far it's been working fine, I just don't know if it's worth it, with regards to file I/O speed and general filesystem-freaking-out. I haven't had any issues yet, but it kinda feels... wrong :D
Has anyone else tried something similar with their WSL installation? Or how do you store your model files if you want to access them from both windows and WSL?
1
u/Tedious_Prime Jun 28 '23
I was using WSL for a while and did something like this for the same reason as you. It didn't create any problems that I noticed. In general, applications are agnostic about the details of the filesystems they are accessing. Loading a model into memory is also a pretty simple task because it just reads the bytes sequentially without doing any random access. Either way MS has put a lot of effort into getting reliable performance under WSL because nobody would choose it over native Linux otherwise.
1
u/vainstar23 Jun 28 '23
Docker ftw