T5 Multitask Model for Book Genre, Rating, and Title Tasks

This model was trained on a custom dataset of book descriptions and titles. It supports:

  • genre: โ€” classify the genre of a book
  • rating: โ€” predict the numeric rating
  • title: โ€” generate a book title

Usage

from transformers import T5Tokenizer, T5ForConditionalGeneration

model = T5ForConditionalGeneration.from_pretrained("AbrarFahim75/t5-multitask-book")
tokenizer = T5Tokenizer.from_pretrained("AbrarFahim75/t5-multitask-book")

input_text = "genre: A dark and stormy night in an abandoned castle."
inputs = tokenizer(input_text, return_tensors="pt")
outputs = model.generate(**inputs)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for AbrarFahim75/t5-multitask-book

Base model

google-t5/t5-small
Finetuned
(2195)
this model