Instructions to use Laksitha/autotrain-tosdr_tldr_legal_summarisation_v1-1434353657 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Laksitha/autotrain-tosdr_tldr_legal_summarisation_v1-1434353657 with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "summarization" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # 'pip install "transformers<5.0.0' from transformers import pipeline pipe = pipeline("summarization", model="Laksitha/autotrain-tosdr_tldr_legal_summarisation_v1-1434353657")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Laksitha/autotrain-tosdr_tldr_legal_summarisation_v1-1434353657", dtype="auto") - Notebooks
- Google Colab
- Kaggle
Configuration Parsing Warning:Config file config.json cannot be fetched (too big)
Configuration Parsing Warning:Config file tokenizer_config.json cannot be fetched (too big)
Model Trained Using AutoTrain
- Problem type: Summarization
- Model ID: 1434353657
- CO2 Emissions (in grams): 2.9025
Validation Metrics
- Loss: 2.821
- Rouge1: 32.961
- Rouge2: 10.761
- RougeL: 20.551
- RougeLsum: 30.094
- Gen Len: 92.222
Usage
You can use cURL to access this model:
$ curl -X POST -H "Authorization: Bearer YOUR_HUGGINGFACE_API_KEY" -H "Content-Type: application/json" -d '{"inputs": "I love AutoTrain"}' https://api-inference.huggingface.co/Laksitha/autotrain-tosdr_tldr_legal_summarisation_v1-1434353657
- Downloads last month
- 3