Skip to content

34 comments

I trained a LoRA model for 1024 steps using a dataset consisting only of images. The training was done on my 12GB VRAM GPU and 32GB RAM, taking took around 4 hours to complete. During the process, the resource usage was approximately 9.2–10.8GB of VRAM and 15GB of RAM.

3 points

Did it worknfor you woth only 32GB of Ram? I might try Musubi today as well then because with virtual Ubuntu amd diffusor pipe 32GB sys ram is not enough and it spits out an error after caching the training data.

1 points

Could you help me with advise?

What are your 1024 step loras? Is that a character lora? I'm trying to train an aesthetic, multiple faces lora, and I need way more steps than that. And by the time the model starts to output faces similar to the dataset the lora becomes very corrupt in some way and is causing outputs to be very low quality. The dataset images are nice and crisp, 512 to 1024 in size, doesn't matter. The lora gets worse and worse with training, outputs lose detail, become blurry, get artifacts, completely unusable.

I've trained plenty SD loras, always with good results. Here something just doesn't work. I've tried different resolutions, different lr.

After 1024 steps my lora would have almost no effect, lr 2e-4. Could you maybe post your training settings?

1 points

I was gonna try it later today when I get off work but I got all the models and stuff for it downloaded.

2 points

Are you ooming on training? What GPU and what size is your dataset?

2 points

Yeah, multiple people on civitai using wsl2 have trained loras with 16gb cards, but me on ubuntu can't make it past loading the models up, even with only a single image put down to under 200 resolution. The only difference I can find is my OS, and on native linux the nvidia drivers not supporting memory offloading.

Linux people with 24gb cards can do it, so I suspect it probably uses like 20gb vram and wsl2 people with 16gb are offloading that last 4gb.

2 points

I trained yesterday a LoRA on it. Installation and usage are easy and straightforward. 103 images (1500x806), default settings, peak VRAM usage was ~19 Gb. The result was worse than the same LoRA I made with diffusion-pipe, so I did not publish it.

2 points

I've also noticed results were not as good as Diffusion Pipe's. Not sure of its my settings or something else

2 points

I got it running on my rtx3090 pc yesterday and trained an image dataset. The training time was about 80 minutes with fp8 or 120 without. Both loras captured the style well but fp8 gave super blocky artifacts in the videos that made it unusable to me. I like the ease of use and speed but I think diffusion-pipeline makes better loras. More testing needed

2 points

So I finished messing with all the settings, and if you set the vae to lowest vram setting, the llm to fp8 with clip l instead of vit, and set the hunyuan model to fp8 base with all the blocks offloaded, it only used 8gb of vram to train a lora but it's just a little slow. 2000 steps with 10 videos and 10 images took 3 hours and 45 min on those settings.

So far I've only had time to test the loras a little bit but they seem to have come out good. I downscaled the training images from 1280x720 to 384x216 but apparently I could go higher but I'm not sure I need to since I've generated up to 1024x576 and it still looks great. I just need to play with making images that aren't still 16x9 aspect ratio like the training data to see how it does.

So musubi tuner gets a big thumbs up from me since diffusion-pipe wouldn't even run for me without OOM.

2 points

For an update, I'm using it now and it seems to be working. If i ran it at full block swap, it trained using only 10gb vram, but was slow. I reduced it to only 9 blocks and it's running on a little over 14gb vram. I'm just using the basic steps given on the github, which is 29 steps per epoch and 16 epochs just to test it but so far it's actually working. Whether the outputs will be worth it i'll have to see in an hour when it's done

1 points

Does anyone know the right calculation for steps x epoch's for a quality lora? for images only, then for images/videos? Are we still targetting 3000 steps? Musubi/Kohya doesn't do repeats? so it seems just input images X epochs.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.