| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
Thank you for the PR. Happy to accept, but do not think the regression test is necessary. Please remove that part. |
Sorry, something went wrong.
|
done, removed the test and rebased on main |
Sorry, something went wrong.
|
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Fixes #2047
The native CPU dequantize_4bit mutated a 1-D shape to (1, n) before allocating the output, so even-length 1-D inputs dequantized to 2-D. The (1, n) view is only needed for the C++ kernel's 2-D indexing, and m = prod(shape[:-1]) is already 1 for 1-D inputs — this PR drops the mutation so the output keeps the caller-provided shape, matching the CUDA backend, the default/MPS backends, the registered fake kernel, and the CPU backend's own odd-length fallback path.
Disclosure: prepared with AI assistance (Claude Code); I reviewed the change and take responsibility for it.