You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
buffer.append(tokenizer.decode([period_id] +x.tolist())[1:]) # I think this results in the first output token being dropped from the display which is wrong.
610
611
ifx.item() ==tokenizer.eos_id():
611
612
done_generating=True
613
+
if (is_llama3_modelandx.item() ==tokenizer.special_tokens["<|eot_id|>"]):
614
+
done_generating=True
615
+
buffer=buffer[:-1] # drop the eot_id from the output buffer
0 commit comments