-
Notifications
You must be signed in to change notification settings - Fork 240
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[NNCF]: Add INT8 weight compression conformance test for Tinyllama-1.…
…1b PyTorch model (#2636) ### Changes - Added the `INT8` compression **test suite** to the `model_scope` - Added `TORCH` backend support in `LMWeightCompression` class - For `INT8` compression, _dataset,_ as well as some other parameters (see [model_scope](https://github.com/openvinotoolkit/nncf/blob/f0081037f28af2a829043d4ddaf4902d91864724/tests/post_training/model_scope.py#L329C1-L340C7)) are set to `None` - [metric_value](https://github.com/openvinotoolkit/nncf/blob/f0081037f28af2a829043d4ddaf4902d91864724/tests/post_training/data/wc_reference_data.yaml#L17C1-L20C15) has been set to **0.95944** - Mainly use `save_pretrained()` for `TORCH` models - Omitted a few method calls that are not supported for `TORCH` models (Check the commits for details) ### Reason for changes Requested to Benchmark changes via `whowhatbench` in issue #2527 ### Related tickets ref: 130788 Closes #2527 ### Tests - Added `INT8` _weight compression_ **conformance** test for `Tinyllama-1.1b` **PyTorch** model --------- Co-authored-by: Aleksander <[email protected]> Co-authored-by: Alexander Suslov <[email protected]>
- Loading branch information
1 parent
08d5f0c
commit ba7e1a4
Showing
3 changed files
with
86 additions
and
38 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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