Repository navigation
Drop the optim_bits entry from the RMSprop32bit docstring - #2157
Open
VenishPaneliya wants to merge 1 commit into
Open
VenishPaneliya wants to merge 1 commit into
VenishPaneliya wants to merge 1 commit into
Conversation
RMSprop32bit takes no optim_bits argument - it passes 32 to Optimizer1State directly - so the documented keyword raises TypeError. The entry is a leftover from the base RMSprop class, which does take it; the sibling RMSprop8bit has the same signature and correctly omits it.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
RMSprop32bit.__init__documents anoptim_bitsargument it does not take, so the keyword the docs tell you to pass raisesTypeError. The class fixes the bit width by passing32toOptimizer1Statepositionally, which is the point of the32bitvariant.The entry is a leftover from the base
RMSprop, which really does haveoptim_bits=32. The siblingRMSprop8bithas the identical signature, hardcodes8the same way, and correctly omits the entry — so this is a slip, not house style. It is the only one: I checked all 36__init__docstrings underbitsandbytes/optim/and no other documents a parameter its signature lacks.It is published API —
docs/source/reference/optim/rmsprop.mdxhas[[autodoc]] bitsandbytes.optim.RMSprop32bit.Docstring only, no executable statement changed.
ruff,ruff-format,trailing-whitespace,end-of-file-fixer,mixed-line-endingandtyposall clean on the file.