TorchAir 支持用户基于PyTorch框架和torch_npu插件在昇腾NPU上使用图模式进行推理。
| Files | Last commit | Last update |
|---|---|---|
skill torchnpu-installer Co-authored-by: fu-hao-huawei<fuhao16@huawei.com> # message auto-generated for no-merge-commit merge: !3087 merge skill_npu into master skill torchnpu-installer Created-by: fu-hao-huawei Commit-by: fu-hao-huawei Merged-by: ascend-robot Description: skill torchnpu-installer See merge request: Ascend/torchair!3087 | 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 | |
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 | |
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 | |
支持的产品型号添加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 | |
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 | |
[bug fix]修复erf算子导致的kernel精度异常 Co-authored-by: yurongkun<yurongkun@huawei.com> # message auto-generated for no-merge-commit merge: !3110 merge erf_fix into master [bug fix]修复erf算子导致的kernel精度异常 Created-by: yurongkun Commit-by: yurongkun Merged-by: ascend-robot Description: 修复erf算子导致的kernel精度异常 See merge request: Ascend/torchair!3110 | 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] torch2.12原生支持record_stream Co-authored-by: fu-hao-huawei<fuhao16@huawei.com> # message auto-generated for no-merge-commit merge: !3086 merge master into master [fix] torch2.12原生支持record_stream Created-by: fu-hao-huawei Commit-by: fu-hao-huawei Merged-by: ascend-robot Description: [fix] torch2.12原生支持record_stream See merge request: Ascend/torchair!3086 | 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 | |
support fusedquantmatmul swiglu torchair export Co-authored-by: zihan0007<mazihan1@huawei.com> # message auto-generated for no-merge-commit merge: !3101 merge master into master support fusedquantmatmul swiglu torchair export Created-by: zihan0007 Commit-by: zihan0007 Merged-by: ascend-robot Description: 增加fusedquantmatmul算子在swiglu场景的torchair离线图模式能力。 See merge request: Ascend/torchair!3101 | 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 fusedquantmatmul swiglu torchair export Co-authored-by: zihan0007<mazihan1@huawei.com> # message auto-generated for no-merge-commit merge: !3101 merge master into master support fusedquantmatmul swiglu torchair export Created-by: zihan0007 Commit-by: zihan0007 Merged-by: ascend-robot Description: 增加fusedquantmatmul算子在swiglu场景的torchair离线图模式能力。 See merge request: Ascend/torchair!3101 | 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 | |
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/