| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
Thanks for the fix. This is superseded by #1949 which handles weight orientation more comprehensively - matmul_4bit now normalizes packed weights to a canonical shape internally and explicitly detects the transposed (in_features, out_features) layout, emitting a DeprecationWarning and falling back correctly. Since we are deprecating support for that layout, silently guarding it would go the wrong direction. Closing in favor of #1949. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Fixes #1862
Problem: gemv fast path in matmul_4bit assumes quant_state.shape follows (out_features, in_features), and can silently produce wrong output shape/values for transposed layout metadata.
Fix: add a minimal shape guard in matmul_4bit vector fast path; on mismatch, fall back to MatMul4Bit.apply.
Scope: no kernel changes, no API changes, minimal 2-line guard.