Skip to content

太初平台causal_softmax算子#171

Merged
crapromer merged 1 commit intotecofrom
causal_softmax_teco
Jul 9, 2025
Merged

太初平台causal_softmax算子#171
crapromer merged 1 commit intotecofrom
causal_softmax_teco

Conversation

@xgqdut2016
Copy link
Collaborator

@xgqdut2016 xgqdut2016 commented May 23, 2025

1747987043862 不知道为什么测试结束以后总是出现core dumped,此外发现如果把causal_softmax.py里面的数值精度对比改为assert torch.allclose(x.to("cpu"), ans.to("cpu"), atol=0, rtol=1e-2),提前把数据转移到cpu上,这种做法可以通过测试,避开上面的问题,原因不详

@crapromer crapromer merged commit c5b8f43 into teco Jul 9, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants