Commit
•
b3567f3
1
Parent(s):
2ea6700
rearrange comment
Browse files
app.py
CHANGED
@@ -126,8 +126,8 @@ def generator(
|
|
126 |
alpha_frequency=countPenalty,
|
127 |
alpha_presence=presencePenalty,
|
128 |
token_ban=[], # ban the generation of some tokens
|
129 |
-
token_stop=[0],
|
130 |
-
)
|
131 |
|
132 |
instruction = re.sub(r"\n{2,}", "\n", instruction).strip().replace("\r\n", "\n")
|
133 |
if input is not None:
|
|
|
126 |
alpha_frequency=countPenalty,
|
127 |
alpha_presence=presencePenalty,
|
128 |
token_ban=[], # ban the generation of some tokens
|
129 |
+
token_stop=[0], # stop generation whenever you see any token here
|
130 |
+
)
|
131 |
|
132 |
instruction = re.sub(r"\n{2,}", "\n", instruction).strip().replace("\r\n", "\n")
|
133 |
if input is not None:
|