Crystalcareai commited on
Commit
247118f
·
verified ·
1 Parent(s): 0d0f81b

Update generate.py

Browse files
Files changed (1) hide show
  1. generate.py +3 -3
generate.py CHANGED
@@ -17,7 +17,7 @@ def custom_generate(
17
  do_sample=None,
18
  early_stopping=None,
19
  num_beams=None,
20
- temperature=1.0,
21
  top_k=None,
22
  top_p=None,
23
  repetition_penalty=None,
@@ -103,7 +103,7 @@ def generate(
103
  do_sample=None,
104
  early_stopping=None,
105
  num_beams=None,
106
- temperature=1.0,
107
  streamer=None,
108
  top_k=None,
109
  top_p=None,
@@ -128,7 +128,7 @@ def generate(
128
  forced_eos_token_id=None,
129
  remove_invalid_values=None,
130
  synced_gpus=None,
131
- n_ahead=4,
132
  n_ahead_talk=4,
133
  merged_talk_heads=True,
134
  merged_lm_and_talk_heads=False,
 
17
  do_sample=None,
18
  early_stopping=None,
19
  num_beams=None,
20
+ temperature=None,
21
  top_k=None,
22
  top_p=None,
23
  repetition_penalty=None,
 
103
  do_sample=None,
104
  early_stopping=None,
105
  num_beams=None,
106
+ temperature=None,
107
  streamer=None,
108
  top_k=None,
109
  top_p=None,
 
128
  forced_eos_token_id=None,
129
  remove_invalid_values=None,
130
  synced_gpus=None,
131
+ n_ahead=8,
132
  n_ahead_talk=4,
133
  merged_talk_heads=True,
134
  merged_lm_and_talk_heads=False,