Comments (7)
Am I understanding that you'd like to keep this issue open for some time and invite a community discussion, correct?
Usually in this kind of situation we would roll back to a checkpoint right before the spike (but some 10-100 steps back) and then either try a new data (if bad data was the trigger) or lower the lr. And observe the grad norm while you're at it, since most likely your grads are spikes.
Publicly available training LLM/VLM logbooks is a good source of learning of how such problems were dealt with by others.
from ml-engineering.
yeah! Or close it when we have systematic solutions/ debugging guidances to this problem. I feel like the issue section is a great place for ppl to talk about their experiences dealing with model training at scale.
Thanks for the guidance! Will share my experiences later :)
from ml-engineering.
Thanks!! @stas00
from ml-engineering.
My solutions are:
- increase the batch size
- reduce the lr
However, I think the problem is somewhere else. I am sampling training data based on sequence length, i.e., a batch of sequences with similar lengths are sampled together. Thus the reason why the loss spikes is it switches to train on longer sequence batches.
from ml-engineering.
Hi @stas00 A random question. What is your principle for tuning the learning rate? The larger the better? My intuition is using the largest lr to make the learning phrase converge faster.
from ml-engineering.
@pengzhangzhi, it is probably better if we use the github Discussion feature for what you intend and leave Issues for what they are.
I have just enabled it here https://github.com/stas00/ml-engineering/discussions - so you can start a discussion there moving your comments so far and then we can let other people know that they can join and share their insights?
What do you think?
I have never used that feature so hopefully it's easy to use - please let me know if you run into any issues
from ml-engineering.
but you're starting a discussion, yes? We can discuss your questions there, then and invite others to contribute. That'd be much more productive than just you and I talking.
from ml-engineering.
Related Issues (18)
- Parallel training hangs HOT 10
- Daisy chain batch jobs HOT 1
- Improve folder structure HOT 3
- Convert to bfloat16 failing HOT 2
- pip install -r build/requirements.txt fails due to github_md_utils HOT 3
- Clarification for gradient memory in mixed precision training HOT 3
- Quarto Site HOT 3
- Conflicting opinions about streaming data from cloud storage? HOT 2
- ML
- TPU v4 has 1,200GB/s of mem bandwidth and not 2,400, right? HOT 1
- Question about changing precision post training HOT 2
- Question about the right hidden dim when using SwiGLU HOT 3
- Missing `hparams` section HOT 2
- Adding another logbook (kinda) HOT 2
- convert markdown to pdf HOT 10
- Minor Typo in emulate multi node HOT 4
- GPU requirements and cost estimation. HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ml-engineering.