Repository navigation
Diagnosing slow Lightning training with TraceML #21741
abhinavsriva
started this conversation in
Show off your work
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi everyone,
I built TraceML to see where a Lightning training run spends its time. It measures how long training waits for batches and how long the forward, backward and optimizer phases take. At the end, it prints a report that helps you decide what to investigate.
If Lightning is already installed and your script uses standard
Trainer.fit(), run:TraceML attaches automatically. To write step timings to JSONL while training is still running, use
traceml run --exporter jsonl train.py.Lightning setup guide
All reactions