LARS and LAMB issues related to str2optimizer32bit #1801
Unanswered
RasmusHoier
asked this question in
Q&A
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.
-
EDIT: This seems more appropriate for an issue, so I have opened an issue instead: #1810
I am using bitsandbytes (version 0.48.2) and I am trying to run use LARS in my torch code. Strangely I can get other bitsandbytes optimizers including LAMB running, but LARS wont run.
Error message:
Looking at
bitsandbytes/backends/cuda/ops.pyit seems to be becauseoptim_fns = str2optimizer32bit.get(optimizer_name, None)has valueNone, becausestr2optimizer32bitdoes not have a case for lars.Looking at str2optimizer32bit I see that it does indeed lack a case for "lars", but also the case for "lamb" seems to be identical to the case for ADAM. Here is a link to the relevant lines?
TLDR:
"lars"not handled bystr2optimizer32bitinbitsandbytes/backends/cuda/ops.py?"lamb"map to the same c functions as"adam"in inbitsandbytes/backends/cuda/ops.py?Possibly related issues:
Beta Was this translation helpful? Give feedback.
All reactions