Spaces:
Runtime error
Runtime error
ffreemt
commited on
Commit
·
2987cd6
1
Parent(s):
79b022b
app.py
CHANGED
|
@@ -153,12 +153,12 @@ def bot_stream(chat_history, **kwargs):
|
|
| 153 |
|
| 154 |
SYSTEM_PROMPT = "You are a helpful assistant."
|
| 155 |
MAX_MAX_NEW_TOKENS = 1024
|
| 156 |
-
MAX_NEW_TOKENS =
|
| 157 |
|
| 158 |
|
| 159 |
@dataclass
|
| 160 |
class Config:
|
| 161 |
-
max_new_tokens: int =
|
| 162 |
repetition_penalty: float = 1.1
|
| 163 |
temperature: float = 1.0
|
| 164 |
top_k: int = 0
|
|
|
|
| 153 |
|
| 154 |
SYSTEM_PROMPT = "You are a helpful assistant."
|
| 155 |
MAX_MAX_NEW_TOKENS = 1024
|
| 156 |
+
MAX_NEW_TOKENS = 256
|
| 157 |
|
| 158 |
|
| 159 |
@dataclass
|
| 160 |
class Config:
|
| 161 |
+
max_new_tokens: int = MAX_NEW_TOKENS
|
| 162 |
repetition_penalty: float = 1.1
|
| 163 |
temperature: float = 1.0
|
| 164 |
top_k: int = 0
|