Skip to content

Huggingface模型用例测试bug反馈test_modeling_aimv2 #2274

Description

@wyq-Git

Describe the bug/ 问题描述 (Mandatory / 必填)
A clear and concise description of what the bug is.
FAILURE
tests/huggingface_transformers/tests/models/aimv2/test_modeling_aimv2.py::Aimv2VisionModelTest::test_bc_torch_dtype

  • Hardware Environment(Ascend/GPU/CPU) / 硬件环境:

Please delete the backend not involved / 请删除不涉及的后端:
/device ascend/

  • Software Environment / 软件环境 (Mandatory / 必填):
    -- MindSpore version 2.7.1 (e.g., 1.7.0.Bxxx) :
    -- Python version 3.10 (e.g., Python 3.7.5) :
    -- OS platform and distribution (e.g., Linux Ubuntu 16.04):
    -- GCC/Compiler version (if compiled from source):

  • Excute Mode / 执行模式 (Mandatory / 必填)(PyNative/Graph):

Please delete the mode not involved / 请删除不涉及的模式:
/mode pynative
/mode graph

To Reproduce / 重现步骤 (Mandatory / 必填)
1.下载mindnlp源码
git clone https://github.com/mindspore-lab/mindnlp/
2.下载transformers源码
cd mindnlp
cd tests
git clone https://gitee.com/mirrors/huggingface_transformer -b v4.57.1
cd ..
3.安装mindnlp依赖
pip install -r requirements/requirements.txt
4.测试
tests/huggingface_transformers/tests/models/aimv2/test_modeling_aimv2.py::Aimv2VisionModelTest::test_bc_torch_dtype

Expected behavior / 预期结果 (Mandatory / 必填)
A clear and concise description of what you expected to happen.
测试用例通过
Screenshots/ 日志 / 截图 (Mandatory / 必填)
If applicable, add screenshots to help explain your problem.

Image

Additional context / 备注 (Optional / 选填)
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions