Why do we select only the 1st char in the decoded string in get_next_state() ? #862
ekagra-ranjan
started this conversation in
Weird model output
Replies: 2 comments 2 replies
-
gentle reminder: @brandonwillard @rlouf |
Beta Was this translation helpful? Give feedback.
1 reply
-
This appears to be a serious bug. Perhaps it's the root cause of #796 It looks like the signature of Will investigate as part of #796 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! I faced an issue where in the FSM in CFG Guide is getting self.generation differently from what the model is outputting. Debugging it lead to this line
Shouldn;t it be just
self.generation += self.tokenizer.decode([token_id])
instead ofself.generation += self.tokenizer.decode([token_id])[0]
since the decode function in HF returns a str?@rlouf
Beta Was this translation helpful? Give feedback.
All reactions