Skip to content

Fix typo in distributed_utils.py and remove unused variables#900

Open
Chessing234 wants to merge 1 commit intostate-spaces:mainfrom
Chessing234:fix/typo-pamams-and-unused-variable
Open

Fix typo in distributed_utils.py and remove unused variables#900
Chessing234 wants to merge 1 commit intostate-spaces:mainfrom
Chessing234:fix/typo-pamams-and-unused-variable

Conversation

@Chessing234
Copy link
Copy Markdown
Contributor

Summary

  • Fix typo in distributed_utils.py: pamams_shared -> params_shared in sync_shared_params(). The variable name was misspelled but functionally correct since it was only used locally; this fix improves readability.
  • Remove unused batch_shape variable: In both mamba_simple.py and mamba2.py, _get_states_from_cache assigned batch_shape = (batch_size,) but never used it. Removed the dead assignment.

Test plan

  • Verify sync_shared_params still works correctly for distributed training
  • Verify _get_states_from_cache behaves identically in both Mamba and Mamba2 modules

Fix typo `pamams_shared` -> `params_shared` in sync_shared_params.
The variable name was misspelled but functionally correct since it was
only used locally; this fix improves readability.

Also remove unused `batch_shape` variable in _get_states_from_cache
in both mamba_simple.py and mamba2.py. The variable was assigned but
never referenced.

Signed-off-by: Taksh <taxkothari@gmail.com>
Signed-off-by: Taksh <takshkothari09@gmail.com>
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.

1 participant