文件最后提交记录最后更新时间
【msmodelslim】[feature] support compressed_tensors format Co-authored-by: anreywmh<18845895998@163.com> # message auto-generated for no-merge-commit merge: !451 merge quantFormatRefactor/compressed_tensors into master 【msmodelslim】[feature] support compressed_tensors format Created-by: anreywmh Commit-by: anreywmh Merged-by: ascend-robot Description: 感谢您贡献的Pull Request! 在提交之前,请务必阅读 [CONTRIBUTING.md](https://gitcode.com/Ascend/msmodelslim/blob/master/CONTRIBUTING.md)。 Thanks for sending a pull request! BEFORE SUBMITTING, PLEASE READ [CONTRIBUTING.md](https://gitcode.com/Ascend/msmodelslim/blob/master/CONTRIBUTING.md). ## PR描述 (What this PR does / why we need it?) - 请明确说明您提交PR的变更内容。本部分旨在概述所做的变更,以及此PR是如何解决该问题的。请尽可能地提供有助于评审人员更高效、更快速完成检视审查的实用说明。 在 V1 框架中首次完整打通 compressed-tensors 落盘链路:逐层写 safetensors 权重 + 收尾写 config.json 量化元数据 + 配套 schema/反向推导模块 + 文档,使导出结果可直接用于 vLLM compressed-tensors 推理 1、实现 compressed-tensors 完整导出:将 CompressedTensorsQuantFormat 从空壳补全为可落盘实现,支持 W8A8 静态/动态量化层写 int8 权重及 scale 等参数,未量化层写 float 权重,输出与 vLLM compressed-tensors 对齐的 safetensors。 2、收尾写入 config.json:在 finalize_export 中复制源模型 HF 附属文件,并从 QIR 模型反向推导 quantization_config 写入 config.json,供推理框架识别量化方案。 3、新增 quantization 子模块:补充 QuantizationScheme、QuantizationConfig、quant_config_builder 等,定义 QIR 层与 compressed-tensors preset 的映射,以及 config_groups、ignore 等元数据的自动推断。 4、重构 QuantFormatBase 遍历逻辑:统一 WrapperIR 处理与 handler 分发(精确类型匹配),为多种落盘格式共用模块遍历能力。 5、适配 QuantSaveProcessor:ExportContext 路径改为 Path 类型,与格式层接口一致。 6、补充文档:新增 compressed_tensors.md 端到端说明,并在一键量化 usage 中增加该格式的配置入口。 - 请说明为何需要这些更改,例如具体的使用场景或bug描述。 - 关联issue号(如果有)。 - Please clarify what changes you are proposing. The purpose of this section is to outline the changes and how this PR fixes the issue. If possible, please consider writing useful notes for better and faster reviews in your PR. - Please clarify why the changes are needed. For instance, the use case and bug description. - Related issue number (if any) ## 面向用户的变更 (Does this PR introduce _any_ user-facing change)? - 请注意,这里指的是**任何**面向用户的变更,包括但不限于API、用户界面或其他使用方式上的变更。 - Note that it means *any* user-facing change including all aspects such as API, interface or other behavior changes. ## 功能验证 (How was this patch tested?) 请确认CI已通过增量及存量的单元测试用例。 如果本次测试方式与常规单元测试不同,请详细说明您的测试步骤(最好提供完整的可复现的操作路径及关键截图),以便Committer能够快速复现验证,也便于后续的维护。 如果未添加测试,请说明未添加的原因,以及为何难添加测试。 - [_] 功能自验 - [_] 本地自验截图(涉及个人标识符等敏感信息请注意脱敏) - [_] 新增/变更内容是否已新增/适配UT测试用例看护 CI passed with new added/existing test. If it was tested in a way different from regular unit tests, please clarify how you tested step by step, ideally copy and paste-able, so that other reviewers can test and check, and descendants can verify in the future. If tests were not added, please describe why they were not added and/or why it was difficult to add. - [_] Self-verification of the feature. - [_] Screenshot of local self-verification (please anonymize any sensitive information such as personal identifiers) - [_] Have new or modified unit test (UT) cases been added or adapted to cover the newly added or changed content? See merge request: Ascend/msmodelslim!4512 天前
【msmodelslim】[feature] support compressed_tensors format Co-authored-by: anreywmh<18845895998@163.com> # message auto-generated for no-merge-commit merge: !451 merge quantFormatRefactor/compressed_tensors into master 【msmodelslim】[feature] support compressed_tensors format Created-by: anreywmh Commit-by: anreywmh Merged-by: ascend-robot Description: 感谢您贡献的Pull Request! 在提交之前,请务必阅读 [CONTRIBUTING.md](https://gitcode.com/Ascend/msmodelslim/blob/master/CONTRIBUTING.md)。 Thanks for sending a pull request! BEFORE SUBMITTING, PLEASE READ [CONTRIBUTING.md](https://gitcode.com/Ascend/msmodelslim/blob/master/CONTRIBUTING.md). ## PR描述 (What this PR does / why we need it?) - 请明确说明您提交PR的变更内容。本部分旨在概述所做的变更,以及此PR是如何解决该问题的。请尽可能地提供有助于评审人员更高效、更快速完成检视审查的实用说明。 在 V1 框架中首次完整打通 compressed-tensors 落盘链路:逐层写 safetensors 权重 + 收尾写 config.json 量化元数据 + 配套 schema/反向推导模块 + 文档,使导出结果可直接用于 vLLM compressed-tensors 推理 1、实现 compressed-tensors 完整导出:将 CompressedTensorsQuantFormat 从空壳补全为可落盘实现,支持 W8A8 静态/动态量化层写 int8 权重及 scale 等参数,未量化层写 float 权重,输出与 vLLM compressed-tensors 对齐的 safetensors。 2、收尾写入 config.json:在 finalize_export 中复制源模型 HF 附属文件,并从 QIR 模型反向推导 quantization_config 写入 config.json,供推理框架识别量化方案。 3、新增 quantization 子模块:补充 QuantizationScheme、QuantizationConfig、quant_config_builder 等,定义 QIR 层与 compressed-tensors preset 的映射,以及 config_groups、ignore 等元数据的自动推断。 4、重构 QuantFormatBase 遍历逻辑:统一 WrapperIR 处理与 handler 分发(精确类型匹配),为多种落盘格式共用模块遍历能力。 5、适配 QuantSaveProcessor:ExportContext 路径改为 Path 类型,与格式层接口一致。 6、补充文档:新增 compressed_tensors.md 端到端说明,并在一键量化 usage 中增加该格式的配置入口。 - 请说明为何需要这些更改,例如具体的使用场景或bug描述。 - 关联issue号(如果有)。 - Please clarify what changes you are proposing. The purpose of this section is to outline the changes and how this PR fixes the issue. If possible, please consider writing useful notes for better and faster reviews in your PR. - Please clarify why the changes are needed. For instance, the use case and bug description. - Related issue number (if any) ## 面向用户的变更 (Does this PR introduce _any_ user-facing change)? - 请注意,这里指的是**任何**面向用户的变更,包括但不限于API、用户界面或其他使用方式上的变更。 - Note that it means *any* user-facing change including all aspects such as API, interface or other behavior changes. ## 功能验证 (How was this patch tested?) 请确认CI已通过增量及存量的单元测试用例。 如果本次测试方式与常规单元测试不同,请详细说明您的测试步骤(最好提供完整的可复现的操作路径及关键截图),以便Committer能够快速复现验证,也便于后续的维护。 如果未添加测试,请说明未添加的原因,以及为何难添加测试。 - [_] 功能自验 - [_] 本地自验截图(涉及个人标识符等敏感信息请注意脱敏) - [_] 新增/变更内容是否已新增/适配UT测试用例看护 CI passed with new added/existing test. If it was tested in a way different from regular unit tests, please clarify how you tested step by step, ideally copy and paste-able, so that other reviewers can test and check, and descendants can verify in the future. If tests were not added, please describe why they were not added and/or why it was difficult to add. - [_] Self-verification of the feature. - [_] Screenshot of local self-verification (please anonymize any sensitive information such as personal identifiers) - [_] Have new or modified unit test (UT) cases been added or adapted to cover the newly added or changed content? See merge request: Ascend/msmodelslim!4512 天前
【msmodelslim】[feature] support compressed_tensors format Co-authored-by: anreywmh<18845895998@163.com> # message auto-generated for no-merge-commit merge: !451 merge quantFormatRefactor/compressed_tensors into master 【msmodelslim】[feature] support compressed_tensors format Created-by: anreywmh Commit-by: anreywmh Merged-by: ascend-robot Description: 感谢您贡献的Pull Request! 在提交之前,请务必阅读 [CONTRIBUTING.md](https://gitcode.com/Ascend/msmodelslim/blob/master/CONTRIBUTING.md)。 Thanks for sending a pull request! BEFORE SUBMITTING, PLEASE READ [CONTRIBUTING.md](https://gitcode.com/Ascend/msmodelslim/blob/master/CONTRIBUTING.md). ## PR描述 (What this PR does / why we need it?) - 请明确说明您提交PR的变更内容。本部分旨在概述所做的变更,以及此PR是如何解决该问题的。请尽可能地提供有助于评审人员更高效、更快速完成检视审查的实用说明。 在 V1 框架中首次完整打通 compressed-tensors 落盘链路:逐层写 safetensors 权重 + 收尾写 config.json 量化元数据 + 配套 schema/反向推导模块 + 文档,使导出结果可直接用于 vLLM compressed-tensors 推理 1、实现 compressed-tensors 完整导出:将 CompressedTensorsQuantFormat 从空壳补全为可落盘实现,支持 W8A8 静态/动态量化层写 int8 权重及 scale 等参数,未量化层写 float 权重,输出与 vLLM compressed-tensors 对齐的 safetensors。 2、收尾写入 config.json:在 finalize_export 中复制源模型 HF 附属文件,并从 QIR 模型反向推导 quantization_config 写入 config.json,供推理框架识别量化方案。 3、新增 quantization 子模块:补充 QuantizationScheme、QuantizationConfig、quant_config_builder 等,定义 QIR 层与 compressed-tensors preset 的映射,以及 config_groups、ignore 等元数据的自动推断。 4、重构 QuantFormatBase 遍历逻辑:统一 WrapperIR 处理与 handler 分发(精确类型匹配),为多种落盘格式共用模块遍历能力。 5、适配 QuantSaveProcessor:ExportContext 路径改为 Path 类型,与格式层接口一致。 6、补充文档:新增 compressed_tensors.md 端到端说明,并在一键量化 usage 中增加该格式的配置入口。 - 请说明为何需要这些更改,例如具体的使用场景或bug描述。 - 关联issue号(如果有)。 - Please clarify what changes you are proposing. The purpose of this section is to outline the changes and how this PR fixes the issue. If possible, please consider writing useful notes for better and faster reviews in your PR. - Please clarify why the changes are needed. For instance, the use case and bug description. - Related issue number (if any) ## 面向用户的变更 (Does this PR introduce _any_ user-facing change)? - 请注意,这里指的是**任何**面向用户的变更,包括但不限于API、用户界面或其他使用方式上的变更。 - Note that it means *any* user-facing change including all aspects such as API, interface or other behavior changes. ## 功能验证 (How was this patch tested?) 请确认CI已通过增量及存量的单元测试用例。 如果本次测试方式与常规单元测试不同,请详细说明您的测试步骤(最好提供完整的可复现的操作路径及关键截图),以便Committer能够快速复现验证,也便于后续的维护。 如果未添加测试,请说明未添加的原因,以及为何难添加测试。 - [_] 功能自验 - [_] 本地自验截图(涉及个人标识符等敏感信息请注意脱敏) - [_] 新增/变更内容是否已新增/适配UT测试用例看护 CI passed with new added/existing test. If it was tested in a way different from regular unit tests, please clarify how you tested step by step, ideally copy and paste-able, so that other reviewers can test and check, and descendants can verify in the future. If tests were not added, please describe why they were not added and/or why it was difficult to add. - [_] Self-verification of the feature. - [_] Screenshot of local self-verification (please anonymize any sensitive information such as personal identifiers) - [_] Have new or modified unit test (UT) cases been added or adapted to cover the newly added or changed content? See merge request: Ascend/msmodelslim!4512 天前
【msmodelslim】[feature] support compressed_tensors format Co-authored-by: anreywmh<18845895998@163.com> # message auto-generated for no-merge-commit merge: !451 merge quantFormatRefactor/compressed_tensors into master 【msmodelslim】[feature] support compressed_tensors format Created-by: anreywmh Commit-by: anreywmh Merged-by: ascend-robot Description: 感谢您贡献的Pull Request! 在提交之前,请务必阅读 [CONTRIBUTING.md](https://gitcode.com/Ascend/msmodelslim/blob/master/CONTRIBUTING.md)。 Thanks for sending a pull request! BEFORE SUBMITTING, PLEASE READ [CONTRIBUTING.md](https://gitcode.com/Ascend/msmodelslim/blob/master/CONTRIBUTING.md). ## PR描述 (What this PR does / why we need it?) - 请明确说明您提交PR的变更内容。本部分旨在概述所做的变更,以及此PR是如何解决该问题的。请尽可能地提供有助于评审人员更高效、更快速完成检视审查的实用说明。 在 V1 框架中首次完整打通 compressed-tensors 落盘链路:逐层写 safetensors 权重 + 收尾写 config.json 量化元数据 + 配套 schema/反向推导模块 + 文档,使导出结果可直接用于 vLLM compressed-tensors 推理 1、实现 compressed-tensors 完整导出:将 CompressedTensorsQuantFormat 从空壳补全为可落盘实现,支持 W8A8 静态/动态量化层写 int8 权重及 scale 等参数,未量化层写 float 权重,输出与 vLLM compressed-tensors 对齐的 safetensors。 2、收尾写入 config.json:在 finalize_export 中复制源模型 HF 附属文件,并从 QIR 模型反向推导 quantization_config 写入 config.json,供推理框架识别量化方案。 3、新增 quantization 子模块:补充 QuantizationScheme、QuantizationConfig、quant_config_builder 等,定义 QIR 层与 compressed-tensors preset 的映射,以及 config_groups、ignore 等元数据的自动推断。 4、重构 QuantFormatBase 遍历逻辑:统一 WrapperIR 处理与 handler 分发(精确类型匹配),为多种落盘格式共用模块遍历能力。 5、适配 QuantSaveProcessor:ExportContext 路径改为 Path 类型,与格式层接口一致。 6、补充文档:新增 compressed_tensors.md 端到端说明,并在一键量化 usage 中增加该格式的配置入口。 - 请说明为何需要这些更改,例如具体的使用场景或bug描述。 - 关联issue号(如果有)。 - Please clarify what changes you are proposing. The purpose of this section is to outline the changes and how this PR fixes the issue. If possible, please consider writing useful notes for better and faster reviews in your PR. - Please clarify why the changes are needed. For instance, the use case and bug description. - Related issue number (if any) ## 面向用户的变更 (Does this PR introduce _any_ user-facing change)? - 请注意,这里指的是**任何**面向用户的变更,包括但不限于API、用户界面或其他使用方式上的变更。 - Note that it means *any* user-facing change including all aspects such as API, interface or other behavior changes. ## 功能验证 (How was this patch tested?) 请确认CI已通过增量及存量的单元测试用例。 如果本次测试方式与常规单元测试不同,请详细说明您的测试步骤(最好提供完整的可复现的操作路径及关键截图),以便Committer能够快速复现验证,也便于后续的维护。 如果未添加测试,请说明未添加的原因,以及为何难添加测试。 - [_] 功能自验 - [_] 本地自验截图(涉及个人标识符等敏感信息请注意脱敏) - [_] 新增/变更内容是否已新增/适配UT测试用例看护 CI passed with new added/existing test. If it was tested in a way different from regular unit tests, please clarify how you tested step by step, ideally copy and paste-able, so that other reviewers can test and check, and descendants can verify in the future. If tests were not added, please describe why they were not added and/or why it was difficult to add. - [_] Self-verification of the feature. - [_] Screenshot of local self-verification (please anonymize any sensitive information such as personal identifiers) - [_] Have new or modified unit test (UT) cases been added or adapted to cover the newly added or changed content? See merge request: Ascend/msmodelslim!4512 天前
【msmodelslim】[feature] support compressed_tensors format Co-authored-by: anreywmh<18845895998@163.com> # message auto-generated for no-merge-commit merge: !451 merge quantFormatRefactor/compressed_tensors into master 【msmodelslim】[feature] support compressed_tensors format Created-by: anreywmh Commit-by: anreywmh Merged-by: ascend-robot Description: 感谢您贡献的Pull Request! 在提交之前,请务必阅读 [CONTRIBUTING.md](https://gitcode.com/Ascend/msmodelslim/blob/master/CONTRIBUTING.md)。 Thanks for sending a pull request! BEFORE SUBMITTING, PLEASE READ [CONTRIBUTING.md](https://gitcode.com/Ascend/msmodelslim/blob/master/CONTRIBUTING.md). ## PR描述 (What this PR does / why we need it?) - 请明确说明您提交PR的变更内容。本部分旨在概述所做的变更,以及此PR是如何解决该问题的。请尽可能地提供有助于评审人员更高效、更快速完成检视审查的实用说明。 在 V1 框架中首次完整打通 compressed-tensors 落盘链路:逐层写 safetensors 权重 + 收尾写 config.json 量化元数据 + 配套 schema/反向推导模块 + 文档,使导出结果可直接用于 vLLM compressed-tensors 推理 1、实现 compressed-tensors 完整导出:将 CompressedTensorsQuantFormat 从空壳补全为可落盘实现,支持 W8A8 静态/动态量化层写 int8 权重及 scale 等参数,未量化层写 float 权重,输出与 vLLM compressed-tensors 对齐的 safetensors。 2、收尾写入 config.json:在 finalize_export 中复制源模型 HF 附属文件,并从 QIR 模型反向推导 quantization_config 写入 config.json,供推理框架识别量化方案。 3、新增 quantization 子模块:补充 QuantizationScheme、QuantizationConfig、quant_config_builder 等,定义 QIR 层与 compressed-tensors preset 的映射,以及 config_groups、ignore 等元数据的自动推断。 4、重构 QuantFormatBase 遍历逻辑:统一 WrapperIR 处理与 handler 分发(精确类型匹配),为多种落盘格式共用模块遍历能力。 5、适配 QuantSaveProcessor:ExportContext 路径改为 Path 类型,与格式层接口一致。 6、补充文档:新增 compressed_tensors.md 端到端说明,并在一键量化 usage 中增加该格式的配置入口。 - 请说明为何需要这些更改,例如具体的使用场景或bug描述。 - 关联issue号(如果有)。 - Please clarify what changes you are proposing. The purpose of this section is to outline the changes and how this PR fixes the issue. If possible, please consider writing useful notes for better and faster reviews in your PR. - Please clarify why the changes are needed. For instance, the use case and bug description. - Related issue number (if any) ## 面向用户的变更 (Does this PR introduce _any_ user-facing change)? - 请注意,这里指的是**任何**面向用户的变更,包括但不限于API、用户界面或其他使用方式上的变更。 - Note that it means *any* user-facing change including all aspects such as API, interface or other behavior changes. ## 功能验证 (How was this patch tested?) 请确认CI已通过增量及存量的单元测试用例。 如果本次测试方式与常规单元测试不同,请详细说明您的测试步骤(最好提供完整的可复现的操作路径及关键截图),以便Committer能够快速复现验证,也便于后续的维护。 如果未添加测试,请说明未添加的原因,以及为何难添加测试。 - [_] 功能自验 - [_] 本地自验截图(涉及个人标识符等敏感信息请注意脱敏) - [_] 新增/变更内容是否已新增/适配UT测试用例看护 CI passed with new added/existing test. If it was tested in a way different from regular unit tests, please clarify how you tested step by step, ideally copy and paste-able, so that other reviewers can test and check, and descendants can verify in the future. If tests were not added, please describe why they were not added and/or why it was difficult to add. - [_] Self-verification of the feature. - [_] Screenshot of local self-verification (please anonymize any sensitive information such as personal identifiers) - [_] Have new or modified unit test (UT) cases been added or adapted to cover the newly added or changed content? See merge request: Ascend/msmodelslim!4512 天前
【msmodelslim】[feature] support compressed_tensors format Co-authored-by: anreywmh<18845895998@163.com> # message auto-generated for no-merge-commit merge: !451 merge quantFormatRefactor/compressed_tensors into master 【msmodelslim】[feature] support compressed_tensors format Created-by: anreywmh Commit-by: anreywmh Merged-by: ascend-robot Description: 感谢您贡献的Pull Request! 在提交之前,请务必阅读 [CONTRIBUTING.md](https://gitcode.com/Ascend/msmodelslim/blob/master/CONTRIBUTING.md)。 Thanks for sending a pull request! BEFORE SUBMITTING, PLEASE READ [CONTRIBUTING.md](https://gitcode.com/Ascend/msmodelslim/blob/master/CONTRIBUTING.md). ## PR描述 (What this PR does / why we need it?) - 请明确说明您提交PR的变更内容。本部分旨在概述所做的变更,以及此PR是如何解决该问题的。请尽可能地提供有助于评审人员更高效、更快速完成检视审查的实用说明。 在 V1 框架中首次完整打通 compressed-tensors 落盘链路:逐层写 safetensors 权重 + 收尾写 config.json 量化元数据 + 配套 schema/反向推导模块 + 文档,使导出结果可直接用于 vLLM compressed-tensors 推理 1、实现 compressed-tensors 完整导出:将 CompressedTensorsQuantFormat 从空壳补全为可落盘实现,支持 W8A8 静态/动态量化层写 int8 权重及 scale 等参数,未量化层写 float 权重,输出与 vLLM compressed-tensors 对齐的 safetensors。 2、收尾写入 config.json:在 finalize_export 中复制源模型 HF 附属文件,并从 QIR 模型反向推导 quantization_config 写入 config.json,供推理框架识别量化方案。 3、新增 quantization 子模块:补充 QuantizationScheme、QuantizationConfig、quant_config_builder 等,定义 QIR 层与 compressed-tensors preset 的映射,以及 config_groups、ignore 等元数据的自动推断。 4、重构 QuantFormatBase 遍历逻辑:统一 WrapperIR 处理与 handler 分发(精确类型匹配),为多种落盘格式共用模块遍历能力。 5、适配 QuantSaveProcessor:ExportContext 路径改为 Path 类型,与格式层接口一致。 6、补充文档:新增 compressed_tensors.md 端到端说明,并在一键量化 usage 中增加该格式的配置入口。 - 请说明为何需要这些更改,例如具体的使用场景或bug描述。 - 关联issue号(如果有)。 - Please clarify what changes you are proposing. The purpose of this section is to outline the changes and how this PR fixes the issue. If possible, please consider writing useful notes for better and faster reviews in your PR. - Please clarify why the changes are needed. For instance, the use case and bug description. - Related issue number (if any) ## 面向用户的变更 (Does this PR introduce _any_ user-facing change)? - 请注意,这里指的是**任何**面向用户的变更,包括但不限于API、用户界面或其他使用方式上的变更。 - Note that it means *any* user-facing change including all aspects such as API, interface or other behavior changes. ## 功能验证 (How was this patch tested?) 请确认CI已通过增量及存量的单元测试用例。 如果本次测试方式与常规单元测试不同,请详细说明您的测试步骤(最好提供完整的可复现的操作路径及关键截图),以便Committer能够快速复现验证,也便于后续的维护。 如果未添加测试,请说明未添加的原因,以及为何难添加测试。 - [_] 功能自验 - [_] 本地自验截图(涉及个人标识符等敏感信息请注意脱敏) - [_] 新增/变更内容是否已新增/适配UT测试用例看护 CI passed with new added/existing test. If it was tested in a way different from regular unit tests, please clarify how you tested step by step, ideally copy and paste-able, so that other reviewers can test and check, and descendants can verify in the future. If tests were not added, please describe why they were not added and/or why it was difficult to add. - [_] Self-verification of the feature. - [_] Screenshot of local self-verification (please anonymize any sensitive information such as personal identifiers) - [_] Have new or modified unit test (UT) cases been added or adapted to cover the newly added or changed content? See merge request: Ascend/msmodelslim!4512 天前