stanrom commited on
Commit
6d044fa
1 Parent(s): 15f215d

Update modeling_InternLM_XComposer.py

Browse files
Files changed (1) hide show
  1. modeling_InternLM_XComposer.py +2 -2
modeling_InternLM_XComposer.py CHANGED
@@ -36,12 +36,12 @@ class InternLMXComposerForCausalLM(PreTrainedModel):
36
 
37
  gen_config = dict(
38
  num_beams=5,
39
- do_sample=False,
40
  min_length=1,
41
  repetition_penalty=1.5,
42
  length_penalty=1.0,
43
  temperature=0.2,
44
- max_new_tokens=500,
45
  )
46
 
47
  def __init__(self, config):
 
36
 
37
  gen_config = dict(
38
  num_beams=5,
39
+ do_sample=True,
40
  min_length=1,
41
  repetition_penalty=1.5,
42
  length_penalty=1.0,
43
  temperature=0.2,
44
+ max_new_tokens=1000,
45
  )
46
 
47
  def __init__(self, config):