Runs MindSpeed-LLM project test cases including unit tests, pipeline tests, and code coverage scans inside a Docker container.
Ships in external-gitcode-ascend-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
执行MindSpeed-LLM项目的单元测试用例。
运行mindspeed-llm测试用例时请严格按照以下运行环境的要求进行
q4_masterWORK_DIR用户输入执行脚本(如run_coverage.sh脚本)或者指定测试用例目录
1.进入docker容器
docker exec -it q4_master /bin/bash
2.执行默认环境配置
source /root/.bashrc
3.进入项目工作目录
cd ${WORK_DIR}
4.运行任务 执行测试命令或脚本
# 执行全量代码覆盖率扫描任务
bash tests/run_coverage.sh all
# 执行pipeline所有用例
bash tests/pipeline/pipe_run.sh
# 执行ut测试用例
pytest -s tests/ut/inference/test_inference.py
5.分析运行结果
输出测试报告或覆盖率报告,以markdown文件的形式至TEST目录下
docker exec -it q4_master bash -c "source /root/.bashrc && cd ${WORK_DIR} && bash tests/run_coverage.sh all"
docker exec -it q4_master bash -c "source /root/.bashrc && cd ${WORK_DIR} && bash tests/pipeline/pipe_run.sh"
# 运行一个ut测试用例文件中的所有用例
docker exec -it q4_master bash -c "source /root/.bashrc && cd ${WORK_DIR} && pytest -s tests/pipeline/ut/model_module/test_attention.py"
# 运行一个ut测试用例中的特定测试用例
docker exec -it q4_master bash -c "source /root/.bashrc && cd ${WORK_DIR} && pytest -s tests/pipeline/ut/model_module/test_attention.py::TestAttention::test_alibi_seq8192_bs2_bf16"
docker exec -it q4_master bash -c "source /root/.bashrc && cd ${WORK_DIR} && bash tests/pipeline/st/llama2/llama2_tp8_pp1_coc_ptd.sh"
What SKILL.md sets; muted values are Claude Code's defaults
/external-gitcode-ascend-skills:external-gitcode-ascend-run-mindspeed-llm-testfrom external-gitcode-ascend-skills
npx claudepluginhub ascend-ai-coding/awesome-ascend-skills --plugin external-gitcode-ascend-skills91 skills in this plugin
/external-gitcode-ascend-analyse-coverage分析测试覆盖率盲区,生成覆盖率分析报告/external-gitcode-ascend-arxiv-recommendation-npu自动化推荐系统论文发现流水线。抓取 arxiv 推荐论文,检测源码,生成待迁移任务清单,由 npu-model-migration skill 完成 NPU 适配。/external-gitcode-ascend-ascendc-operator-code-gen根据设计文档生成 AscendC 算子完整代码实现并完成框架适配。TRIGGER when: 设计文档已完成,需要生成 op_host/op_kernel 代码、注册到 PyTorch 框架、编译测试。关键词:代码生成、op_host、op_kernel、tiling、kernel、框架适配、算子注册。/external-gitcode-ascend-ascendc-operator-code-reviewAscend C 代码检视技能。基于假设检验方法论对代码进行安全规范检视。调用时必须明确提供:代码片段和检视规则描述。TRIGGER when: 用户要求代码检视、代码review、询问代码安全问题、检查编码规范、或需要检查特定代码问题(如内存泄漏、整数溢出、空指针等)。关键词:Ascend C、代码检视、代码review、安全规范、内存、指针、溢出、泄漏、编码规范。/external-gitcode-ascend-ascendc-operator-compile-debug编译安装 AscendC 算子并执行精度测试。TRIGGER when: 算子代码生成完成后需要编译验证、安装 whl 包、运行精度测试,或编译/测试失败需要排查。关键词:build.sh、编译、安装、whl、pytest、精度测试、编译错误、NPU 测试。/external-gitcode-ascend-ascendc-operator-design完成AscendC算子设计 - 帮助用户完成算子的架构设计、接口定义和性能规划。当用户提到算子设计、算子开发、tiling策略、内存规划、AscendC kernel设计、两级tiling、核间切分、核内切分时,使用此skill。Other plugins' skills for the same job