[Quantization][Bugfix]: Join multi-arg RuntimeError in Quark _check_scheme_supported (#25694)
This commit is contained in:
@@ -295,10 +295,12 @@ class QuarkConfig(QuantizationConfig):
|
||||
|
||||
supported = capability >= min_capability
|
||||
if error and not supported:
|
||||
# Pass a single joined message; RuntimeError stringifies
|
||||
# multiple positional args as a tuple repr.
|
||||
raise RuntimeError(
|
||||
"Quantization scheme is not supported for ",
|
||||
f"the current GPU. Min capability: {min_capability}. ",
|
||||
f"Current capability: {capability}.",
|
||||
"Quantization scheme is not supported for "
|
||||
f"the current GPU. Min capability: {min_capability}. "
|
||||
f"Current capability: {capability}."
|
||||
)
|
||||
return supported
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user