Skip to content

Conversation

fynnsu
Copy link
Contributor

@fynnsu fynnsu commented Jul 23, 2025

Fixes #401 (option 3 as discussed w/ @brian-dellabetta)

Also introduces a new test for odd columned tensors.
Note: we check that the function raises either a ValueError (current behavior) or a torch._dynamo.exc.Unsupported (expected behavior after #400 merges).

This raises an explicit error for a case that previously threw an implicit error during the reshape op at the end of the function.

Signed-off-by: Fynn Schmitt-Ulms <[email protected]>
@dsikka
Copy link
Collaborator

dsikka commented Jul 23, 2025

should probably validate on vllm

@fynnsu
Copy link
Contributor Author

fynnsu commented Jul 24, 2025

I've compressed a llama3.1 8B model, using this change and successfully loaded it into vllm and generated a sentence.

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.

Bug: Incorrect handling of odd sized dims in nvfp4 packing/unpacking
3 participants