Skip to content

feat(inference): remove DeploymentQuantization.enabled field #922

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

Merged
merged 4 commits into from
Mar 20, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions scaleway-async/scaleway_async/inference/v1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,6 @@ def unmarshal_DeploymentQuantization(data: Any) -> DeploymentQuantization:

args: Dict[str, Any] = {}

field = data.get("enabled", None)
if field is not None:
args["enabled"] = field

field = data.get("bits", None)
if field is not None:
args["bits"] = field
Expand Down Expand Up @@ -497,9 +493,6 @@ def marshal_DeploymentQuantization(
) -> Dict[str, Any]:
output: Dict[str, Any] = {}

if request.enabled is not None:
output["enabled"] = request.enabled

if request.bits is not None:
output["bits"] = request.bits

Expand Down
5 changes: 0 additions & 5 deletions scaleway-async/scaleway_async/inference/v1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,6 @@ class ModelSupportedNode:

@dataclass
class DeploymentQuantization:
enabled: bool
"""
Whether to enable quantization for this deployment.
"""

bits: int
"""
The number of bits each model parameter should be quantized to. The quantization method is chosen based on this value.
Expand Down
7 changes: 0 additions & 7 deletions scaleway/scaleway/inference/v1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,6 @@ def unmarshal_DeploymentQuantization(data: Any) -> DeploymentQuantization:

args: Dict[str, Any] = {}

field = data.get("enabled", None)
if field is not None:
args["enabled"] = field

field = data.get("bits", None)
if field is not None:
args["bits"] = field
Expand Down Expand Up @@ -497,9 +493,6 @@ def marshal_DeploymentQuantization(
) -> Dict[str, Any]:
output: Dict[str, Any] = {}

if request.enabled is not None:
output["enabled"] = request.enabled

if request.bits is not None:
output["bits"] = request.bits

Expand Down
5 changes: 0 additions & 5 deletions scaleway/scaleway/inference/v1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,6 @@ class ModelSupportedNode:

@dataclass
class DeploymentQuantization:
enabled: bool
"""
Whether to enable quantization for this deployment.
"""

bits: int
"""
The number of bits each model parameter should be quantized to. The quantization method is chosen based on this value.
Expand Down