kohya-ss / kohya-ss/sd-scripts

flux finetune always fills shared memory

Open
#1,673 5 comments 1 reaction 0 assignees View on GitHub
Dominant language
Python
Stars
7.2k
Forks
1.2k
Avg merge
11m
Merged PRs (30d)
2

Description

I just noticed, that fine tuning FLUX with the command in the README (dataset image size 512,512, batch size 1) will result in 8GB of shared memory

![image](https://github.com/user-attachments/assets/f1b9e10b-99f8-4981-813b-01ab16fdf159)

Is this by design, or did I something wrong? Because a week ago I could fine tune without the need for any shared memory.

Also I noticed sampling images during fine-tune now takes double the time...

That's how it looks with commit 1286e00bb0fc34c296f24b7057777f1c37cf8e11

![image](https://github.com/user-attachments/assets/39ddf9b4-34bb-4649-b6ff-2d6cbd325400)

No shared memory, twice the speed during training and sampling images

Win10/4090

Thx

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the FLUX fine-tuning command in README and reproduce the reported behavior on Windows 10 with a 4090. Compare current shared-memory usage and sampling time with commit 1286e00bb0fc34c296f24b7057777f1c37cf8e11; done means identifying whether the change is an intentional design difference or a regression and documenting the relevant cause.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.