Skip to content

Fix/quant/packed contig#84

Merged
laggui merged 4 commits intomainfrom
fix/quant/packed-contig
Feb 11, 2026
Merged

Fix/quant/packed contig#84
laggui merged 4 commits intomainfrom
fix/quant/packed-contig

Conversation

@laggui
Copy link
Member

@laggui laggui commented Feb 10, 2026

tracel-ai/burn#4491

quantize_packed previously assumed contiguous inputs when using vectorized packing (line_size = num_quants), which would produce incorrect packed values for strided tensors.

Fix: forced inputs into contiguous over a num_elems threshold (could be adjusted perhaps?), otherwise use line size of 1.

Validate your PR with burn.

It is important that you make sure that you don't introduce any bugs in burn.

Instructions

  • Create a new branch or fork of the burn repo
  • Update the main Cargo.toml with this PR hash.
  • Fix any broken tests or compilation errors in burn.
  •  Submit a PR in burn with your fixes and link it here.

@laggui laggui merged commit 26b8aa3 into main Feb 11, 2026
5 checks passed
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.

2 participants