Spaces:
Running
Running
Elijahbodden
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ from huggingface_hub import upload_file
|
|
9 |
import json
|
10 |
from uuid import uuid4
|
11 |
import logging
|
12 |
-
logging.basicConfig(filename="logs.log", filemode='a', format='%(asctime)s %(message)s'
|
13 |
|
14 |
logger = logging.getLogger()
|
15 |
|
@@ -107,7 +107,7 @@ ci = gr.ChatInterface(
|
|
107 |
# ("The model will become slow" is bc this uncaches the prompt and prompt processing is a big part of the generation time)
|
108 |
gr.Slider(minimum=0.0, maximum=1.0, value=0.1, step=0.01, label="Min_p", info="Lower values give it more \"personality\""),
|
109 |
gr.Slider(minimum=0.1, maximum=4.0, value=1.5, step=0.1, label="Temperature", info="How chaotic should the model be?"),
|
110 |
-
gr.Slider(minimum=0, maximum=512, value=
|
111 |
gr.Slider(minimum=0.5, maximum=1.5, value=1.015, step=0.001, label="Length penalty decay factor", info='How fast should that stop likelihood increase?'),
|
112 |
gr.Slider(minimum=0.0, maximum=1.0, value=0.1, step=0.01, label="Frequency penalty", info='"Don\'repeat yourself"'),
|
113 |
gr.Slider(minimum=0.0, maximum=1.0, value=0.1, step=0.01, label="Presence penalty", info='"Use lots of diverse words"'),
|
|
|
9 |
import json
|
10 |
from uuid import uuid4
|
11 |
import logging
|
12 |
+
logging.basicConfig(filename="logs.log", filemode='a', format='%(asctime)s %(message)s')
|
13 |
|
14 |
logger = logging.getLogger()
|
15 |
|
|
|
107 |
# ("The model will become slow" is bc this uncaches the prompt and prompt processing is a big part of the generation time)
|
108 |
gr.Slider(minimum=0.0, maximum=1.0, value=0.1, step=0.01, label="Min_p", info="Lower values give it more \"personality\""),
|
109 |
gr.Slider(minimum=0.1, maximum=4.0, value=1.5, step=0.1, label="Temperature", info="How chaotic should the model be?"),
|
110 |
+
gr.Slider(minimum=0, maximum=512, value=64, step=1, label="Length penalty start", info='When should the model start being more likely to shut up?'),
|
111 |
gr.Slider(minimum=0.5, maximum=1.5, value=1.015, step=0.001, label="Length penalty decay factor", info='How fast should that stop likelihood increase?'),
|
112 |
gr.Slider(minimum=0.0, maximum=1.0, value=0.1, step=0.01, label="Frequency penalty", info='"Don\'repeat yourself"'),
|
113 |
gr.Slider(minimum=0.0, maximum=1.0, value=0.1, step=0.01, label="Presence penalty", info='"Use lots of diverse words"'),
|