Make max input token length longer (#1)
Browse files- Make max input token length longer (8477c3683dfb0543b7c34f5be796d0948d6085db)
app.py
CHANGED
@@ -9,7 +9,7 @@ from transformers import AutoModelForCausalLM, AutoTokenizer, TextIteratorStream
|
|
9 |
|
10 |
MAX_MAX_NEW_TOKENS = 1024
|
11 |
DEFAULT_MAX_NEW_TOKENS = 512
|
12 |
-
MAX_INPUT_TOKEN_LENGTH = int(os.getenv("MAX_INPUT_TOKEN_LENGTH", "
|
13 |
|
14 |
DESCRIPTION = """\
|
15 |
# Llama-2 7B Chat
|
|
|
9 |
|
10 |
MAX_MAX_NEW_TOKENS = 1024
|
11 |
DEFAULT_MAX_NEW_TOKENS = 512
|
12 |
+
MAX_INPUT_TOKEN_LENGTH = int(os.getenv("MAX_INPUT_TOKEN_LENGTH", "4096"))
|
13 |
|
14 |
DESCRIPTION = """\
|
15 |
# Llama-2 7B Chat
|