[Quantization] Add str to enum conversion for AWQ (#27320)
* add str to enum conversion * fixup * Apply suggestions from code review Co-authored-by: amyeroberts <22614925+amyeroberts@users.noreply.github.com> --------- Co-authored-by: amyeroberts <22614925+amyeroberts@users.noreply.github.com>
This commit is contained in:
@@ -47,6 +47,13 @@ class AwqConfigTest(unittest.TestCase):
|
||||
with self.assertRaises(ValueError):
|
||||
AwqConfig(bits=4, backend="")
|
||||
|
||||
# These should work fine
|
||||
_ = AwqConfig(bits=4, version="GEMM")
|
||||
_ = AwqConfig(bits=4, version="gemm")
|
||||
|
||||
with self.assertRaises(ValueError):
|
||||
AwqConfig(bits=4, backend="unexisting-backend")
|
||||
|
||||
# LLMAWQ does not work on a T4
|
||||
with self.assertRaises(ValueError):
|
||||
AwqConfig(bits=4, backend="llm-awq")
|
||||
|
||||
Reference in New Issue
Block a user