Skip to content

Commit

Permalink
int: Fix quantization schema (#3479)
Browse files Browse the repository at this point in the history
  • Loading branch information
ksbrar authored Jul 25, 2023
1 parent 48f7d1f commit 279a9ba
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion ludwig/schema/llms/quantization.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,15 @@ def __init__(self):
super().__init__(QuantizationConfig, default_missing=True)

def _jsonschema_type_mapping(self):
return schema_utils.unload_jsonschema_from_marshmallow_class(QuantizationConfig)
return {
"oneOf": [
{"type": "null", "title": "disabled", "description": "Disable quantization."},
{
**schema_utils.unload_jsonschema_from_marshmallow_class(QuantizationConfig),
"title": "enabled",
"description": "Set quantization options.",
},
],
"title": "quantization",
"description": "",
}

0 comments on commit 279a9ba

Please sign in to comment.