Huggingface Text Generation

Creator
Creator
Seonglae ChoSeonglae Cho
Created
Created
2023 Jul 15 7:2
Editor
Edited
Edited
2024 Mar 11 17:23
  • do_sample boolean default False (random)
    • decoding strategies
    • top_k 1이상 샘플 개수 뽑을지
    • 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)
  • max_length
  • min_length
  • max_new_tokens
  • repetition_penalty 1이상
 
 
 
 
 
 
 

 

Recommendations