Downloads · 30 days
18
16% of all-time downloads
arirajuns/bigbird-legal-onnx
bigbird-legal-onnx is a summarization model from arirajuns. Use it when you need a shorter version of a longer text. It is set up for transformers.
This is a fine-tuned version of BigBird-Pegasus for legal document summarization. It has been exported to ONNX for high-performance inference.
Downloads · 30 days
18
16% of all-time downloads
All-time downloads
114
Public
Repo size
3.7 MB
Likes
0
Public
Click a slice to open those files.
.json6.3 MB · 63%
From the Hugging Face model README
This is a fine-tuned version of BigBird-Pegasus for legal document summarization. It has been exported to ONNX for high-performance inference.
import onnxruntime as ort
from transformers import AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("arirajuns/bigbird-legal-onnx")
session = ort.InferenceSession("model.onnx")
inputs = tokenizer("Your long legal text here...", return_tensors="np")
outputs = session.run(None, dict(inputs))