llmcompressor.modifiers.smoothquant.utils
函数
-
get_layer_mappings_from_architecture–:param architecture: str: 模型的架构
get_layer_mappings_from_architecture
参数
-
(architecturestr) –str: 模型的架构
返回
-
List[LayerMap]–list: 给定架构的层映射
源代码在 llmcompressor/modifiers/smoothquant/utils.py
handle_mapping_resolution_errors
装饰器,用于捕获解析映射时发生的任何错误,并向用户提供有用的错误消息,指向 README 文件。