Instructions to use grenmon/bart-large-finetuned-summarization with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use grenmon/bart-large-finetuned-summarization 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="grenmon/bart-large-finetuned-summarization")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("grenmon/bart-large-finetuned-summarization") model = AutoModelForSeq2SeqLM.from_pretrained("grenmon/bart-large-finetuned-summarization", device_map="auto") - Notebooks
- Google Colab
- Kaggle
|
Download README.md from grenmon/bart-large-finetuned-summarization: direct link, hf CLI and curl.
- Browser
- Download file 1.9 kB
-
https://huggingface.co/grenmon/bart-large-finetuned-summarization/resolve/main/README.md
- Command line
-
hf download hf://grenmon/bart-large-finetuned-summarization/README.md
-
curl -L -o README.md https://huggingface.co/grenmon/bart-large-finetuned-summarization/resolve/main/README.md
1.9 kB
| license: apache-2.0 | |
| tags: | |
| - summarization | |
| - generated_from_trainer | |
| metrics: | |
| - rouge | |
| model-index: | |
| - name: bart-large-finetuned-summarization | |
| results: [] | |
| <!-- This model card has been generated automatically according to the information the Trainer had access to. You | |
| should probably proofread and complete it, then remove this comment. --> | |
| # bart-large-finetuned-summarization | |
| This model is a fine-tuned version of [facebook/bart-large](https://huggingface.co/facebook/bart-large) on an unknown dataset. | |
| It achieves the following results on the evaluation set: | |
| - Loss: 1.1841 | |
| - Rouge1: 32.6763 | |
| - Rouge2: 23.1598 | |
| - Rougel: 31.2322 | |
| - Rougelsum: 32.278 | |
| ## Model description | |
| More information needed | |
| ## Intended uses & limitations | |
| More information needed | |
| ## Training and evaluation data | |
| More information needed | |
| ## Training procedure | |
| ### Training hyperparameters | |
| The following hyperparameters were used during training: | |
| - learning_rate: 5.6e-05 | |
| - train_batch_size: 1 | |
| - eval_batch_size: 1 | |
| - seed: 42 | |
| - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08 | |
| - lr_scheduler_type: linear | |
| - num_epochs: 5 | |
| ### Training results | |
| | Training Loss | Epoch | Step | Validation Loss | Rouge1 | Rouge2 | Rougel | Rougelsum | | |
| |:-------------:|:-----:|:----:|:---------------:|:-------:|:-------:|:-------:|:---------:| | |
| | 1.7048 | 1.0 | 308 | 1.1916 | 32.0296 | 21.6931 | 30.2623 | 31.1959 | | |
| | 1.1153 | 2.0 | 616 | 1.2054 | 30.7076 | 21.7771 | 29.3115 | 29.9377 | | |
| | 0.78 | 3.0 | 924 | 1.1096 | 32.4164 | 22.494 | 31.0367 | 31.8135 | | |
| | 0.5335 | 4.0 | 1232 | 1.1547 | 33.2561 | 23.6119 | 32.1371 | 32.591 | | |
| | 0.361 | 5.0 | 1540 | 1.1841 | 32.6763 | 23.1598 | 31.2322 | 32.278 | | |
| ### Framework versions | |
| - Transformers 4.28.0 | |
| - Pytorch 2.0.0+cu118 | |
| - Datasets 2.12.0 | |
| - Tokenizers 0.13.3 | |