none
none
¶
No-quantization workflow for float model export.
NoQuantizationWorkflow
¶
Bases: BaseQuantizationWorkflow
Export the float policy without applying quantization.
quantization_mode
property
¶
Return none because this workflow skips quantization.
quantization_workflow
property
¶
Return the serialized no-quantization workflow value.
prepare_model
¶
Leave the model unchanged before training.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
model
|
Module
|
Policy model passed by the training workspace. |
required |
load_policy_context
¶
Load the float policy checkpoint.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
checkpoint_path
|
str
|
Directory containing the training checkpoint. |
required |
checkpoint_name
|
str
|
Checkpoint filename to load from the directory. |
required |
Returns:
| Type | Description |
|---|---|
PolicyContext
|
Float policy context for unquantized export. |
Source code in src/versatil/quantization/workflows/none.py
quantize
¶
Export the policy without modifying weights or graph quantization.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
context
|
PolicyContext
|
Loaded float policy context. |
required |
exportable
|
ExportablePolicy
|
Policy wrapper exposing positional tensor inputs for
|
required |
calibration_steps
|
int
|
Unused for unquantized export. |
required |
Returns:
| Type | Description |
|---|---|
QuantizedContext
|
Quantized context whose float and deployment models are the same |
QuantizedContext
|
exported graph. |