Closed
[Bug-Report|缺陷反馈]: deepseekv32_sparse_flash_attention_quant.py 报错:got an unexpected keyword argument 'combine_axis' #3
pyfAdd on  Dec 25, 2025Closed at  Dec 25, 2025
pyf
pyf
Dec 25, 2025 Create

Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.

Describe the current behavior / 问题描述 (Mandatory / 必填)

执行:
python deepseekv32_sparse_flash_attention_quant.py

ERROR:root:Record function sparse_flash_attention_quant_d failed: set_operation_config() got an unexpected keyword argument 'combine_axis'
Traceback (most recent call last):
File "./pypto/examples/models/deepseek_v32_exp/deepseekv32_sparse_flash_attention_quant.py", line 425, in
test_sfa_bf16_b4_s2_seq64K_total_int8_d()
File "./pto/pypto/examples/models/deepseek_v32_exp/deepseekv32_sparse_flash_attention_quant.py", line 401, in test_sfa_bf16_b4_s2_seq64K_total_int8_d
do_test_sfa_entry("sfa_bf16_b4_s2_seq64K_total_int8_d", is_p=False)
File "./pto/pypto/examples/models/deepseek_v32_exp/deepseekv32_sparse_flash_attention_quant.py", line 391, in do_test_sfa_entry
do_test_sparse_attention_func(
File "./pto/pypto/examples/models/deepseek_v32_exp/deepseekv32_sparse_flash_attention_quant.py", line 357, in do_test_sparse_attention_func
sparse_flash_attention_quant_d(*pto_inputs, *pto_outputs, n_q, n_kv, softmax_scale, topk,
File "./pto/ascendcpp/python/pypto/runtime.py", line 224, in call
self.compile(*args, **kwargs)
File "./pto/ascendcpp/python/pypto/runtime.py", line 128, in compile
self.dyn_func(*args, **kwargs)
File "./pto/pypto/examples/models/deepseek_v32_exp/sparse_flash_attention_quant_impl.py", line 467, in sparse_flash_attention_quant_d
pypto.experimental.set_operation_config(combine_axis=True)
TypeError: set_operation_config() got an unexpected keyword argument 'combine_axis'
[ERROR] 2025-12-25-21:58:10 (PID:2090905, Device:0, RankID:-1) ERR99999 UNKNOWN applicaiton exception

Environment / 环境信息 (Mandatory / 必填)

910B4
ARM64

Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)

无

Describe the expected behavior / 预期结果 (Mandatory / 必填)

无

无

Special notes for this issue/备注 (Optional / 选填)

likedislike
pyf
pyf
Dec 25, 2025 Comments:

我使用了旧版本的pypto,使用最新代码编译,该问题解决

likedislike
pyfpyf
Dec 25, 2025 changed custom state from 进行中 to 已完成
pyfpyf
Dec 25, 2025 Close issue
杨旭杨旭Collaborators
Jan 7 Assign DCGDDD as responsible person
杨旭杨旭Collaborators
Jan 7 Added label: documentation
杨旭杨旭Collaborators
Jan 8 associated Kanban: PyPTO
杨旭杨旭Collaborators
Jan 8 Removed label: documentation
杨旭杨旭Collaborators
Jan 8 Associated milestone: r0.1.1
杨旭杨旭Collaborators
Jan 8 changed custom category from 任务 to 咨询
LiuChangLiuChangCollaborators
Jan 20 Added label: Frontend
LiuChangLiuChangCollaborators
Jan 20 Added label: lgtm
杨旭杨旭Collaborators
Mar 9 Removed label: lgtm