Instructions to use Vailla-Rohit/bart-base-finetuned-samsum with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Vailla-Rohit/bart-base-finetuned-samsum with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Vailla-Rohit/bart-base-finetuned-samsum") model = AutoModelForSeq2SeqLM.from_pretrained("Vailla-Rohit/bart-base-finetuned-samsum", device_map="auto") - Notebooks
- Google Colab
- Kaggle
|
Download README.md from Vailla-Rohit/bart-base-finetuned-samsum: direct link, hf CLI and curl.
- Browser
- Download file 1.94 kB
-
https://huggingface.co/Vailla-Rohit/bart-base-finetuned-samsum/resolve/main/README.md
- Command line
-
hf download hf://Vailla-Rohit/bart-base-finetuned-samsum/README.md
-
curl -L -o README.md https://huggingface.co/Vailla-Rohit/bart-base-finetuned-samsum/resolve/main/README.md
1.94 kB
| license: apache-2.0 | |
| tags: | |
| - generated_from_trainer | |
| datasets: | |
| - samsum | |
| metrics: | |
| - rouge | |
| model-index: | |
| - name: test-dialogue-summarization | |
| results: | |
| - task: | |
| name: Sequence-to-sequence Language Modeling | |
| type: text2text-generation | |
| dataset: | |
| name: samsum | |
| type: samsum | |
| config: samsum | |
| split: validation | |
| args: samsum | |
| metrics: | |
| - name: Rouge1 | |
| type: rouge | |
| value: 48.0348 | |
| <!-- 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. --> | |
| # test-dialogue-summarization | |
| This model is a fine-tuned version of [facebook/bart-base](https://huggingface.co/facebook/bart-base) on the samsum dataset. | |
| It achieves the following results on the evaluation set: | |
| - Loss: 1.5507 | |
| - Rouge1: 48.0348 | |
| - Rouge2: 24.8215 | |
| - Rougel: 40.5048 | |
| - Rougelsum: 44.3467 | |
| - Gen Len: 18.1638 | |
| ## 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: 9e-06 | |
| - train_batch_size: 16 | |
| - eval_batch_size: 16 | |
| - seed: 42 | |
| - gradient_accumulation_steps: 2 | |
| - total_train_batch_size: 32 | |
| - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08 | |
| - lr_scheduler_type: linear | |
| - num_epochs: 1 | |
| - mixed_precision_training: Native AMP | |
| ### Training results | |
| | Training Loss | Epoch | Step | Validation Loss | Rouge1 | Rouge2 | Rougel | Rougelsum | Gen Len | | |
| |:-------------:|:-----:|:----:|:---------------:|:-------:|:-------:|:-------:|:---------:|:-------:| | |
| | No log | 1.0 | 460 | 1.5507 | 48.0348 | 24.8215 | 40.5048 | 44.3467 | 18.1638 | | |
| ### Framework versions | |
| - Transformers 4.28.1 | |
| - Pytorch 2.0.0+cu118 | |
| - Datasets 2.12.0 | |
| - Tokenizers 0.13.3 | |