From b716cb67280f8eab66918842894a276ac0745258 Mon Sep 17 00:00:00 2001 From: chqy99 <1216494776@qq.com> Date: Thu, 23 Jan 2025 10:09:38 +0800 Subject: [PATCH] [Feature](mluAdamW): update adam_w_lite --- .../bangc_kernels_path_extend.json | 13 +++++++++++++ tools/commitlint.py | 4 ++-- 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 scripts/bangc_kernels_path_config/bangc_kernels_path_extend.json diff --git a/scripts/bangc_kernels_path_config/bangc_kernels_path_extend.json b/scripts/bangc_kernels_path_config/bangc_kernels_path_extend.json new file mode 100644 index 000000000..c84555856 --- /dev/null +++ b/scripts/bangc_kernels_path_config/bangc_kernels_path_extend.json @@ -0,0 +1,13 @@ +{ + "common": [ + + ], + + "operators": [ + { + "name": "mluMoeUnpermute", + "header": "kernels/moe_unpermute/moe_unpermute.h", + "sources": ["kernels/moe_unpermute"] + } + ] +} diff --git a/tools/commitlint.py b/tools/commitlint.py index 9d9fd6233..6a6a50ef4 100755 --- a/tools/commitlint.py +++ b/tools/commitlint.py @@ -94,8 +94,8 @@ def valid_commit_msg(commit_msg, scopes): msg_scope = res.groupdict()['scope'].lstrip('(').rstrip(')') if msg_scope not in scopes: - print("\033[0;35m-- msg_scope not match, the msg_scope should be one of api name 'mluOp*' in mlu_op.h\n " - " or one of lite api name 'mlu(?!Op)*' in ./scripts/bangc_kernels_path_config/*.json or 'mlu-ops' \033[0m") + print("\033[0;35m-- msg_scope not match, the msg_scope should be one of api name 'mluOpXXX' in mlu_op.h\n " + " or one of lite api name 'mluXXX' in ./scripts/bangc_kernels_path_config/*.json\n or 'mlu-ops' \033[0m") print("\033[0;35m-- please input standard format for commit: {[type](scope): }\033[0m") return False return True