ONNX Model Zoo

inference4j/bart-large-cnn

By inference4j · ↓ 17 · ♥ 0 · Updated 2026-02-28

What's in this repo

This page lists the files in inference4j/bart-large-cnn, including decoder_model.onnx, decoder_with_past_model.onnx, encoder_model.onnx.

  • 3 ONNX models (.onnx files)
  • 8 files, including 3 .onnx, 2 .json, 1 .md, 1 .txt
  • Last updated 2026-02-28

ONNX files

File Size Download
decoder_model.onnx — Download
decoder_with_past_model.onnx — Download
encoder_model.onnx — Download

How to use

These ONNX files can be loaded with ONNX Runtime. To inspect a model graph, upload the file to the Netron viewer. Download links point to the original files on Hugging Face.

README

BART Large CNN — ONNX

ONNX export of BART Large CNN (406M parameters) with encoder-decoder architecture and KV cache support.

Fine-tuned for text summarization on the CNN/DailyMail dataset.

Converted for use with inference4j, an inference-only AI library for Java.

Original Source

Usage with inference4j

try (var summarizer = BartSummarizer.bartLargeCnn().build()) {
    System.out.println(summarizer.summarize("Long article text..."));
}

Model Details

Property Value
Architecture BART encoder-decoder (406M parameters, 12 encoder + 12 decoder layers)
Task Text summarization
Training data CNN/DailyMail
Tokenizer BPE (50,265 tokens)
Original framework PyTorch (transformers)
Export method Hugging Face Optimum (encoder-decoder with KV cache)

License

This model is licensed under the Apache License 2.0. Original model by Facebook AI.

Model info

onnx bart text2text-generation summarization encoder-decoder inference4j license:apache-2.0 region:us
↓ 17 ♥ 0

Created: 2026-02-28

Updated: 2026-02-28

View on Hugging Face

Files (8)

.gitattributes
README.md
config.json
decoder_model.onnx ONNX
decoder_with_past_model.onnx ONNX
encoder_model.onnx ONNX
merges.txt
vocab.json

Related models