Downloads · 30 days
7
4% of all-time downloads
AryanT11/lexibrief-legal-summarizer
lexibrief-legal-summarizer is a summarization model from AryanT11. Use it when you need a shorter version of a longer text. It is set up for peft.
This model is a fine-tuned version of google/flan-t5-base specifically optimized for legal document summarization. It has been trained on the BillSum dataset, making it particularly effective at summarizing various ty…
Downloads · 30 days
7
4% of all-time downloads
All-time downloads
191
Public
Repo size
29.2 MB
Likes
1
Public
Click a slice to open those files.
.safetensors28.4 MB · 90%
From the Hugging Face model README
This model is a fine-tuned version of google/flan-t5-base specifically optimized for legal document summarization. It has been trained on the BillSum dataset, making it particularly effective at summarizing various types of legal documents including:
The model uses LoRA (Low-Rank Adaptation) for efficient fine-tuning while maintaining the base model's strong language understanding capabilities. This approach allows the model to:
Legal Domain Specialization:
Performance Advantages:
Technical Improvements:
The model was trained on:
BillSum Dataset:
LexGlue Components:
LoRA Parameters:
Training Hyperparameters:
The model demonstrates strong performance in legal document summarization:
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
# Load model and tokenizer
model_name = "AryanT11/lexibrief-legal-summarizer" # Replace with actual model ID
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForSeq2SeqLM.from_pretrained(model_name)
# Prepare input
text = "Your legal document here..."
inputs = tokenizer(f"summarize legal document: {text}",
return_tensors="pt",
max_length=384,
truncation=True)
# Generate summary
outputs = model.generate(**inputs,
max_length=128,
temperature=0.7,
do_sample=True)
summary = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(summary)
Input:
SECTION 1. SHORT TITLE.
This Act may be cited as the "Sample Legal Document Act of 2024".
SECTION 2. PURPOSE.
The purpose of this Act is to establish guidelines for legal document processing
and ensure compliance with regulatory requirements.
Output:
This Act, known as the Sample Legal Document Act of 2024, establishes guidelines
for legal document processing and ensures regulatory compliance.
If you use this model, please cite:
@misc{lexibrief2025,
title={LexiBrief: Legal Document Summarizer},
author={Aryan Tapkire},
year={2025},
publisher={Hugging Face},
url={https://huggingface.co/AryanT11/lexibrief-legal-summarizer}
}
For questions, issues, or feedback about this model, please: