[quantization] Evaluate fk llama model#626
Open
stamalakhov wants to merge 3 commits intoSamsung:mainfrom
Open
Conversation
This PR adds script to evaluate fake-quantized Llama-based model. TICO-DCO-1.0-Signed-off-by: s.malakhov <s.malakhov@partner.samsung.com>
4941ea7 to
a376e41
Compare
mhs4670go
reviewed
Apr 13, 2026
| if torch.cuda.is_available(): | ||
| torch.cuda.empty_cache() | ||
|
|
||
| if args.eval_tasks is not None: |
Contributor
There was a problem hiding this comment.
(Optional) Loading the FP model every time may be unnecessarily expensive if the main goal is to re-evaluate a previously saved quantized model. Would it make sense to support a quantized-only evaluation mode? (e.g. --skip_fp_eval)
mhs4670go
reviewed
Apr 13, 2026
mhs4670go
reviewed
Apr 13, 2026
| ) | ||
|
|
||
| parser.add_argument( | ||
| "--eval_tasks", |
Contributor
There was a problem hiding this comment.
If eval_tasks is omitted, the script effectively loads both models and exits without evaluation. It may be better to either make this argument required or fail with a clearer message.
Co-authored-by: seongwoo chae <mhs4670go@naver.com>
TICO-DCO-1.0-Signed-off-by: s.malakhov <s.malakhov@partner.samsung.com>
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.
This PR adds script to evaluate fake-quantized Llama-based model.
sample run on the model produced by #625
TICO-DCO-1.0-Signed-off-by: s.malakhov s.malakhov@partner.samsung.com