-
I guess there are 2 cases:
2 is more important for me (and it should be simple to implement?). It seems, however, like neither is possible? I really like the library, but I'm using base LLaMa and not being able to set repetition_penalty makes it almost useless for me. Am I missing something? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Good question! I just added a new kwargs passthrough to the You should be able to use anything in the "Parameters for manipulation of the model output logits" section at https://huggingface.co/docs/transformers/main_classes/text_generation#transformers.GenerationConfig This is in |
Beta Was this translation helpful? Give feedback.
Good question! I just added a new kwargs passthrough to the
gen
command to address this. Now you can pass anything through the transformers generate, likerepetition_penalty
. Just note that some parameters that change the output of the generate command would break things I think (likenum_beams
).You should be able to use anything in the "Parameters for manipulation of the model output logits" section at https://huggingface.co/docs/transformers/main_classes/text_generation#transformers.GenerationConfig
This is in
main
now and will be part of 0.0.62 when it comes out.