Choosing Gradient Norm Clip Value? [D] : r/MachineLearning
How do I choose the max value to use for global gradient norm clipping? The value must somehow depend on the number of parameters because more parameters means the parameter gradient vector has more numbers in it and higher dimensional vectors have bigger norms than lower dimensional ones. I can not find anything online giving advice on choosing the max norm value. Can anyone give me advice that improves over "just try loads of values". (Am training transformers) [sidequest] Legends are told about weird results when adam is combined with gradient clipping. We don't have compute and I have cannot leave my sick brother to go on an adventure. If only there was someone who could look into that old myth ... 😂 😂 😂 I wrote a paper a few months back about adapting the clipping value based on the history of gradient norms using percentiles. I use it all the time now for every model I train (with p=10): https://github.com/pseeth/autoclip. Give it a shot! For my use cases (training audio netwo
Reddit - Please wait for verification
Explore this link on the map →related reading
- python - How to do gradient clipping in pytorch? - Stack Overflowstackoverflow.com
- Yes you should understand backprop | by Andrej Karpathy | Mediumkarpathy.medium.com
- Modular Manifolds - Thinking Machines Labthinkingmachines.ai
- Deriving Muonjeremybernste.in
- Understanding Muonlakernewhouse.com
- The Practitioner’s Guide to the Maximal Update Parameterization - Cerebrascerebras.ai
- The Practitioner's Guide to the Maximal Update Parameterization | EleutherAI Blogblog.eleuther.ai
- frontier model training methodologies | Alex Wa's Blogdjdumpling.github.io
- The 37 Implementation Details of Proximal Policy Optimization · The ICLR Blog Trackiclr-blog-track.github.io
- microgptkarpathy.github.io
- Transformer Math 101 | EleutherAI Blogblog.eleuther.ai
- Online KL Shampoo | Tildeblog.tilderesearch.com