Draft
Conversation
0ec605b to
0c68070
Compare
This PR moves prefill logic to `PrefillQModelProcessor` to make the script be ready for prefill-decode pipeline. TICO-DCO-1.0-Signed-off-by: s.malakhov <s.malakhov@partner.samsung.com>
0c68070 to
69537f2
Compare
Contributor
|
@stamalakhov This PR opened before #612 has been resolved. Does it need to be moified according to the change? I'm just asking this because #570 is based on quant_XX_prefill/decode.py. |
mhs4670go
reviewed
Apr 12, 2026
| """ | ||
| return quantize_using_PTQ(q_m, calib_inputs, self.args) | ||
|
|
||
| def evaluate_quantized(self, model, dataset_test): |
Contributor
There was a problem hiding this comment.
This api spec doesn't match with QModelProcessor. Is it intentional?
Contributor
Author
There was a problem hiding this comment.
Ahhh. Sorry. I'll fix it.
Contributor
Author
@mhs4670go |
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 moves prefill logic to
PrefillQModelProcessorto make the script be ready for prefill-decode pipeline.log of `python tico/quantization/wrapq/examples/quantize_full_qmodel_with_gptq.py --model Maykeye/TinyLLama-v0 --gptq_mse mse --save_circle_to_folder . --save_layers_to_folder . --eval_tasks openbookqa ... `
log of `python tico/quantization/wrapq/examples/quantize_full_qmodel_with_gptq.py --model HuggingFaceTB/SmolLM2-135M-Instruct --gptq_mse mse --save_circle_to_folder . --save_layers_to_folder . --eval_tasks openbookqa --no_spinquant ... `
Draft: #570
Related: #586
TICO-DCO-1.0-Signed-off-by: s.malakhov s.malakhov@partner.samsung.com