修复 Fused MoE Python 绑定构建时的共享库回退逻辑 #60
Loading…
Reference in New Issue
No description provided.
Delete Branch "Mengz/op_optimization:mengz/fused-moe-python-linker"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
现在 Fused MoE Python 绑定脚本对 Python 共享库的寻址过于依赖 sysconfig 返回的 LDLIBRARY 名称,一旦容器里只有 static library、版本后缀不同,或者 shared library 被安装为 libpython3.x.so.1.0 这类变体,构建会直接失败。
这个修复补上了对 LDLIBRARY、LIBRARY、libpython{version}.so 和 libpython{version}.so.1.0 等候选名称的回退枚举,如果 sysconfig 先给出的是 .a 文件,还会优先尝试对应的 .so 变体,最后再回填给 mxcc 需要的目录和文件名。
已在沐曦 GPU 环境完成实测,这条链路可以成功构建 pybind 模块,后续 Python 端依次跑通 fused_moe_i8_tn_topk1、topk2、topk3 的测试,输出数值与预期一致。
Step 1:
From your project repository, check out a new branch and test the changes.Step 2:
Merge the changes and update on Gitea.