Summarization
Transformers
PyTorch
Enawené-Nawé
longt5
text2text-generation
Trained with AutoTrain
Eval Results (legacy)
Instructions to use L-macc/autotrain-Biomedical_sc_summ-1217846144 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use L-macc/autotrain-Biomedical_sc_summ-1217846144 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="L-macc/autotrain-Biomedical_sc_summ-1217846144")# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("L-macc/autotrain-Biomedical_sc_summ-1217846144") model = AutoModelForSeq2SeqLM.from_pretrained("L-macc/autotrain-Biomedical_sc_summ-1217846144", device_map="auto") - Notebooks
- Google Colab
- Kaggle
metadata
tags:
- autotrain
- summarization
language:
- unk
widget:
- text: I love AutoTrain 🤗
datasets:
- L-macc/autotrain-data-Biomedical_sc_summ
co2_eq_emissions:
emissions: 3198.3976606503647
model-index:
- name: L-macc/autotrain-Biomedical_sc_summ-1217846144
results:
- task:
type: summarization
name: Summarization
dataset:
name: Blaise-g/SumPubmed
type: Blaise-g/SumPubmed
config: Blaise-g--SumPubmed
split: test
metrics:
- name: ROUGE-1
type: rouge
value: 39.4086
verified: true
- name: ROUGE-2
type: rouge
value: 12.8115
verified: true
- name: ROUGE-L
type: rouge
value: 21.9191
verified: true
- name: ROUGE-LSUM
type: rouge
value: 35.2431
verified: true
- name: loss
type: loss
value: 2.2001051902770996
verified: true
- name: gen_len
type: gen_len
value: 133.8541
verified: true
Model Trained Using AutoTrain
- Problem type: Summarization
- Model ID: 1217846144
- CO2 Emissions (in grams): 3198.3977
Validation Metrics
- Loss: 2.449
- Rouge1: 38.839
- Rouge2: 10.865
- RougeL: 21.994
- RougeLsum: 33.794
- Gen Len: 120.994
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/L-macc/autotrain-Biomedical_sc_summ-1217846144