Downloads · 30 days
26
32% of all-time downloads
uthayamurthy/origin-task1-t5gemma2-270m
origin-task1-t5gemma2-270m is a summarization model from uthayamurthy. Use it when you need a shorter version of a longer text. It is set up for transformers. The card lists the license as gemma.
This is a full-parameter fine-tuned checkpoint of google/t5gemma-2-270m-270m for SciHigh-2026 Task 1. It generates concise research highlights from scientific paper abstracts.
Downloads · 30 days
26
32% of all-time downloads
All-time downloads
82
Public
Parameters
786M
1.6 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.6 GB · 98%
From the Hugging Face model README
This is a full-parameter fine-tuned checkpoint of google/t5gemma-2-270m-270m for SciHigh-2026 Task 1. It generates concise research highlights from scientific paper abstracts.
3e-5, batch size 32, max input/target lengths 1024/320, bfloat16, SDPA attention.| Metric | Score |
|---|---|
| ROUGE-1 | 0.3818 |
| ROUGE-2 | 0.1389 |
| ROUGE-L / Lsum | 0.2590 / 0.2591 |
| METEOR | 0.2983 |
| BERTScore F1 | 0.8775 |
import torch
from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
model_id = "uthayamurthy/origin-task1-t5gemma2-270m"
tokenizer = AutoTokenizer.from_pretrained(model_id, use_fast=True)
model = AutoModelForSeq2SeqLM.from_pretrained(
model_id,
dtype=torch.bfloat16,
attn_implementation="sdpa",
).to("cuda").eval()
abstract = "..."
inputs = tokenizer(abstract, return_tensors="pt", truncation=True, max_length=1024)
inputs = {name: value.to("cuda") for name, value in inputs.items()}
with torch.inference_mode():
generated = model.generate(
**inputs,
max_length=128,
min_length=0,
num_beams=4,
length_penalty=1.0,
no_repeat_ngram_size=3,
early_stopping=True,
)
print(tokenizer.decode(generated[0], skip_special_tokens=True))