Downloads · 30 days
0
alixagari2000/ts-content-v1
ts-content-v1 is a machine learning model from alixagari2000. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as afl-3.0.
This repository contains a powerful transformer-based text summarization model trained on a large-scale dataset with millions of examples. Built using PyTorch and the Hugging Face Transformers library, it provides an…
Downloads · 30 days
0
Access
Public
Updated Sep 18, 2025
Repo size
—
Likes
0
Public
Click a slice to open those files.
.py5.3 KB · 43%
From the Hugging Face model README
This repository contains a powerful transformer-based text summarization model trained on a large-scale dataset with millions of examples. Built using PyTorch and the Hugging Face Transformers library, it provides an end-to-end pipeline from preprocessing and tokenization to training and evaluation using ROUGE metrics.
This project includes:
Trainer)The training data consists of millions of article-summary pairs, covering diverse domains such as news, scientific papers, and web content. Data sources may include:
All datasets are tokenized, cleaned, and formatted to be Hugging Face Dataset-compatible.
I use a Transformer encoder-decoder architecture, ideal for abstractive summarization tasks. Supported architectures include:
facebook/bart-larget5-base or t5-largeYou can switch models easily via CLI or config YAML.
Text is tokenized using the corresponding tokenizer from the Hugging Face model hub. Preprocessing includes:
AutoTokenizerfrom transformers import AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("facebook/bart-large")
def preprocess_function(examples):
inputs = [doc for doc in examples["document"]]
model_inputs = tokenizer(inputs, max_length=1024, truncation=True)
with tokenizer.as_target_tokenizer():
labels = tokenizer(examples["summary"], max_length=128, truncation=True)
model_inputs["labels"] = labels["input_ids"]
return model_inputs