Commit a1d411d3 authored by Мазур Грета Евгеньевна's avatar Мазур Грета Евгеньевна
Browse files

micro zapusk no cross

parent 1a49ab7b
No related merge requests found
Showing with 8 additions and 8 deletions
+8 -8
...@@ -312,11 +312,11 @@ tokenizer = BertTokenizer.from_pretrained("./micro_no_cross_fine_tuned2") ...@@ -312,11 +312,11 @@ tokenizer = BertTokenizer.from_pretrained("./micro_no_cross_fine_tuned2")
# base_model = MultiTaskBert.from_pretrained('bert-base-uncased').to(device)
# print("Загружена базовая")
base_model = MultiTaskBert.from_pretrained('bert-base-uncased').to(device) # model = PeftModel.from_pretrained(base_model, "./micro_no_cross_fine_tuned/lora2", strict=False)
print("Загружена базовая") model = PeftModel.from_pretrained("./micro_no_cross_fine_tuned/lora2")
model = PeftModel.from_pretrained(base_model, "./micro_no_cross_fine_tuned/lora2", strict=False)
print("Загружена с лора") print("Загружена с лора")
......
...@@ -312,11 +312,11 @@ tokenizer = BertTokenizer.from_pretrained("./micro_no_cross_fine_tuned2") ...@@ -312,11 +312,11 @@ tokenizer = BertTokenizer.from_pretrained("./micro_no_cross_fine_tuned2")
# base_model = MultiTaskBert.from_pretrained('bert-base-uncased').to(device)
# print("Загружена базовая")
base_model = MultiTaskBert.from_pretrained('bert-base-uncased').to(device) # model = PeftModel.from_pretrained(base_model, "./micro_no_cross_fine_tuned/lora2", strict=False)
print("Загружена базовая") model = PeftModel.from_pretrained("./micro_no_cross_fine_tuned/lora2")
model = PeftModel.from_pretrained(base_model, "./micro_no_cross_fine_tuned/lora2", strict=False)
print("Загружена с лора") print("Загружена с лора")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment