Summarization
Transformers
PyTorch
Safetensors
bart
text2text-generation
distilbart
Eval Results (legacy)
Instructions to use DeepNLP-22-23/MLQ-distilbart-bbc with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use DeepNLP-22-23/MLQ-distilbart-bbc 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="DeepNLP-22-23/MLQ-distilbart-bbc")# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("DeepNLP-22-23/MLQ-distilbart-bbc") model = AutoModelForSeq2SeqLM.from_pretrained("DeepNLP-22-23/MLQ-distilbart-bbc", device_map="auto") - Notebooks
- Google Colab
- Kaggle
|
Download README.md from DeepNLP-22-23/MLQ-distilbart-bbc: direct link, hf CLI and curl.
- Browser
- Download file 1.09 kB
-
https://huggingface.co/DeepNLP-22-23/MLQ-distilbart-bbc/resolve/main/README.md
- Command line
-
hf download hf://DeepNLP-22-23/MLQ-distilbart-bbc/README.md
-
curl -L -o README.md https://huggingface.co/DeepNLP-22-23/MLQ-distilbart-bbc/resolve/main/README.md
1.09 kB
metadata
license: apache-2.0
tags:
- distilbart
- summarization
base_model: sshleifer/distilbart-cnn-12-6
model-index:
- name: MLQ-distilbart-bbc
results:
- task:
type: summarization
name: Summarization
dataset:
name: bbc
type: bbc
config: default
split: test
metrics:
- type: rouge
value: 61.43
name: ROUGE-2
verified: false
MLQ-distilbart-bbc
This model is a fine-tuned version of sshleifer/distilbart-cnn-12-6 on the BBC News Summary dataset (https://www.kaggle.com/pariza/bbc-news-summary).
The model has been generated as part of the in-lab practice of Deep NLP course currently held at Politecnico di Torino.
Training parameters:
num_train_epochs=2fp16=Trueper_device_train_batch_size=1warmup_steps=10weight_decay=0.01max_seq_length=100