Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ import torch
|
|
5 |
# model = "tiiuae/falcon-40b-instruct"
|
6 |
model = "tiiuae/falcon-7b-instruct"
|
7 |
|
8 |
-
tokenizer = AutoTokenizer.from_pretrained(model, offload_folder="offload")
|
9 |
pipeline = transformers.pipeline(
|
10 |
"text-generation",
|
11 |
model=model,
|
|
|
5 |
# model = "tiiuae/falcon-40b-instruct"
|
6 |
model = "tiiuae/falcon-7b-instruct"
|
7 |
|
8 |
+
tokenizer = AutoTokenizer.from_pretrained(model, offload_folder="offload", offload_state_dict = True, )
|
9 |
pipeline = transformers.pipeline(
|
10 |
"text-generation",
|
11 |
model=model,
|