How to use from the
Use from the
Transformers library
# Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM

tokenizer = AutoTokenizer.from_pretrained("dantepalacio/ruLongT5-Large")
model = AutoModelForSeq2SeqLM.from_pretrained("dantepalacio/ruLongT5-Large")
Quick Links

original model: agemagician/mlong-t5-tglobal-large

adaptation guide: https://towardsdatascience.com/how-to-adapt-a-multilingual-t5-model-for-a-single-language-b9f94f3d9c90

import torch from transformers import MT5Tokenizer, LongT5ForConditionalGeneration

model_name = "dantepalacio/ruLongT5-Large" tokenizer = MT5Tokenizer.from_pretrained(model_name) model = LongT5ForConditionalGeneration.from_pretrained(model_name, ignore_mismatched_sizes=True)

Downloads last month
3
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support