Update app.py
Browse files
app.py
CHANGED
@@ -5,11 +5,11 @@ app = FastAPI()
|
|
5 |
|
6 |
model_id = "ibleducation/ibl-fordham-7b"
|
7 |
|
8 |
-
tokenizer = AutoTokenizer.from_pretrained(model_id, cache_dir="
|
9 |
model = AutoModelForCausalLM.from_pretrained(
|
10 |
model_id,
|
11 |
device_map="auto",
|
12 |
-
cache_dir="
|
13 |
)
|
14 |
pipeline = transformers.pipeline(
|
15 |
"text-generation",
|
|
|
5 |
|
6 |
model_id = "ibleducation/ibl-fordham-7b"
|
7 |
|
8 |
+
tokenizer = AutoTokenizer.from_pretrained(model_id, cache_dir=".",)
|
9 |
model = AutoModelForCausalLM.from_pretrained(
|
10 |
model_id,
|
11 |
device_map="auto",
|
12 |
+
cache_dir=".",
|
13 |
)
|
14 |
pipeline = transformers.pipeline(
|
15 |
"text-generation",
|