1. Source text
Paste a news article, report, complaint narrative, or other English text.
Tokenized input preview
Load the model and generate a summary to view the first token IDs.
Real browser-based Transformer inference
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.
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.
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
Paste a news article, report, complaint narrative, or other English text.
Load the model and generate a summary to view the first token IDs.
The first model load downloads full-precision ONNX weights and stores them in the browser cache.
Model output
Your generated summary will appear here. The model runs only after you select Generate summary.
Decoding experiment
Architecture
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
Model evaluation
The committed evaluation file contains null values until the Python evaluation script is executed. This prevents fabricated portfolio metrics.
Model comparison
| Dimension | LSTM Seq2Seq with attention | Transformer project |
|---|---|---|
| Sequence processing | Recurrent, token by token | Attention-based parallel encoding |
| Long-range context | Compressed through recurrent states | Direct token-to-token attention |
| Pretraining | Earlier custom project | Pretrained T5 browser model and DistilBART Python model |
| Browser deployment | Requires a separate conversion | Fine-tuned T5-small ONNX runs through Transformers.js |
| Published metrics | Requires actual prior predictions | Generated for the Python DistilBART benchmark |
Limitations