Azzindani commited on
Commit
3edd280
·
verified ·
1 Parent(s): bbe7b04

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -82,8 +82,8 @@ def chat(message, history, temperature = 0.7, max_new_tokens = 1024, show_thinki
82
  'max_new_tokens' : max_new_tokens,
83
  'do_sample' : temperature > 0,
84
  'temperature' : temperature if temperature > 0 else 1.0,
85
- 'top_p' : 1.0,
86
- 'top_k' : -1,
87
  #'repetition_penalty' : 1.1
88
  }
89
 
 
82
  'max_new_tokens' : max_new_tokens,
83
  'do_sample' : temperature > 0,
84
  'temperature' : temperature if temperature > 0 else 1.0,
85
+ 'top_p' : 0.95,
86
+ 'top_k' : 20,
87
  #'repetition_penalty' : 1.1
88
  }
89