-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DRAFT][luci] Introduce MinimumMSE quantization algorithm #12854
base: master
Are you sure you want to change the base?
Conversation
e836ee6
to
b2da3dc
Compare
b2da3dc
to
7684e7a
Compare
7684e7a
to
2dfc832
Compare
Please fix build errors. @SlavikMIPT Can you make the new logic as a new function? How a user can control the algorithm? |
5accef2
to
19f0e71
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
plz add positive and negative tests for new codes.
19f0e71
to
9b17a98
Compare
@jinevening PTAL |
@@ -37,6 +37,12 @@ struct LayerInfo | |||
QuantizationGranularity granularity; | |||
}; | |||
|
|||
enum struct QuantizationAlgorithm | |||
{ | |||
Common = 0, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Q) what is the meaning of Common
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Q) what is the meaning of
Common
?
General algorithm when scale = max / qmax
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know much about the math itself but it would be better to use a word that can express this.
const auto kSearchIterations = 100; | ||
const auto kPhi = 1.618033988749894848204586834365638118; | ||
const auto kRangeCoefficient = 0.1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How are these parameters determined? Do you have any reference?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How are these parameters determined? Do you have any reference?
kPhi is golden ratio constant, other are user controlled parameters of algorithm, default values are determined empirically(optimal value of scale is near the max / qmax base scale)
Could you answer this question? Can you make a full draft? This PR is just internal change. |
close as inactive for some time, feel free to reopen if needed |
05b2e7a
to
28f6b16
Compare
This commit introduces MinimumMSE quantization algorithm. ONE-DCO-1.0-Signed-off-by: Vyacheslav Bazhenov <[email protected]>
28f6b16
to
40713f7
Compare
This commit introduces MinimumMSE quantization algorithm.
For #13677
ONE-DCO-1.0-Signed-off-by: Vyacheslav Bazhenov [email protected]