llmcompressor.modifiers.smoothquant.utils
get_layer_mappings_from_architecture(architecture)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
architecture | str | str: The architecture of the model | required |
Returns:
Type | Description |
---|---|
List[LayerMap] | list: The layer mappings for the given architecture |
Source code in src/llmcompressor/modifiers/smoothquant/utils.py
handle_mapping_resolution_errors(func)
Decorator to catch any errors that occur when resolving mappings and provide a helpful error message to the user pointing them to the README