Skip to content
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

Fix quant_format argument for 4bit quantizer #21581

Merged
merged 1 commit into from
Jul 31, 2024

Conversation

fajin-corp
Copy link
Contributor

Description

Original argument accepts Enum QuantFormat.QOperator or QuantFormat.QDQ, but the default value is QOperator.

Change the argument to str to accept QOperator or QDQ and convert to QuantFormat after parsing.

Motivation and Context

Bug fix

@fajin-corp fajin-corp added the release:1.19.0 Cherry pick to ORT 1.19 label Jul 31, 2024
@fajin-corp fajin-corp merged commit 8540ac4 into main Jul 31, 2024
86 of 95 checks passed
@fajin-corp fajin-corp deleted the fajin/4bitquantizerargfix branch July 31, 2024 22:30
prathikr pushed a commit that referenced this pull request Aug 3, 2024
### Description
Original argument accepts Enum QuantFormat.QOperator or QuantFormat.QDQ,
but the default value is QOperator.

Change the argument to str to accept QOperator or QDQ and convert to
QuantFormat after parsing.

### Motivation and Context
Bug fix
prathikr pushed a commit that referenced this pull request Aug 5, 2024
### Description
Original argument accepts Enum QuantFormat.QOperator or QuantFormat.QDQ,
but the default value is QOperator.

Change the argument to str to accept QOperator or QDQ and convert to
QuantFormat after parsing.

### Motivation and Context
Bug fix
@prathikr prathikr added the cherry-picked Cherry-picked for a cherrypicks branch label Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherry-picked Cherry-picked for a cherrypicks branch release:1.19.0 Cherry pick to ORT 1.19
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants