Changed parameters
Browse files
app.py
CHANGED
@@ -748,7 +748,7 @@ discrim_weights=None
|
|
748 |
discrim_meta=None
|
749 |
class_label=0
|
750 |
length=100
|
751 |
-
stepsize=0.
|
752 |
temperature=1.0
|
753 |
top_k=2
|
754 |
sample=True
|
@@ -813,7 +813,7 @@ for param in model.parameters():
|
|
813 |
|
814 |
eot_token = "<|endoftext|>"
|
815 |
|
816 |
-
def get_reply(response, username = None, histories = {}, in_stepsize = 0.
|
817 |
if username == None or username == "": return "<div class='chatbot'>Enter a username</div>", histories
|
818 |
stepsize = in_stepsize
|
819 |
horizon_length = int(in_horizon_length)
|
|
|
748 |
discrim_meta=None
|
749 |
class_label=0
|
750 |
length=100
|
751 |
+
stepsize=0.99
|
752 |
temperature=1.0
|
753 |
top_k=2
|
754 |
sample=True
|
|
|
813 |
|
814 |
eot_token = "<|endoftext|>"
|
815 |
|
816 |
+
def get_reply(response, username = None, histories = {}, in_stepsize = 0.99, in_horizon_length = 1, in_num_iterations = 10, in_top_k = 2):
|
817 |
if username == None or username == "": return "<div class='chatbot'>Enter a username</div>", histories
|
818 |
stepsize = in_stepsize
|
819 |
horizon_length = int(in_horizon_length)
|