You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix: row_mode patching in _patch_rms_norm_module (#765)
## Summary
There is a bug in #731 that only happens when the model is not
initialize with `AutoLigerKernelForCausalLM`, because `self.row_mode` is
not initialized.
Fixes#764.
## Details
Add `row_mode=None` to the default parameter of `_patch_rms_norm_module`
fixes the issue.
`def _patch_rms_norm_module(module, offset=0.0, eps=1e-6,
casting_mode="llama", in_place=True, row_mode=None):`
## Testing Done
- [x] run `make test` to ensure correctness
- [x] run `make checkstyle` to ensure code style
- [x] run `make test-convergence` to ensure convergence
0 commit comments