Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ import torch
|
|
3 |
from peft import PeftModel, PeftConfig
|
4 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
5 |
|
6 |
-
peft_model_id = "hackathon-somos-nlp-2023/
|
7 |
config = PeftConfig.from_pretrained(peft_model_id)
|
8 |
model = AutoModelForCausalLM.from_pretrained(config.base_model_name_or_path, return_dict=True, load_in_8bit=True, device_map='auto')
|
9 |
tokenizer = AutoTokenizer.from_pretrained(peft_model_id)
|
|
|
3 |
from peft import PeftModel, PeftConfig
|
4 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
5 |
|
6 |
+
peft_model_id = "hackathon-somos-nlp-2023/PAG-BERT"
|
7 |
config = PeftConfig.from_pretrained(peft_model_id)
|
8 |
model = AutoModelForCausalLM.from_pretrained(config.base_model_name_or_path, return_dict=True, load_in_8bit=True, device_map='auto')
|
9 |
tokenizer = AutoTokenizer.from_pretrained(peft_model_id)
|