cannbot:基于 CANN 生态的算子开发与推理优化项目

CANNBot 是面向 CANN 开发的用于提升开发效率的系列智能体,本仓库为其提供plugin、harness等应用模块。

Branch5Tags0
FilesLast commitLast update
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
2 months ago
1 month ago
1 month ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
1 month ago
2 months ago
2 months ago
1 month ago

CANNBot

npm

🚀 概述

CANNBot 是 CANN 社区的 Infra 智能体层,用 Agent 完成 AscendC/PyPTO/TileLang/Triton 等各类语言的算子开发、模型迁移与推理优化,并延伸至图模式、Runtime 等更多 CANN 开发场景。

本仓(cannbot)是其应用仓与用户入口,提供工作流编排与场景插件;仓群还包括 cannbot-skills、cannbot-knowledge、cannbot-dsl、cann-bench、cannbot-sentry 等仓库,结构如下。

CANNBot 仓群结构

⚡ 快速开始

npm 安装

npx @cannbot-plugin/cannbot@latest install ${plugin} --tool opencode

源码安装

git clone --recurse-submodules --shallow-submodules https://gitcode.com/cann/cannbot.git
cd cannbot/plugins-official/${plugin}
bash init.sh

${plugin}:插件名称,见官方插件,例如 ops-direct-invoke。

📦 官方插件

插件 能力
ops-direct-invoke Ascend C 直调算子开发:以 <<<>>> 直接调用核函数的方式接入
ops-registry-invoke Ascend C 注册算子开发:经 ACLNN / GEIR 接入框架,以标准算子形式调用
model-infer-optimize NPU 模型迁移、精度对齐与推理性能优化
hccl-op-generator HCCL AICPU 标准通信算子开发,四 Agent 状态机工作流
triton-op-generator Triton-Ascend 算子代码生成与优化(Phase 0-7 直接执行模式),知识卡片由 cannbot-knowledge 知识库供给
ops-perf-optimize AscendC 算子端到端性能调优:五阶段工作流(基线评估、前处理、诊断分析、实施验证、后处理),工程剥离和恢复,含精度门禁、泛化调优与逐 case 防退化
pypto-op-orchestrator PyPTO 算子开发:7 阶段状态机(生成+调优/仅调优两个 harness 工作流),Skills/hooks 安装时从 cannbot-skills 仓拉取并即时软链

🧩 社区插件

社区插件属实验孵化性质,清单与完整介绍见 社区插件介绍。

📖 文档

💬 相关信息

Introduction

CANNBot 是面向 CANN 开发的用于提升开发效率的系列智能体,本仓库为其提供plugin、harness等应用模块。

Customize your domain