Instructions to use GloriaABK1/mt5-large-finetuned-norwegian with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use GloriaABK1/mt5-large-finetuned-norwegian 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="GloriaABK1/mt5-large-finetuned-norwegian")# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("GloriaABK1/mt5-large-finetuned-norwegian") model = AutoModelForSeq2SeqLM.from_pretrained("GloriaABK1/mt5-large-finetuned-norwegian", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Training complete
Browse files
README.md
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
license: apache-2.0
|
| 4 |
+
base_model: google/mt5-large
|
| 5 |
+
tags:
|
| 6 |
+
- summarization
|
| 7 |
+
- generated_from_trainer
|
| 8 |
+
metrics:
|
| 9 |
+
- rouge
|
| 10 |
+
model-index:
|
| 11 |
+
- name: mt5-large-finetuned-norwegian
|
| 12 |
+
results: []
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 16 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 17 |
+
|
| 18 |
+
# mt5-large-finetuned-norwegian
|
| 19 |
+
|
| 20 |
+
This model is a fine-tuned version of [google/mt5-large](https://huggingface.co/google/mt5-large) on the None dataset.
|
| 21 |
+
It achieves the following results on the evaluation set:
|
| 22 |
+
- Loss: 2.8439
|
| 23 |
+
- Rouge1: 20.3786
|
| 24 |
+
- Rouge2: 9.3936
|
| 25 |
+
- Rougel: 17.7493
|
| 26 |
+
- Rougelsum: 18.6037
|
| 27 |
+
|
| 28 |
+
## Model description
|
| 29 |
+
|
| 30 |
+
More information needed
|
| 31 |
+
|
| 32 |
+
## Intended uses & limitations
|
| 33 |
+
|
| 34 |
+
More information needed
|
| 35 |
+
|
| 36 |
+
## Training and evaluation data
|
| 37 |
+
|
| 38 |
+
More information needed
|
| 39 |
+
|
| 40 |
+
## Training procedure
|
| 41 |
+
|
| 42 |
+
### Training hyperparameters
|
| 43 |
+
|
| 44 |
+
The following hyperparameters were used during training:
|
| 45 |
+
- learning_rate: 5.6e-05
|
| 46 |
+
- train_batch_size: 8
|
| 47 |
+
- eval_batch_size: 8
|
| 48 |
+
- seed: 42
|
| 49 |
+
- optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
| 50 |
+
- lr_scheduler_type: linear
|
| 51 |
+
- num_epochs: 8
|
| 52 |
+
|
| 53 |
+
### Training results
|
| 54 |
+
|
| 55 |
+
| Training Loss | Epoch | Step | Validation Loss | Rouge1 | Rouge2 | Rougel | Rougelsum |
|
| 56 |
+
|:-------------:|:-----:|:----:|:---------------:|:-------:|:-------:|:-------:|:---------:|
|
| 57 |
+
| 9.2094 | 1.0 | 18 | 3.7149 | 16.3818 | 4.3429 | 13.0076 | 13.4039 |
|
| 58 |
+
| 4.1851 | 2.0 | 36 | 3.4349 | 18.7804 | 6.4406 | 15.4037 | 17.0282 |
|
| 59 |
+
| 3.4627 | 3.0 | 54 | 3.1672 | 19.8826 | 9.1029 | 16.2944 | 17.7482 |
|
| 60 |
+
| 3.0208 | 4.0 | 72 | 2.9852 | 20.9577 | 10.0017 | 16.8634 | 18.7444 |
|
| 61 |
+
| 2.7108 | 5.0 | 90 | 2.8552 | 21.0429 | 10.7747 | 18.0074 | 19.1268 |
|
| 62 |
+
| 2.6392 | 6.0 | 108 | 2.7793 | 23.4492 | 11.9814 | 20.2148 | 21.1514 |
|
| 63 |
+
| 2.4402 | 7.0 | 126 | 2.7472 | 21.8771 | 11.9814 | 18.9203 | 19.9279 |
|
| 64 |
+
| 2.4144 | 8.0 | 144 | 2.7253 | 21.0632 | 10.8657 | 19.1266 | 19.6957 |
|
| 65 |
+
|
| 66 |
+
|
| 67 |
+
### Framework versions
|
| 68 |
+
|
| 69 |
+
- Transformers 4.51.3
|
| 70 |
+
- Pytorch 2.5.1+cu124
|
| 71 |
+
- Datasets 3.5.0
|
| 72 |
+
- Tokenizers 0.21.0
|
generation_config.json
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"decoder_start_token_id": 0,
|
| 3 |
+
"eos_token_id": 1,
|
| 4 |
+
"pad_token_id": 0,
|
| 5 |
+
"transformers_version": "4.51.3"
|
| 6 |
+
}
|
runs/Apr19_23-07-00_04e75d34c7fd/events.out.tfevents.1745104545.04e75d34c7fd.13238.1
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e492e2f18cfcf2ed7f0ae7726e1a70e67970682334116f89bab171032e6950b1
|
| 3 |
+
size 1036
|