推理性能导向 · 模型适配部 → 昇腾研发部门(vllm-ascend 组织,GLM 研发线)
依据:vllm-ascend main 代码(a71b766ce)、ascend_config.py 全量参数、GLM/DS 两案精度定位积累、近期 390 提交热点(PD 分离/层间 KV/双流/融合算子/投机解码/Engram)、SGLang 与 vLLM 上游公开演进。
独立支撑 GLM 系模型在 A3/A5 上的性能调优与达标,并具备性能/精度不达标的系统化定位能力。
KR1.1 参数体系地图 M1-M2
ascend_config.py(AscendConfig,L226 起)全量参数,按八组建立地图:enable_balance_scheduling(调度均衡,GLM-5.1 prefix 案相关)、recompute_scheduler_enable、short_request_first_config(长短请求队列,threshold=256 / 防饿死 long_max_wait_ms);dyntra_lb_config 内的 bubble_threshold / long_req_block_threshold(气泡控制);顶层 mega_moe_max_tokens(MoE 融合算子缓冲容量申报)与 enable_reduce_sample(采样去重)。源码教学:params-01 调度类ascend_scheduler_config(多流调度)、multistream_dsv4_dsa_overlap、multistream_overlap_shared_expert、enable_cpu_bindingascend_fusion_config(fuse_qknorm_rope / fuse_norm_quant / fuse_muls_add / fusion_ops_gmmswigluquant)、enable_mlapo + mlapo_keep_prefill_weights(MLAPO 预填充算子融合)、enable_fused_mc2 / enable_mc2_hierarchy_comm / enable_prefill_mc2(通信融合)enable_sparse_sfa_c8 / enable_sparse_li_c8(稀疏注意力 C8 打包,GLM-5.1 198k 核心开关)、c8_enable_reshape_optim、enable_kv_nz、enable_transpose_kv_cache_by_block、sparse_kv_offload_config / keep_device_kv_cache / reserve_margin_blocks / reserve_max_blocksfinegrained_tp_config(mlp/qkv/oproj/lmhead/embedding 细粒度分张量,注意与 reduce_sample 的互斥校验)、enable_shared_expert_dp、eplb_config(dynamic_eplb、expert_heat_collection 系列)、dyntra_lb_configascend_compilation_config(enable_npugraph_ex、xlite_graph_config、pa_shape_list、full_mode)、enable_static_kernelrejection_sampler_config、enable_block_verify、enable_entropy_verify、dynamic_spec_config、draft_window_size、posterior_alpha/thresholdenable_training_consistency、enable_batch_invariantKR1.2 对照实验矩阵 M2-M3
KR1.3 分析手段工具化 M1-M3 滚动
KR1.4 实战闭环 全程
建立行业推理性能演进的持续跟踪机制,识别可在昇腾落地的优化点,推动 ≥1 个立项 + ≥1 个 PoC 出数。
KR2.1 调研矩阵 M2-M4,双周一篇
KR2.2 候选池 滚动维护
KR2.3 推动落地 M4-M6
KR2.4 输出与影响
GLM 系模型在昇腾上的性能基线标准化,新版本适配的性能风险提前暴露。
KR3.1 标准化 benchmark 套件
KR3.2 对标分解
KR3.3 每周消费 nightly/weekly 流水线性能数据
形成“能定位→能改→能合入”的完整闭环,半年合入 ≥2 个性能类 PR。
KR4.1 首个小改动 M2 前
KR4.2 首个性能 PR M4 前
KR4.3 算子评价能力
KR4.4 沉淀