Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mindnlp.engine.Trainer训练报错 #1563

Open
xuhangscut opened this issue Aug 15, 2024 · 0 comments
Open

mindnlp.engine.Trainer训练报错 #1563

xuhangscut opened this issue Aug 15, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@xuhangscut
Copy link

xuhangscut commented Aug 15, 2024

Describe the bug/ 问题描述 (Mandatory / 必填)
mindnlp.engine.Trainer训练报错 传入数据shape如下图
image

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

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

  • Software Environment / 软件环境 (Mandatory / 必填):
    -- MindSpore version (e.g., 1.7.0.Bxxx) :2.3.0
    -- Python version (e.g., Python 3.7.5) :3.9.19
    -- 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

To Reproduce / 重现步骤 (Mandatory / 必填)
`from mindnlp.engine import Trainer

trainer = Trainer(
model=model,
train_dataset=train_dataset,
eval_dataset=eval_dataset,
args=training_arguments
)
trainer.train()`

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.
finetuning2_test.zip

@xuhangscut xuhangscut added the bug Something isn't working label Aug 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant