Skip to content

Add LARS to str2optimizer32bit dictionary#1855

Open
Mr-Neutr0n wants to merge 1 commit intobitsandbytes-foundation:mainfrom
Mr-Neutr0n:fix/lars-optimizer-32bit
Open

Add LARS to str2optimizer32bit dictionary#1855
Mr-Neutr0n wants to merge 1 commit intobitsandbytes-foundation:mainfrom
Mr-Neutr0n:fix/lars-optimizer-32bit

Conversation

@Mr-Neutr0n
Copy link

Summary

  • Adds "lars" entry to str2optimizer32bit dictionary mapping to momentum kernels
  • LARS uses momentum-based kernels since it's essentially SGD with momentum plus layerwise adaptive learning rates
  • LARS8bit and LARS32bit classes set block_wise=False, so no changes needed to str2optimizer8bit_blockwise

Related Issue

Fixes #1810

Test plan

  • Verify LARS32bit optimizer no longer throws KeyError
  • Run existing LARS optimizer tests

LARS optimizer was missing from str2optimizer32bit, causing KeyError
when using LARS32bit optimizer. LARS uses momentum-based kernels since
it's essentially SGD with momentum plus layerwise adaptive learning rates.

Fixes bitsandbytes-foundation#1810
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

LARS missing in str2optimizer32bit

1 participant