Huggingface Text Generation

Creator
Creator
Seonglae ChoSeonglae Cho
Created
Created
2023 Jul 15 7:2
Editor
Edited
Edited
2026 Jan 7 11:52
  • do_sample boolean default False (random)
    • decoding strategies
    • top_k number of samples to draw (1 or more)
    • num_beams (beam means set of candidate sequences)
      • 1 means greedy search
  • no_repeat_ngram_size default 0 (all ngrams of that size can only occur once)
  • <h color="red">max_length</h>
  • min_length
  • max_new_tokens
  • repetition_penalty 1 or more
HF TG Usages
 
 
 
 
 

 

Recommendations