xu song commited on
Commit
2c8aed7
1 Parent(s): ff138c4
Files changed (1) hide show
  1. simulator.py +1 -10
simulator.py CHANGED
@@ -15,22 +15,13 @@ class Simulator:
15
  device_map="auto"
16
  )
17
  self.model.eval()
18
-
19
  self.generation_kwargs = dict(
20
- do_sample=False,
21
  temperature=0.7,
22
  max_length=500,
23
  max_new_tokens=10
24
  )
25
 
26
- generation_kwargs = dict(
27
-
28
- max_length=500,
29
- max_new_tokens=200
30
- )
31
-
32
- print(1)
33
-
34
  def generate_query(self, history):
35
  """ user simulator
36
  :param history:
 
15
  device_map="auto"
16
  )
17
  self.model.eval()
 
18
  self.generation_kwargs = dict(
19
+ do_sample=True,
20
  temperature=0.7,
21
  max_length=500,
22
  max_new_tokens=10
23
  )
24
 
 
 
 
 
 
 
 
 
25
  def generate_query(self, history):
26
  """ user simulator
27
  :param history: