Repository navigation
Conversation
Tests verify that BnB (NF4, FP4) and Quanto (INT4, FP8) quantization: 1. Preserves adapter activation (output differs with/without control token) 2. Keeps LoRA/aLoRA weights in full precision (bfloat16) 3. Actually quantizes base model linear layers Relates to #16
antonpibm
reviewed
May 12, 2026
antonpibm
reviewed
May 12, 2026
antonpibm
reviewed
May 12, 2026
antonpibm
reviewed
May 12, 2026
- Load ibm-granite/granite-switch-4.1-3b-preview directly from HF - Use chat template (adapter_name=...) for adapter activation - Test BnB NF4/FP4 and Quanto INT4/FP8 quantization methods - Verify adapter activation, LoRA precision, and base layer quantization - Add bitsandbytes and optimum-quanto to [test] extra Relates to #16
antonpibm
approved these changes
May 12, 2026
vedem1192
pushed a commit
to vedem1192/granite-switch
that referenced
this pull request
Nov 20, 2026
* Add quantization tests for HF backend Tests verify that BnB (NF4, FP4) and Quanto (INT4, FP8) quantization: 1. Preserves adapter activation (output differs with/without control token) 2. Keeps LoRA/aLoRA weights in full precision (bfloat16) 3. Actually quantizes base model linear layers Relates to generative-computing#16 * Add quantization tests for HF backend - Load ibm-granite/granite-switch-4.1-3b-preview directly from HF - Use chat template (adapter_name=...) for adapter activation - Test BnB NF4/FP4 and Quanto INT4/FP8 quantization methods - Verify adapter activation, LoRA precision, and base layer quantization - Add bitsandbytes and optimum-quanto to [test] extra Relates to generative-computing#16
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Tests verify that BnB (NF4, FP4) and Quanto (INT4, FP8) quantization:
Relates to #16