Spaces:
Running
on
Zero
Running
on
Zero
Rijgersberg
commited on
Commit
•
2213339
1
Parent(s):
b0152d0
Extend context to 8192
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ from transformers import AutoModelForCausalLM, AutoTokenizer, TextIteratorStream
|
|
11 |
|
12 |
MAX_MAX_NEW_TOKENS = 2048
|
13 |
DEFAULT_MAX_NEW_TOKENS = 1024
|
14 |
-
MAX_INPUT_TOKEN_LENGTH = int(os.getenv("MAX_INPUT_TOKEN_LENGTH", "
|
15 |
|
16 |
if torch.cuda.is_available():
|
17 |
model_id = "Rijgersberg/GEITje-7B-chat"
|
|
|
11 |
|
12 |
MAX_MAX_NEW_TOKENS = 2048
|
13 |
DEFAULT_MAX_NEW_TOKENS = 1024
|
14 |
+
MAX_INPUT_TOKEN_LENGTH = int(os.getenv("MAX_INPUT_TOKEN_LENGTH", "8192"))
|
15 |
|
16 |
if torch.cuda.is_available():
|
17 |
model_id = "Rijgersberg/GEITje-7B-chat"
|