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
An officially supported task in the examples folder (such as GLUE/SQuAD, ...)
My own task or dataset (give details below)
Reproduction
I want to customize the num_logits_to_keep in LlamaForCausalLM's forward function by setting it through generate, but I failed or don't know how to check the logits of tokens produced by num_logits_to_keep.
bwnjnOEI
changed the title
How to correctly use num_logits_to_keep in model.generate()?
Dose num_logits_to_keep in model.generate() really work?
Jan 12, 2025
System Info
transformers
version: 4.47.1Who can help?
@zucchini-nlp @gante @ArthurZucker
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction
I want to customize the
num_logits_to_keep
inLlamaForCausalLM
'sforward
function by setting it through generate, but I failed or don't know how to check the logits of tokens produced bynum_logits_to_keep
.a code snippet
Expected behavior
outputs.logits != None ?
The text was updated successfully, but these errors were encountered: