Replies: 1 comment
-
Good question. Yes, you can sample via Actually, Exercise 5.2 is kind of related to what you are asking :)
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
in the "generate" function with temperature sampling and top-k sampling could be the "Sample from the distribution" indipendent from the temperature setting allowing the sampling features without the temperature rescaling ?
actually if the temperature is 0 its is always applied argmax
def generate(model, idx, max_new_tokens, context_size, temperature, top_k=None, do_sample=True):
Beta Was this translation helpful? Give feedback.
All reactions