Downloads · 30 days
0
mayankpuvvala/lora-t5-pytorch-issues
lora-t5-pytorch-issues is a machine learning model from mayankpuvvala. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers.
This model represents the LoRA adapter weights trained on a custom dataset of PyTorch GitHub issues. It is intended to be used with the base t5-small model to generate issue bodies from titles.
Downloads · 30 days
0
Access
Public
Updated May 15, 2025
Repo size
1.2 MB
Likes
0
Public
Click a slice to open those files.
.json2.4 MB · 67%
From the Hugging Face model README
mayankpuvvala/lora-t5-pytorch-issuesThis model represents the LoRA adapter weights trained on a custom dataset of PyTorch GitHub issues. It is intended to be used with the base t5-small model to generate issue bodies from titles.
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
from peft import PeftModel
base_model = AutoModelForSeq2SeqLM.from_pretrained("t5-small")
model = PeftModel.from_pretrained(base_model, "mayankpuvvala/lora-t5-pytorch-issues")
tokenizer = AutoTokenizer.from_pretrained("t5-small")
input_text = "Memory leak when using DataLoader with num_workers > 0"
inputs = tokenizer(input_text, return_tensors="pt")
outputs = model.generate(**inputs)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))