Skip to content

fix(gpu): reject nonternary weights before two-bit packing - #666

Open
Rudy Mizrahi Celekli (rudycelekli) wants to merge 1 commit into
microsoft:mainfrom
rudycelekli:fix/gpu-packing-ternary-validation
Open

Rudy Mizrahi Celekli (rudycelekli) wants to merge 1 commit into
microsoft:mainfrom
rudycelekli:fix/gpu-packing-ternary-validation

Conversation

@rudycelekli

Copy link
Copy Markdown

Packing unsupported weight values silently produces incorrect ternary data. Validate ternary inputs before packing.

Validation:

  • python3 gpu/tests/test_pack_weight.py passed locally.
  • The regression fails against the unchanged upstream base and passes with this fix.

This change was prepared with AI assistance and independently reviewed locally. Focused tests use small fixtures or mocked dependencies; no full model inference or CUDA hardware validation is claimed.

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.

1 participant