kohya-ss / kohya-ss/sd-scripts

how is multi gpu loss gathered?

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

Description

I've been looking into the sd3 train branch, im trying to understand how are the loss gathered for multi-gpu and would love to understand the logic behind it.
I'm used to working with accelerator.gather/reduce for loss/tensor updates. however im not seeing any of that being used in the sd3 training script which got me curious - how are the losses gathered across all processes

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the SD3 training script and trace how the loss is computed and updated across processes. Compare that flow with the mentioned accelerator.gather/reduce operations. Done means documenting whether losses are gathered across all processes and explaining the logic used instead.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
distributed-systems, machine-learning
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.