.
This commit is contained in:
parent
e5673fde0a
commit
24312af4d9
@ -4,7 +4,7 @@ import jiwer
|
|||||||
import sacrebleu
|
import sacrebleu
|
||||||
|
|
||||||
# 1. Загрузка модели и токенизатора
|
# 1. Загрузка модели и токенизатора
|
||||||
model_path = "T5Autocorrection1337" # Укажите путь к вашей модели
|
model_path = "google/mt5-large" # Укажите путь к вашей модели
|
||||||
tokenizer = AutoTokenizer.from_pretrained(model_path)
|
tokenizer = AutoTokenizer.from_pretrained(model_path)
|
||||||
model = AutoModelForSeq2SeqLM.from_pretrained(model_path)
|
model = AutoModelForSeq2SeqLM.from_pretrained(model_path)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user