| feat:Add adaptation support for GLM5.2 model Co-authored-by: LinShua<707894133@qq.com> # message auto-generated for no-merge-commit merge: !4610 merge master_glm5 into master feat:Add adaptation support for GLM5.2 model Created-by: LinShua Commit-by: LinShua Merged-by: ascend-robot Description: ## What this PR does / why we need it? Add adaptation support for GLM5.2 model: 1.Revise and extend the model configuration mapping, add the indexer_types field, and optimize parameter mapping for MoE shared experts. 2.Add dedicated weight conversion scripts for GLM5.2 to support bidirectional checkpoint conversion between HF and Mcore formats, with preconfigured parallelism, MoE and MLA parameters. 3.Implement the share indexer capability, which can be enabled via the arguments --index-topk-freq and --index-skip-topk-offset. 4.Integrate data preprocessing into training scripts and provide supporting environment variable scripts. No breaking changes to external APIs. Internal tests have been completed, with normal inference and precision aligned with vllm-ascend. 5.The MLA function requires enabling the parameters --apply-rope-no-in-complex and --no-use-sparse-c8-indexer. ## Does this PR introduce any user-facing change? NA. ## How was this patch tested? 见PR See merge request: Ascend/MindSpeed-LLM!4610 | 3 天前 |