Spaces:
Runtime error
Runtime error
vivekkumarbarman
commited on
Commit
β’
041900e
1
Parent(s):
97930df
Update app.py
Browse files
app.py
CHANGED
@@ -15,9 +15,10 @@ m = AutoModelForCausalLM.from_pretrained(
|
|
15 |
model_name,
|
16 |
#load_in_4bit=True,
|
17 |
torch_dtype=torch.bfloat16,
|
18 |
-
device_map='auto'
|
|
|
19 |
)
|
20 |
-
m = PeftModel.from_pretrained(m, adapters_name, offload_dir=
|
21 |
m = m.merge_and_unload()
|
22 |
tok = LlamaTokenizer.from_pretrained(model_name)
|
23 |
tok.bos_token_id = 1
|
|
|
15 |
model_name,
|
16 |
#load_in_4bit=True,
|
17 |
torch_dtype=torch.bfloat16,
|
18 |
+
device_map='auto',
|
19 |
+
offload_folder="."
|
20 |
)
|
21 |
+
m = PeftModel.from_pretrained(m, adapters_name, offload_dir="")
|
22 |
m = m.merge_and_unload()
|
23 |
tok = LlamaTokenizer.from_pretrained(model_name)
|
24 |
tok.bos_token_id = 1
|