Skip to content

Conversation

jon-tow
Copy link
Collaborator

@jon-tow jon-tow commented Mar 17, 2023

Logits are collapsed along vocab dimension for logprobs resulting in tensor shape [..., response_size]

logprobs = logprobs_of_labels(logits[:, :-1, :], all_tokens[:, 1:])

Related Issue: #371

Copy link
Collaborator

@maxreciprocate maxreciprocate left a comment

Choose a reason for hiding this comment

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

Thanks Jon!

@maxreciprocate maxreciprocate merged commit 79bfc6b into main Mar 17, 2023
@maxreciprocate maxreciprocate deleted the fix-shape-hint branch March 17, 2023 20:26
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.

2 participants