Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -42,7 +42,7 @@ config.base_model_name_or_path = "tiiuae/falcon-7b"
|
|
42 |
trust_remote_code=True
|
43 |
)'''
|
44 |
|
45 |
-
model = AutoModelForCausalLM.from_pretrained(PEFT_MODEL, device_map="auto")
|
46 |
|
47 |
tokenizer=AutoTokenizer.from_pretrained(config.base_model_name_or_path)
|
48 |
tokenizer.pad_token = tokenizer.eos_token
|
|
|
42 |
trust_remote_code=True
|
43 |
)'''
|
44 |
|
45 |
+
model = AutoModelForCausalLM.from_pretrained(PEFT_MODEL, device_map="auto",offload_folder="offload")
|
46 |
|
47 |
tokenizer=AutoTokenizer.from_pretrained(config.base_model_name_or_path)
|
48 |
tokenizer.pad_token = tokenizer.eos_token
|