Set quantization_config for submodules with a given module name. For example, calling set_module_name("blocks.sub") quantizes supported patterns for that submodule with the provided quantization_config. Args: module_name (str): Fully qualified module name to con
(
self, module_name: str, quantization_config: Optional[QuantizationConfig]
)
| 613 | return self |
| 614 | |
| 615 | def set_module_name( |
| 616 | self, module_name: str, quantization_config: Optional[QuantizationConfig] |
| 617 | ) -> TOSAQuantizer: |
| 618 | """Set quantization_config for submodules with a given module name. |
| 619 | |
| 620 | For example, calling set_module_name("blocks.sub") quantizes supported |
| 621 | patterns for that submodule with the provided quantization_config. |
| 622 | |
| 623 | Args: |
| 624 | module_name (str): Fully qualified module name to configure. |
| 625 | quantization_config (Optional[QuantizationConfig]): Configuration |
| 626 | applied to the named submodule. ``None`` indicates no |
| 627 | quantization. |
| 628 | |
| 629 | """ |
| 630 | self.quantizer.set_module_name(module_name, quantization_config) |
| 631 | return self |
| 632 | |
| 633 | def set_io( |
| 634 | self, quantization_config: Optional[QuantizationConfig] |
no outgoing calls