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

fix minicpm V 2.6 repeat output #11753

Merged

Conversation

MeouSker77
Copy link
Contributor

Description

Add a temporary workaround to fix minicpm V 2.6 repeat output

@MeouSker77 MeouSker77 requested a review from rnwang04 August 9, 2024 09:35
Comment on lines +31 to +36
device = scores.device
scores = scores.to('cpu')
input_ids = input_ids.to('cpu')
score = score.to('cpu')
scores.scatter_(1, input_ids, score)
scores = scores.to(device)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's add a gpu implementation later

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@MeouSker77 MeouSker77 merged commit 93455aa into intel-analytics:main Aug 9, 2024
1 check passed
@MeouSker77 MeouSker77 deleted the workaround-minicpm-V-2_6 branch August 9, 2024 09:39
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.

3 participants