Real browser-based Transformer inference

Abstractive Text Summarization

Generate concise summaries with a fine-tuned T5-small encoder-decoder Transformer running locally in your browser through Transformers.js and ONNX Runtime Web. No paid inference server is used.

T5-small Transformers.js ONNX Runtime Web Static Space

Deployment distinction: the live browser uses the compact T5-small summarization checkpoint for reliable free static inference. The repository's personally fine-tuned and evaluated model remains DistilBART.

Responsible-use notice

Generated summaries may omit context, distort facts, or hallucinate. Do not enter confidential, sensitive, copyrighted, or personally identifiable text. Human review is required, especially for high-stakes or official use.

Interactive demo

Summarization workspace

Model not loaded

1. Source text

Paste a news article, report, complaint narrative, or other English text.

0 words 0 characters model tokens
Tokenized input preview

Load the model and generate a summary to view the first token IDs.

Model output

Generated summary

Your generated summary will appear here. The model runs only after you select Generate summary.

Inference latency
Compression ratio
Summary words
Input chunks
Runtime
Model precision

Architecture

Where the Transformer runs

The live application uses a browser-compatible fine-tuned T5-small ONNX checkpoint. The repository's separate Python training and benchmark layer uses DistilBART. Both are encoder-decoder Transformers, and no article is sent to a paid inference endpoint.

Python engineering layer

Full ML project preserved on GitHub

  • PyTorch and Hugging Face Transformers inference
  • ROUGE, BERTScore, latency, and compression evaluation
  • Lead-3, TextRank, and LSTM Seq2Seq comparison framework
  • Training, tests, notebooks, model card, and error analysis

Model evaluation

Publish only measured results

Loading evaluation status…

The committed evaluation file contains null values until the Python evaluation script is executed. This prevents fabricated portfolio metrics.

Model comparison

Modern Transformers vs LSTM Seq2Seq

DimensionLSTM Seq2Seq with attentionTransformer project
Sequence processingRecurrent, token by tokenAttention-based parallel encoding
Long-range contextCompressed through recurrent statesDirect token-to-token attention
PretrainingEarlier custom projectPretrained T5 browser model and DistilBART Python model
Browser deploymentRequires a separate conversionFine-tuned T5-small ONNX runs through Transformers.js
Published metricsRequires actual prior predictionsGenerated for the Python DistilBART benchmark

Limitations

What reviewers should know