Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 prepare + apply #7
Fix prepare + apply #7
Changes from 9 commits
6097a8d
71562fc
3b4e9da
1dcdae4
10d1e56
f9a260f
0d3310d
98cd50b
8260624
ff7977e
38d81b1
6a7d3b3
e4e53b9
a19a9de
c4e4186
0ec0788
200f7a0
95bfa2c
1cbc871
4a94849
f1b6b08
df68533
35e354a
a558bd0
5c3ad58
811a4e5
2dcc9ed
f2be0da
83b8250
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to the documentation,
cat
operates on arrays of the same type. Wdyt about ensuring thatself._prev_assistant_ids
andassistant_new_ids
are already oftorch.int
type?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do you mean adding before
cat
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wdyt about ensuring we only assign
torch.int
toself._prev_assistant_ids
andassistant_new_ids
in the first place—so that we never need to cast them intotorch.int
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we get all the IDs from the tokenizer and their type is
int
. Do you think that it is necessary to ensure they are ofint
type?