Spaces:
Running on Zero
Running on Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,10 +12,11 @@ HF_TOKEN = os.environ.get("HF_TOKEN")
|
|
| 12 |
|
| 13 |
print("Loading tokenizer and base model...")
|
| 14 |
|
| 15 |
-
# Pass the token parameter to
|
| 16 |
tokenizer = AutoTokenizer.from_pretrained(
|
| 17 |
MODEL_ID,
|
| 18 |
-
token=HF_TOKEN
|
|
|
|
| 19 |
)
|
| 20 |
|
| 21 |
# We load the model in 16-bit on CPU first
|
|
|
|
| 12 |
|
| 13 |
print("Loading tokenizer and base model...")
|
| 14 |
|
| 15 |
+
# Pass the token parameter and force use_fast=False to bypass the tokenizer.json loading bug [1.3.1]
|
| 16 |
tokenizer = AutoTokenizer.from_pretrained(
|
| 17 |
MODEL_ID,
|
| 18 |
+
token=HF_TOKEN,
|
| 19 |
+
use_fast=False
|
| 20 |
)
|
| 21 |
|
| 22 |
# We load the model in 16-bit on CPU first
|