Spaces:
Paused
Paused
Update utils.py
Browse files
utils.py
CHANGED
@@ -70,7 +70,7 @@ def load_tokenizer_and_model(base_model,load_8bit=False):
|
|
70 |
else:
|
71 |
device = "cpu"
|
72 |
|
73 |
-
tokenizer = AutoTokenizer.from_pretrained
|
74 |
if device == "cuda":
|
75 |
model = AutoModelForCausalLM.from_pretrained(
|
76 |
base_model,
|
|
|
70 |
else:
|
71 |
device = "cpu"
|
72 |
|
73 |
+
tokenizer = AutoTokenizer.from_pretrained(base_model, use_fast = False)
|
74 |
if device == "cuda":
|
75 |
model = AutoModelForCausalLM.from_pretrained(
|
76 |
base_model,
|