| Files | Last commit | Last update |
|---|---|---|
fix(frontend): Support HF8 via uint8 and standardize dtype rules Co-authored-by: zhaojunhan<zhaojunhan1@huawei.com> # message auto-generated for no-merge-commit merge: !1917 merge fix_dtype_0321 into master fix(frontend): Support HF8 via uint8 and standardize dtype rules Created-by: zhaojunhan Commit-by: zhaojunhan Merged-by: cann-robot Description: fix: standardize tensor dtype conversion for PyTorch-Pypto interaction - Support HF8 via torch.uint8 in PyTorch tensor - Set kernel annotation as dtype priority during conversion - Enforce standard dtype for special tensor types See merge request: cann/pypto!1917 | 8 months ago | |
fix(Operation): Fix remainder while data type is int16 Co-authored-by: junnyleo<lijun580@huawei.com> # message auto-generated for no-merge-commit merge: !1855 merge fix/remainder into master fix(Operation): Fix remainder while data type is int16 Created-by: junnyleo Commit-by: junnyleo Merged-by: cann-robot Description: 修复remainder在输入为int16数据类型的情形下产生的问题。 Related Issue: [#846](https://gitcode.com/cann/pypto/issues/846) See merge request: cann/pypto!1855 | 8 months ago | |
fix(docs): Support pypto.element expression. Keep consistent with docs Co-authored-by: seu_chang<liuchang169@huawei.com> # message auto-generated for no-merge-commit merge: !1636 merge master into master fix(docs): Support pypto.element expression. Keep consistent with docs Created-by: seu_chang Commit-by: seu_chang Merged-by: cann-robot Description: Support pypto.element expression. Keep consistent with docs Related Issue: #659 See merge request: cann/pypto!1636 | 8 months ago | |
feat(frontend): Pypto frontend support parallel loop Co-authored-by: HuangYuqian<huangyuqian2@huawei.com> # message auto-generated for no-merge-commit merge: !1765 merge parallel_loop_new into master feat(frontend): Pypto frontend support parallel loop Created-by: huangyuqian Commit-by: HuangYuqian Merged-by: cann-robot Description: Related Issue: https://gitcode.com/cann/pypto/issues/486 See merge request: cann/pypto!1765 | 8 months ago | |
Initial commit | 10 months ago | |
fix(operation): Support @op_wrapper(func) retrun symbolic scalar Co-authored-by: seu_chang<liuchang169@huawei.com> # message auto-generated for no-merge-commit merge: !1714 merge front_2.0 into master fix(operation): Support @op_wrapper(func) retrun symbolic scalar Created-by: seu_chang Commit-by: seu_chang Merged-by: cann-robot Description: fix(operation): Support @op_wrapper(func) retrun symbolic scalar Related Issue: #511 See merge request: cann/pypto!1714 | 8 months ago | |
feat(interface): Add source location when check failed Co-authored-by: LiDongsheng<lidongsheng4@huawei.com> # message auto-generated for no-merge-commit merge: !1702 merge fix/loc into master feat(interface): Add source location when check failed Created-by: tsungl4 Commit-by: LiDongsheng Merged-by: cann-robot Description: feat(interface): Add source location when check failed 1. attach source location for check failure in operation_impl 2. fix function and loop lineno incorrect 3. Remove operation Load() not used any more Related Isse: #593 See merge request: cann/pypto!1702 | 8 months ago | |
refactor(config): Remove set_runtime_options and get_runtime_options public APIs Co-authored-by: chengding888<chengding1@hisilicon.com> # message auto-generated for no-merge-commit merge: !1745 merge 0318 into master refactor(config): Remove set_runtime_options and get_runtime_options public APIs Created-by: chengding888 Commit-by: chengding888 Merged-by: cann-robot Description: ## Motivation Remove set_runtime_options and get_runtime_options public APIs from pypto module. Runtime options should only be configured through @pypto.jit or @pypto.frontend.jit decorator's runtime_options parameter. ## Changes - Delete set_runtime_options and get_runtime_options functions from python/pypto/config.py - Replace pypto.set_runtime_options(**self._runtime_options) with pypto.set_options(runtime_options=options_dict) in python/pypto/runtime.py - Replace pypto.set_runtime_options(**self._runtime_options) with pypto.set_options(runtime_options=options_dict) in python/pypto/frontend/parser/entry.py - Delete unused _dispatch_with_run_mode function from python/pypto/frontend/parser/entry.py - Rename docs/api/config/pypto-set_runtime_options.md to docs/api/config/pypto-runtime_options.md and update content to only document runtime_options parameter in jit decorator - Delete docs/api/config/pypto-get_runtime_options.md - Delete pypto.set_runtime_options(stitch_function_max_num=128) call from models/deepseek_v32_exp/deepseekv32_lightning_indexer_prolog_quant.py (the kernel already has stitch_function_max_num=128 in jit config) - Remove test_runtime_option function and update test_reset_option in python/tests/ut/interface/test_config_options.py - Remove pypto.set_runtime_options call from python/tests/ut/ds_v32/test_lightning_indexer_topk.py - Update .agents/skills/pypto-operator-perf-analyzer/scripts/analyze_perf.py and .agents/skills/pypto-operator-perf-analyzer/SKILL.md to remove set_runtime_options examples See merge request: cann/pypto!1745 | 8 months ago | |
feat(Operation): Matmul support mxfp4 dtype Co-authored-by: s00603308<shidingkun1@huawei.com> # message auto-generated for no-merge-commit merge: !1424 merge mxfp4 into master feat(Operation): Matmul support mxfp4 dtype Created-by: shi-dingkun Commit-by: s00603308 Merged-by: cann-robot Description: Matmul新增支持fp4_e2m1_x2和fp4_e1m2_x2数据类型 Changes: 1、cube_opertiaon_imp新增针对B4场景的拦截 2、框架新增fp4_e2m1_x2和fp4_e1m2_x2数据类型 3、pass层新增fp4_e2m1_x2和fp4_e1m2_x2的类型及pad_local_buff层补充B4场景的pad 4、cube_pto新增fp4_e2m1_x2和fp4_e1m2_x2数据类型的tileop支持 See merge request: cann/pypto!1424 | 8 months ago | |
feat(simulation): Move model data to device Co-authored-by: zhiweiyuan<zhiweiyuan@huawei.com> # message auto-generated for no-merge-commit merge: !621 merge master into master feat(simulation): Move model data to device Created-by: zhiweiyuan Commit-by: zhiweiyuan Merged-by: cann-robot Description: PR 应该避免没有描述信息, 描述信息的最重要的作用是描述修改意图,应该清晰明了. 例如: 标题中包含了 fix 标签, 如果没有描述信息,就需要Review人员猜测PR具体修复了哪些内容,或者怀疑修改的必要性. 如果PR和特定的Issue相关,可以单独包含一行 Related Issue: 放到描述信息最后. 下面是一个典型的PR描述信息: 在数据分配在NPU并跑仿真精度的场景下,跑完模型后将model的tensor数据搬运回device侧地址,用于python前端做精度比较 更多描述信息见:[Commit Message 规范](https://gitcode.com/cann/pypto/blob/master/docs/contribute/pull-request.md#commit-message) See merge request: cann/pypto!621 | 10 months ago | |
fix(vector): Fix cast satmode Co-authored-by: wkkk0528<wangkai578@huawei.com> # message auto-generated for no-merge-commit merge: !1642 merge cast_satmode into master fix(vector): Fix cast satmode Created-by: wkkk0528 Commit-by: wkkk0528 Merged-by: cann-robot Description: 背景:量化场景使用cast时需要走饱和模式,当前cast默认走的非饱和模式,需要增加参数以控制 TCast增加SaturationMode参数,用以控制浮点数转整数时的溢出处理方式;增加相应的python接口;修改资料说明 See merge request: cann/pypto!1642 | 8 months ago | |
feat(interface): Add source location when check failed Co-authored-by: LiDongsheng<lidongsheng4@huawei.com> # message auto-generated for no-merge-commit merge: !1702 merge fix/loc into master feat(interface): Add source location when check failed Created-by: tsungl4 Commit-by: LiDongsheng Merged-by: cann-robot Description: feat(interface): Add source location when check failed 1. attach source location for check failure in operation_impl 2. fix function and loop lineno incorrect 3. Remove operation Load() not used any more Related Isse: #593 See merge request: cann/pypto!1702 | 8 months ago | |
feat(frontend): land AST-based frontend, docs, examples, and tests Co-authored-by: Siyuan Feng<syfeng@sii.edu.cn> # message auto-generated for no-merge-commit merge: !5 merge frontend into master feat(frontend): land AST-based frontend, docs, examples, and tests Created-by: syfeng Commit-by: Siyuan Feng Merged-by: cann-robot Description: Introduce the new pypto.frontend stack with an AST-based parser, improved diagnostics/source locations, nested @pypto.frontend.function inlining, and better closure/local capture behavior during JIT compilation. See merge request: cann/pypto!5 | 10 months ago | |
feat(python): Add pybind api for batch assemble Co-authored-by: LiDongsheng<lidongsheng4@huawei.com> # message auto-generated for no-merge-commit merge: !418 merge feat/assemble into master feat(python): Add pybind api for batch assemble Created-by: tsungl4 Commit-by: LiDongsheng Merged-by: cann-robot Description: Origin assemble to the same tensor does not grant the order, and even worse first read from the assemble tensor and then assemble to the tensor still not grant the order. All of these problems arise as assemble does not create a new tensor which violate the SSA form, A new SSA form assemble is introduced, with parallel as a hint to notify assemble could be done in parallel or not assemble(inputs: List[Tuple[Tensor, List[Union[int, SymbolicScalar]]]], out: Tensor, parallel: bool = False) See merge request: cann/pypto!418 | 10 months ago | |
fix(operator): Fix rmsnorm impl Co-authored-by: blue_jan<zhangjiarui6@huawei.com> # message auto-generated for no-merge-commit merge: !1068 merge master into master fix(operator): Fix rmsnorm impl Created-by: blue_jan Commit-by: blue_jan Merged-by: cann-robot Description: [Fix]: rmsnorm [Description]: RMS(x)=sqrt(mean(x^2)+ϵ) See merge request: cann/pypto!1068 | 8 months ago | |
Initial commit | 10 months ago | |
feat(config): A3&A5 use the same config Co-authored-by: yyyfff<yefan29@huawei.com> # message auto-generated for no-merge-commit merge: !1184 merge master into master feat(config): A3&A5 use the same config Created-by: yyyfff Commit-by: yyyfff Merged-by: cann-robot Description: feat(config): A3&A5 use the same config See merge request: cann/pypto!1184 | 8 months ago | |
fix(vector): Fix cast satmode Co-authored-by: wkkk0528<wangkai578@huawei.com> # message auto-generated for no-merge-commit merge: !1642 merge cast_satmode into master fix(vector): Fix cast satmode Created-by: wkkk0528 Commit-by: wkkk0528 Merged-by: cann-robot Description: 背景:量化场景使用cast时需要走饱和模式,当前cast默认走的非饱和模式,需要增加参数以控制 TCast增加SaturationMode参数,用以控制浮点数转整数时的溢出处理方式;增加相应的python接口;修改资料说明 See merge request: cann/pypto!1642 | 8 months ago | |
refactor(config): Remove set_runtime_options and get_runtime_options public APIs Co-authored-by: chengding888<chengding1@hisilicon.com> # message auto-generated for no-merge-commit merge: !1745 merge 0318 into master refactor(config): Remove set_runtime_options and get_runtime_options public APIs Created-by: chengding888 Commit-by: chengding888 Merged-by: cann-robot Description: ## Motivation Remove set_runtime_options and get_runtime_options public APIs from pypto module. Runtime options should only be configured through @pypto.jit or @pypto.frontend.jit decorator's runtime_options parameter. ## Changes - Delete set_runtime_options and get_runtime_options functions from python/pypto/config.py - Replace pypto.set_runtime_options(**self._runtime_options) with pypto.set_options(runtime_options=options_dict) in python/pypto/runtime.py - Replace pypto.set_runtime_options(**self._runtime_options) with pypto.set_options(runtime_options=options_dict) in python/pypto/frontend/parser/entry.py - Delete unused _dispatch_with_run_mode function from python/pypto/frontend/parser/entry.py - Rename docs/api/config/pypto-set_runtime_options.md to docs/api/config/pypto-runtime_options.md and update content to only document runtime_options parameter in jit decorator - Delete docs/api/config/pypto-get_runtime_options.md - Delete pypto.set_runtime_options(stitch_function_max_num=128) call from models/deepseek_v32_exp/deepseekv32_lightning_indexer_prolog_quant.py (the kernel already has stitch_function_max_num=128 in jit config) - Remove test_runtime_option function and update test_reset_option in python/tests/ut/interface/test_config_options.py - Remove pypto.set_runtime_options call from python/tests/ut/ds_v32/test_lightning_indexer_topk.py - Update .agents/skills/pypto-operator-perf-analyzer/scripts/analyze_perf.py and .agents/skills/pypto-operator-perf-analyzer/SKILL.md to remove set_runtime_options examples See merge request: cann/pypto!1745 | 8 months ago | |
fix(python): Only simply shape with sympy Co-authored-by: tsungl4<lidongsheng4@huawei.com> # message auto-generated for no-merge-commit merge: !902 merge fix/misc into master fix(python): Only simply shape with sympy Created-by: tsungl4 Commit-by: tsungl4 Merged-by: cann-robot Description: 1. Only simply shape with sympy Eq('x', 1) is not usually what we want, even worse for nested Eq 2. Flush the log before process exit If processed exit abort error message just print to the std::out not the run.log an run.log are not flushed also 3. DumpBuffer() in SymbolicScalar use string concatation, if expr are too long the performance will be too bad See merge request: cann/pypto!902 | 9 months ago | |
feat(front): Declaration for compatibility with square brackets Co-authored-by: yyyfff<yefan29@huawei.com> # message auto-generated for no-merge-commit merge: !1734 merge master into master feat(front): Declaration for compatibility with square brackets Created-by: yyyfff Commit-by: yyyfff Merged-by: cann-robot Description: Add compatibility with square brackets in kernel declaration:pypto.Tensor[[], pypto.DT_INT32] See merge request: cann/pypto!1734 | 8 months ago |
| Files | Last commit | Last update |
|---|---|---|
| 8 months ago | ||
| 8 months ago | ||
| 8 months ago | ||
| 8 months ago | ||
| 10 months ago | ||
| 8 months ago | ||
| 8 months ago | ||
| 8 months ago | ||
| 8 months ago | ||
| 10 months ago | ||
| 8 months ago | ||
| 8 months ago | ||
| 10 months ago | ||
| 10 months ago | ||
| 8 months ago | ||
| 10 months ago | ||
| 8 months ago | ||
| 8 months ago | ||
| 8 months ago | ||
| 9 months ago | ||
| 8 months ago |