Run this model with HF Jobs

Run IlyaGusev/rut5_base_headline_gen_telegram on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/IlyaGusev/rut5_base_headline_gen_telegram. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/IlyaGusev/rut5_base_headline_gen_telegram on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

RuT5TelegramHeadlines

Model description

Based on rut5-base model

Intended uses & limitations

How to use

from transformers import AutoTokenizer, T5ForConditionalGeneration

model_name = "IlyaGusev/rut5_base_headline_gen_telegram"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = T5ForConditionalGeneration.from_pretrained(model_name)

article_text = "..."

input_ids = tokenizer(
    [article_text],
    max_length=600,
    add_special_tokens=True,
    padding="max_length",
    truncation=True,
    return_tensors="pt"
)["input_ids"]

output_ids = model.generate(
    input_ids=input_ids
)[0]

headline = tokenizer.decode(output_ids, skip_special_tokens=True)
print(headline)

Training data

Training procedure

Downloads last month
11,720
Inference Providers NEW
Examples

Spaces using IlyaGusev/rut5_base_headline_gen_telegram 3