#808 新增mindtorch.torch.nn.functional.prompt_flash_attention的精度测试用例

Merged
zoulq merged 1 commits from tangdezhi_123/MSAdapter_self:br_tdz_1 into master 1 year ago
新增mindtorch.torch.nn.functional.prompt_flash_attention的精度测试用例,图模式和pynative模式,本地已验证通过。
frelam commented 1 year ago
Collaborator
==================================== ERRORS ==================================== _ ERROR collecting testing/ut/pytorch/nn/functional/test_prompt_flash_attention.py _ ImportError while importing test module '/drone/src/testing/ut/pytorch/nn/functional/test_prompt_flash_attention.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /usr/local/python-3.7.5/lib/python3.7/importlib/__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level) testing/ut/pytorch/nn/functional/test_prompt_flash_attention.py:12: in <module> from mindpsore import nn E ModuleNotFoundError: No module named 'mindpsore'
zoulq commented 1 year ago
Collaborator
FAILED testing/ut/pytorch/nn/functional/test_prompt_flash_attention.py::test_prompt_flash_attention_no_padding - RuntimeError: For primitive[PromptFlashAttention], the rank of atten_mask should be 3 or 4, but got 0
tangdezhi_123 commented 1 year ago
Poster
需要配套1129及之后的r2.3的ms包 && 新增精度用例已在910B上本地验证通过。
zoulq merged commit 81d9ebb30e into master 1 year ago
The pull request has been merged as 81d9ebb30e.
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No Assignees
3 Participants
Notifications
Due Date

No due date set.

Dependencies

This pull request currently doesn't have any dependencies.

Loading…
There is no content yet.