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

[BUG] finetune minicpm error #578

Closed
2 tasks done
jackyjinjing opened this issue Sep 14, 2024 · 4 comments · May be fixed by #579
Closed
2 tasks done

[BUG] finetune minicpm error #578

jackyjinjing opened this issue Sep 14, 2024 · 4 comments · May be fixed by #579

Comments

@jackyjinjing
Copy link

jackyjinjing commented Sep 14, 2024

是否已有关于该错误的issue或讨论? | Is there an existing issue / discussion for this?

  • 我已经搜索过已有的issues和讨论 | I have searched the existing issues / discussions

该问题是否在FAQ中有解答? | Is there an existing answer for this in FAQ?

  • 我已经搜索过FAQ | I have searched FAQ

当前行为 | Current Behavior

img_v3_02en_d3458080-6779-4388-b180-c4e60e4f757g

I encountered an error while fine-tuning MinicPM.
I found that issue #553 is similar to this one, but it was closed without any fixes, resulting in me encountering this problem as well.

期望行为 | Expected Behavior

no error
No response

复现方法 | Steps To Reproduce

run fine-tuning sciprt: sh sh finetune_ds.sh
No response

运行环境 | Environment

- OS: 
- Python:3.10.14
- Transformers:4.36.0
- PyTorch:2.1.2
- CUDA (`python -c 'import torch; print(torch.version.cuda)'`):12.1

备注 | Anything else?

No response

@jackyjinjing jackyjinjing changed the title [BUG] <title> [BUG] finetune minicpm error Sep 14, 2024
@LDLINGLINGLING
Copy link
Collaborator

hello ,please show me your dataset json。

@jackyjinjing
Copy link
Author

jackyjinjing commented Sep 18, 2024

hello ,please show me your dataset json。

Here is the dataset json. I have fixed it locally. Can you help me review the PR #579 ? I see that there are new people encountering this issue.

[
    {
        "id": "0",
        "image": "example.jpg",
        "conversations": [
            {
                "role": "user",
                "content": "<image>\nHow many desserts are on the white plate?"
            },
            {
                "role": "assistant",
                "content": "There are three desserts on the white plate."
            },
            {
                "role": "user",
                "content": "What type of desserts are they?"
            },
            {
                "role": "assistant",
                "content": "The desserts are cakes with bananas and pecans on top. They share similarities with donuts, but the presence of bananas and pecans differentiates them."
            },
            {
                "role": "user",
                "content": "What is the setting of the image?"
            },
            {
                "role": "assistant",
                "content": "The image is set on a table top with a plate containing the three desserts."
            }
        ]
    }
]

@qyc-98
Copy link
Collaborator

qyc-98 commented Oct 9, 2024

We fix the code, please try again. Thanks

@qyc-98 qyc-98 closed this as completed Oct 9, 2024
@natsoe7
Copy link

natsoe7 commented Oct 9, 2024 via email

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 a pull request may close this issue.

4 participants