Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ from transformers import AutoModelForCausalLM, AutoTokenizer, TextIteratorStream
|
|
10 |
|
11 |
MAX_MAX_NEW_TOKENS = 512
|
12 |
DEFAULT_MAX_NEW_TOKENS = 512
|
13 |
-
MAX_INPUT_TOKEN_LENGTH = int(os.getenv("MAX_INPUT_TOKEN_LENGTH", "
|
14 |
|
15 |
#Transformers Code
|
16 |
if torch.cuda.is_available():
|
|
|
10 |
|
11 |
MAX_MAX_NEW_TOKENS = 512
|
12 |
DEFAULT_MAX_NEW_TOKENS = 512
|
13 |
+
MAX_INPUT_TOKEN_LENGTH = int(os.getenv("MAX_INPUT_TOKEN_LENGTH", "4096"))
|
14 |
|
15 |
#Transformers Code
|
16 |
if torch.cuda.is_available():
|