TorchAir 支持用户基于PyTorch框架和torch_npu插件在昇腾NPU上使用图模式进行推理。
| Files | Last commit | Last update |
|---|---|---|
docs: 修复claude启动时远端skill下载失败问题 Co-authored-by: stevenaw0<huangguijun@huawei.com> # message auto-generated for no-merge-commit merge: !3109 merge plugin into master docs: 修复claude启动时远端skill下载失败问题 Created-by: stevenaw0 Commit-by: stevenaw0 Merged-by: ascend-robot Description: ## 变更内容 1. **新增 AGENTS.md**:中文项目指引文档,包含项目概述、构建命令、测试方法、架构说明、核心 API 等 2. **新增 .claude/CLAUDE.md**:指向 AGENTS.md 的引导文件 3. **下载远端skill的脚本增加可执行权限**:修复claude启动时自动下载失败问题: 4. **.claude/settings.json增加舱内曾删改查权限** ## Checklist - [x] 代码已通过本地测试 - [x] 提交信息符合规范 - [x] 无敏感信息泄露 See merge request: Ascend/torchair!3109 | 5 months ago | |
rename .gitee to .gitcode Co-authored-by: stevenaw0<huangguijun@huawei.com> # message auto-generated for no-merge-commit merge: !3111 merge master into master rename .gitee to .gitcode Created-by: stevenaw0 Commit-by: stevenaw0 Merged-by: ascend-robot Description: rename .gitee to .gitcode See merge request: Ascend/torchair!3111 | 5 months ago | |
docs: 修复claude启动时远端skill下载失败问题 Co-authored-by: stevenaw0<huangguijun@huawei.com> # message auto-generated for no-merge-commit merge: !3109 merge plugin into master docs: 修复claude启动时远端skill下载失败问题 Created-by: stevenaw0 Commit-by: stevenaw0 Merged-by: ascend-robot Description: ## 变更内容 1. **新增 AGENTS.md**:中文项目指引文档,包含项目概述、构建命令、测试方法、架构说明、核心 API 等 2. **新增 .claude/CLAUDE.md**:指向 AGENTS.md 的引导文件 3. **下载远端skill的脚本增加可执行权限**:修复claude启动时自动下载失败问题: 4. **.claude/settings.json增加舱内曾删改查权限** ## Checklist - [x] 代码已通过本地测试 - [x] 提交信息符合规范 - [x] 无敏感信息泄露 See merge request: Ascend/torchair!3109 | 5 months ago | |
add npu_format_cast_via_cpu + add quantmatmul lite converter # message auto-generated for no-merge-commit merge: !3092 merge master into master add npu_format_cast_via_cpu + add quantmatmul lite converter Created-by: zihan0007 Commit-by: zihan0007 Merged-by: ascend-robot Description: 合入来源: torchair 新增npu_format_cast_via_cpu接口: 新增npu_format_cast_via_cpu接口 支持npuTensor在cpu将数据排布从Nd转为Nz,当前支持int8/uint8 Nd输入转为Fractal_nz输出 ge_pass增加QuantBatchMatmulV3前的Bitcast和Transpose算子互换位置的能力,方便后续Transpose融合 增加lite converter支持QuantBatchMatmulV3 A8W4(int4)场景的converter逻辑 See merge request: Ascend/torchair!3092 | 5 months ago | |
pre-commit by rule=trailing-whitespace Co-authored-by: guanlongfeng<guanlongfeng1@huawei.com> # message auto-generated for no-merge-commit merge: !2931 merge clean_code into master pre-commit by rule=trailing-whitespace Created-by: glf2016 Commit-by: guanlongfeng Merged-by: ascend-robot Description: pre-commit-clean-code-rule=trailing-whitespace See merge request: Ascend/torchair!2931 | 6 months ago | |
【文档捉虫-低级错误】quick_start.md文件修改 Signed-off-by: sunny1231234 <sunnydog1231234@163.com> | 5 months ago | |
pre-commit by rule=trailing-whitespace Co-authored-by: guanlongfeng<guanlongfeng1@huawei.com> # message auto-generated for no-merge-commit merge: !2931 merge clean_code into master pre-commit by rule=trailing-whitespace Created-by: glf2016 Commit-by: guanlongfeng Merged-by: ascend-robot Description: pre-commit-clean-code-rule=trailing-whitespace See merge request: Ascend/torchair!2931 | 6 months ago | |
[Fix] fork subprocess not allow init npu Co-authored-by: XDaoHong<xudaohong@huawei.com> # message auto-generated for no-merge-commit merge: !3129 merge tmp into master [Fix] fork subprocess not allow init npu Created-by: XDaoHong Commit-by: XDaoHong Merged-by: ascend-robot Description: [Fix] fork subprocess not allow init npu See merge request: Ascend/torchair!3129 | 5 months ago | |
fix docs bug Co-authored-by: hulida<hulida@huawei.com> Co-authored-by: fu-hao-huawei<fuhao16@huawei.com> Co-authored-by: chenweiheng<chenweiheng1@hisilicon.com> Co-authored-by: SunYaping<sunyaping4@huawei.com> Co-authored-by: Achilles_d<duanchengyuan@huawei.com> Co-authored-by: zhukkk<zhuke11@huawei.com> Co-authored-by: tangjie66<tangjie66@huawei.com> # message auto-generated for no-merge-commit merge: !2811 merge ass into master fix docs bug Created-by: Sunyp01 Commit-by: Sunyp01;Achilles_d;fu-hao-huawei;chenweiheng;hulida;tangjie66;zhukkk;SunYaping Merged-by: ascend-robot Description: fix doc bug See merge request: Ascend/torchair!2811 | 7 months ago | |
fix npugraph_ex 2.12 Co-authored-by: unknown<yanjiayun1@huawei.com> # message auto-generated for no-merge-commit merge: !3127 merge master into master fix npugraph_ex 2.12 Created-by: jordanyan Commit-by: unknown Merged-by: ascend-robot Description: fix npugraph_ex 2.12 同步npugraph_ex See merge request: Ascend/torchair!3127 | 5 months ago | |
add npu_format_cast_via_cpu + add quantmatmul lite converter # message auto-generated for no-merge-commit merge: !3092 merge master into master add npu_format_cast_via_cpu + add quantmatmul lite converter Created-by: zihan0007 Commit-by: zihan0007 Merged-by: ascend-robot Description: 合入来源: torchair 新增npu_format_cast_via_cpu接口: 新增npu_format_cast_via_cpu接口 支持npuTensor在cpu将数据排布从Nd转为Nz,当前支持int8/uint8 Nd输入转为Fractal_nz输出 ge_pass增加QuantBatchMatmulV3前的Bitcast和Transpose算子互换位置的能力,方便后续Transpose融合 增加lite converter支持QuantBatchMatmulV3 A8W4(int4)场景的converter逻辑 See merge request: Ascend/torchair!3092 | 5 months ago | |
support hif8 for graph Co-authored-by: huangfei<huangfei32@huawei.com> # message auto-generated for no-merge-commit merge: !2145 merge master into master [Feature] [Feature] support hif8 for graph Created-by: dddxhh Commit-by: huangfei Merged-by: ascend-robot Description: <!-- 请根据您的Pull Request类型,保留以下相应的一个模板部分,并删除其他无关部分 --> <!-- 请根据您的Pull Request类型,在Pull request标题中标记[Feature]\[Bugfix]\[Refactor] --> <!-------------------- 新功能模板 BEGIN --------------------> ### **【新功能提交】** **功能描述** support hif8 for graph **相关Issue** <!-- 如有关联的Issue,请在此处填写,例如: [Fixes issue xxx](链接) --> **Checklist** - [x] 符合编程规范&&代码红线 - [x] 具备UT测试用例看护&&测试用例为有效用例(若无测试用例看护请说明原因) - [ ] 是否涉及对外接口变更 - [ ] 是否涉及官网文档修改 <!-------------------- 新功能模板 END --------------------> See merge request: Ascend/torchair!2145 | 11 months ago | |
[custom_ops]MatmulReduceScatter算子适配aicpu通信 Co-authored-by: 陈佳乐<chenjiale56@huawei.com> # message auto-generated for no-merge-commit merge: !3041 merge master into master [custom_ops]MatmulReduceScatter算子适配aicpu通信 Created-by: chenjiale56 Commit-by: 陈佳乐 Merged-by: ascend-robot Description: [custom_ops]MatmulReduceScatter算子支持aicpu通信 主要修改点:MatmulReduceScatterV2新增参数comm_mode用于选择通信引擎 See merge request: Ascend/torchair!3041 | 5 months ago | |
add npu_format_cast_via_cpu + add quantmatmul lite converter # message auto-generated for no-merge-commit merge: !3092 merge master into master add npu_format_cast_via_cpu + add quantmatmul lite converter Created-by: zihan0007 Commit-by: zihan0007 Merged-by: ascend-robot Description: 合入来源: torchair 新增npu_format_cast_via_cpu接口: 新增npu_format_cast_via_cpu接口 支持npuTensor在cpu将数据排布从Nd转为Nz,当前支持int8/uint8 Nd输入转为Fractal_nz输出 ge_pass增加QuantBatchMatmulV3前的Bitcast和Transpose算子互换位置的能力,方便后续Transpose融合 增加lite converter支持QuantBatchMatmulV3 A8W4(int4)场景的converter逻辑 See merge request: Ascend/torchair!3092 | 5 months ago | |
feat: AlltoAllMatmul AICPU适配 新增通信引擎参数comm_mode Co-authored-by: tangjn<tangjianing@huawei.com> # message auto-generated for no-merge-commit merge: !3118 merge master into master feat: AlltoAllMatmul AICPU适配 新增通信引擎参数comm_mode Created-by: tangjn Commit-by: tangjn Merged-by: ascend-robot Description: feat: 新增通信引擎参数 为了在AlltoAllMatmul和AlltoAllQuantMatmul算子中,支持用户指定HCCL通信引擎(AICPU或CCU),为算子PTA接口新增一个可选入参comm_mode。 [#2777](https://gitcode.com/cann/ops-transformer/issues/2777) See merge request: Ascend/torchair!3118 | 5 months ago | |
[feature]npugraph_ex support dead lock check Co-authored-by: chenweiheng<chenweiheng1@hisilicon.com> # message auto-generated for no-merge-commit merge: !2782 merge master into master [feature]npugraph_ex support dead lock check Created-by: chenweiheng Commit-by: chenweiheng Merged-by: ascend-robot Description: [feature]npugraph_ex support dead lock check See merge request: Ascend/torchair!2782 | 7 months ago | |
add npu_format_cast_via_cpu + add quantmatmul lite converter # message auto-generated for no-merge-commit merge: !3092 merge master into master add npu_format_cast_via_cpu + add quantmatmul lite converter Created-by: zihan0007 Commit-by: zihan0007 Merged-by: ascend-robot Description: 合入来源: torchair 新增npu_format_cast_via_cpu接口: 新增npu_format_cast_via_cpu接口 支持npuTensor在cpu将数据排布从Nd转为Nz,当前支持int8/uint8 Nd输入转为Fractal_nz输出 ge_pass增加QuantBatchMatmulV3前的Bitcast和Transpose算子互换位置的能力,方便后续Transpose融合 增加lite converter支持QuantBatchMatmulV3 A8W4(int4)场景的converter逻辑 See merge request: Ascend/torchair!3092 | 5 months ago | |
pre-commit by rule=trailing-whitespace Co-authored-by: guanlongfeng<guanlongfeng1@huawei.com> # message auto-generated for no-merge-commit merge: !2931 merge clean_code into master pre-commit by rule=trailing-whitespace Created-by: glf2016 Commit-by: guanlongfeng Merged-by: ascend-robot Description: pre-commit-clean-code-rule=trailing-whitespace See merge request: Ascend/torchair!2931 | 6 months ago | |
feat: add opencode startup plugin Co-authored-by: stevenaw0<huangguijun@huawei.com> # message auto-generated for no-merge-commit merge: !3103 merge plugin into master feat: add opencode startup plugin Created-by: stevenaw0 Commit-by: stevenaw0 Merged-by: ascend-robot Description: ## 变更描述 添加 opencode 启动插件,支持自动安装默认 skills。 ## 变更文件 - .gitignore - 新增忽略项 - .opencode/plugins/install-default-skills.ts - 新增插件实现 ## Checklist - [x] 代码已自测 - [x] 代码符合项目规范 See merge request: Ascend/torchair!3103 | 5 months ago | |
update .gitmodules info Co-authored-by: SunYaping<sunyaping4@huawei.com> # message auto-generated for no-merge-commit merge: !2861 merge 0407 into master update .gitmodules info Created-by: Sunyp01 Commit-by: Sunyp01;SunYaping Merged-by: ascend-robot Description: update .gitmodules info See merge request: Ascend/torchair!2861 | 5 months ago | |
add npu_format_cast_via_cpu + add quantmatmul lite converter # message auto-generated for no-merge-commit merge: !3092 merge master into master add npu_format_cast_via_cpu + add quantmatmul lite converter Created-by: zihan0007 Commit-by: zihan0007 Merged-by: ascend-robot Description: 合入来源: torchair 新增npu_format_cast_via_cpu接口: 新增npu_format_cast_via_cpu接口 支持npuTensor在cpu将数据排布从Nd转为Nz,当前支持int8/uint8 Nd输入转为Fractal_nz输出 ge_pass增加QuantBatchMatmulV3前的Bitcast和Transpose算子互换位置的能力,方便后续Transpose融合 增加lite converter支持QuantBatchMatmulV3 A8W4(int4)场景的converter逻辑 See merge request: Ascend/torchair!3092 | 5 months ago | |
docs: 补充项目概述中 npugraph_ex ACL 图执行路径的描述 Co-authored-by: stevenaw0<huangguijun@huawei.com> # message auto-generated for no-merge-commit merge: !3123 merge add_npugraph_ex into master docs: 补充项目概述中 npugraph_ex ACL 图执行路径的描述 Created-by: stevenaw0 Commit-by: stevenaw0 Merged-by: ascend-robot Description: ## 变更说明 更新 AGENTS.md 项目概述,补充 npugraph_ex 提供的 ACL Graph 捕获执行路径描述,使文档完整反映 TorchAir 的两条图编译后端(GE 全图编译 + ACL 捕获执行)。 ## 变更内容 - 修改 AGENTS.md 第 5 行项目概述,增加 ACL Graph 捕获执行路径说明 See merge request: Ascend/torchair!3123 | 5 months ago | |
add npu_format_cast_via_cpu + add quantmatmul lite converter # message auto-generated for no-merge-commit merge: !3092 merge master into master add npu_format_cast_via_cpu + add quantmatmul lite converter Created-by: zihan0007 Commit-by: zihan0007 Merged-by: ascend-robot Description: 合入来源: torchair 新增npu_format_cast_via_cpu接口: 新增npu_format_cast_via_cpu接口 支持npuTensor在cpu将数据排布从Nd转为Nz,当前支持int8/uint8 Nd输入转为Fractal_nz输出 ge_pass增加QuantBatchMatmulV3前的Bitcast和Transpose算子互换位置的能力,方便后续Transpose融合 增加lite converter支持QuantBatchMatmulV3 A8W4(int4)场景的converter逻辑 See merge request: Ascend/torchair!3092 | 5 months ago | |
| 6 months ago | ||
pre-commit by rule=trailing-whitespace Co-authored-by: guanlongfeng<guanlongfeng1@huawei.com> # message auto-generated for no-merge-commit merge: !2931 merge clean_code into master pre-commit by rule=trailing-whitespace Created-by: glf2016 Commit-by: guanlongfeng Merged-by: ascend-robot Description: pre-commit-clean-code-rule=trailing-whitespace See merge request: Ascend/torchair!2931 | 6 months ago | |
pre-commit by rule=trailing-whitespace Co-authored-by: guanlongfeng<guanlongfeng1@huawei.com> # message auto-generated for no-merge-commit merge: !2931 merge clean_code into master pre-commit by rule=trailing-whitespace Created-by: glf2016 Commit-by: guanlongfeng Merged-by: ascend-robot Description: pre-commit-clean-code-rule=trailing-whitespace See merge request: Ascend/torchair!2931 | 6 months ago | |
fix docs bug Co-authored-by: hulida<hulida@huawei.com> Co-authored-by: fu-hao-huawei<fuhao16@huawei.com> Co-authored-by: chenweiheng<chenweiheng1@hisilicon.com> Co-authored-by: SunYaping<sunyaping4@huawei.com> Co-authored-by: Achilles_d<duanchengyuan@huawei.com> Co-authored-by: zhukkk<zhuke11@huawei.com> Co-authored-by: tangjie66<tangjie66@huawei.com> # message auto-generated for no-merge-commit merge: !2811 merge ass into master fix docs bug Created-by: Sunyp01 Commit-by: Sunyp01;Achilles_d;fu-hao-huawei;chenweiheng;hulida;tangjie66;zhukkk;SunYaping Merged-by: ascend-robot Description: fix doc bug See merge request: Ascend/torchair!2811 | 7 months ago | |
支持的产品型号添加A5,子功能冗余说明删除 Co-authored-by: wangkai<wangkai579@huawei.com> # message auto-generated for no-merge-commit merge: !3099 merge doc_fix into master 支持的产品型号添加A5,子功能冗余说明删除 Created-by: mihudan Commit-by: wangkai Merged-by: ascend-robot Description: 支持的产品型号添加A5,子功能冗余说明删除 See merge request: Ascend/torchair!3099 | 5 months ago | |
torch air framework supported now | 3 years ago | |
fix docs bug Co-authored-by: hulida<hulida@huawei.com> Co-authored-by: fu-hao-huawei<fuhao16@huawei.com> Co-authored-by: chenweiheng<chenweiheng1@hisilicon.com> Co-authored-by: SunYaping<sunyaping4@huawei.com> Co-authored-by: Achilles_d<duanchengyuan@huawei.com> Co-authored-by: zhukkk<zhuke11@huawei.com> Co-authored-by: tangjie66<tangjie66@huawei.com> # message auto-generated for no-merge-commit merge: !2811 merge ass into master fix docs bug Created-by: Sunyp01 Commit-by: Sunyp01;Achilles_d;fu-hao-huawei;chenweiheng;hulida;tangjie66;zhukkk;SunYaping Merged-by: ascend-robot Description: fix doc bug See merge request: Ascend/torchair!2811 | 7 months ago | |
| 1 year ago | ||
support all existed asc ops Co-authored-by: medivh<xuepeng4@huawei.com> # message auto-generated for no-merge-commit merge: !2592 merge master into master support all existed asc ops Created-by: medivh-x Commit-by: medivh Merged-by: ascend-robot Description: 按 pyascir.h REGISTERED_OPS / ascir_builtin_ops.cpp 把当前 ascir 已暴露的 pointwise / reduce 算子在 asc_ops.py 补齐 wrapper,覆盖 65 个 op: - unary:三角函数、对数 / 指数族、isnan/isfinite/relu/gelu/leaky_relu、 bitwise_not / logical_not、nop - unary 类型转换:floor_to_int / ceil_to_int / round_to_int / trunc_to_int - binary:minimum / atan2 / copysign / hypot / fmod / mod / remainder / floordiv / truncdiv / axpy / bitwise_or/xor / xor / logical_and/or/xor / lshift / rshift(+ 别名) - ternary:fma / select / clip_by_value 补齐后 NPUOverrides 中 ir.tanh / ir.cos / ir.atan2 等不再走 __getattr__ 回退到 _unsupported_op,能真实落到 ascir。 lowering 白名单同步放开:aten.log1p / aten.relu / aten.sgn / aten.sign。 其中 sgn 在实数路径下 inductor 把它 decompose 成 ops.sign,所以两个都要放行。 _finetune_decompose 白名单从单 _to_copy 扩成额外保留 aten.silu / aten.sgn 两个 OpOverloadPacket 的全部 overload —— inductor 没给这两个 op 注册直接 lowering,必须靠 decomposition 拆成 NPUOverrides 支持的原子 op: - silu(x) = x / (1 + (-x).exp()) → neg/exp/add/div - sgn(x) → sign(x)(实数路径) 否则 cpu 模式(不带 'decompose' / 'lowering' flag)下整个 op 进 lowering 找不到实现,会 fallback 回 aten。 不含 Gather / Concat / IndexExpr —— 这几个 ascir 当前实现有问题,留给 _unsupported 回退或上层自定义 lowering。 See merge request: Ascend/torchair!2592 | 5 months ago | |
optimize torchair and pta ci time Co-authored-by: guanlongfeng<guanlongfeng1@huawei.com> # message auto-generated for no-merge-commit merge: !2987 merge ci_times into master optimize torchair and pta ci time Created-by: glf2016 Commit-by: guanlongfeng Merged-by: ascend-robot Description: optimize torchair and pta ci time See merge request: Ascend/torchair!2987 | 6 months ago | |
add release/ut/st ci build and coverage generate | 3 years ago | |
pre-commit by rule=trailing-whitespace Co-authored-by: guanlongfeng<guanlongfeng1@huawei.com> # message auto-generated for no-merge-commit merge: !2931 merge clean_code into master pre-commit by rule=trailing-whitespace Created-by: glf2016 Commit-by: guanlongfeng Merged-by: ascend-robot Description: pre-commit-clean-code-rule=trailing-whitespace See merge request: Ascend/torchair!2931 | 6 months ago | |
optimize torchair and pta ci time Co-authored-by: guanlongfeng<guanlongfeng1@huawei.com> # message auto-generated for no-merge-commit merge: !2987 merge ci_times into master optimize torchair and pta ci time Created-by: glf2016 Commit-by: guanlongfeng Merged-by: ascend-robot Description: optimize torchair and pta ci time See merge request: Ascend/torchair!2987 | 6 months ago | |
| 2 years ago | ||
fix docs bug Co-authored-by: hulida<hulida@huawei.com> Co-authored-by: fu-hao-huawei<fuhao16@huawei.com> Co-authored-by: chenweiheng<chenweiheng1@hisilicon.com> Co-authored-by: SunYaping<sunyaping4@huawei.com> Co-authored-by: Achilles_d<duanchengyuan@huawei.com> Co-authored-by: zhukkk<zhuke11@huawei.com> Co-authored-by: tangjie66<tangjie66@huawei.com> # message auto-generated for no-merge-commit merge: !2811 merge ass into master fix docs bug Created-by: Sunyp01 Commit-by: Sunyp01;Achilles_d;fu-hao-huawei;chenweiheng;hulida;tangjie66;zhukkk;SunYaping Merged-by: ascend-robot Description: fix doc bug See merge request: Ascend/torchair!2811 | 7 months ago |
torchair
Description
{When you're done, you can delete the content in this README and update the file with details for others getting started with your repository}
Software Architecture
Software architecture description
Installation
- xxxx
- xxxx
- xxxx
Instructions
- xxxx
- xxxx
- xxxx
Contribution
- Fork the repository
- Create Feat_xxx branch
- Commit your code
- Create Pull Request
GitCode Feature
- You can use Readme_XXX.md to support different languages, such as Readme_en.md, Readme_zh.md
- GitCode blog blog.gitcode.com
- Explore open source project https://gitcode.com/explore
- The most valuable open source project G-Star
- The manual of GitCode https://docs.gitcode.com/docs/help/home/