Model save
Browse files- README.md +68 -0
- config.json +69 -0
- merges.txt +0 -0
- model.safetensors +3 -0
- special_tokens_map.json +15 -0
- tokenizer.json +0 -0
- tokenizer_config.json +15 -0
- training_args.bin +3 -0
- vocab.json +0 -0
README.md
ADDED
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: mit
|
3 |
+
base_model: roberta-base
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
metrics:
|
7 |
+
- f1
|
8 |
+
model-index:
|
9 |
+
- name: roberta-base-goodreads-bookgenres-Description_cls-6e
|
10 |
+
results: []
|
11 |
+
---
|
12 |
+
|
13 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
14 |
+
should probably proofread and complete it, then remove this comment. -->
|
15 |
+
|
16 |
+
# roberta-base-goodreads-bookgenres-Description_cls-6e
|
17 |
+
|
18 |
+
This model is a fine-tuned version of [roberta-base](https://huggingface.co/roberta-base) on an unknown dataset.
|
19 |
+
It achieves the following results on the evaluation set:
|
20 |
+
- Loss: 0.2130
|
21 |
+
- F1: 0.6717
|
22 |
+
|
23 |
+
## Model description
|
24 |
+
|
25 |
+
More information needed
|
26 |
+
|
27 |
+
## Intended uses & limitations
|
28 |
+
|
29 |
+
More information needed
|
30 |
+
|
31 |
+
## Training and evaluation data
|
32 |
+
|
33 |
+
More information needed
|
34 |
+
|
35 |
+
## Training procedure
|
36 |
+
|
37 |
+
### Training hyperparameters
|
38 |
+
|
39 |
+
The following hyperparameters were used during training:
|
40 |
+
- learning_rate: 4e-05
|
41 |
+
- train_batch_size: 64
|
42 |
+
- eval_batch_size: 64
|
43 |
+
- seed: 42
|
44 |
+
- gradient_accumulation_steps: 2
|
45 |
+
- total_train_batch_size: 128
|
46 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-10
|
47 |
+
- lr_scheduler_type: linear
|
48 |
+
- lr_scheduler_warmup_ratio: 0.04
|
49 |
+
- num_epochs: 6.0
|
50 |
+
|
51 |
+
### Training results
|
52 |
+
|
53 |
+
| Training Loss | Epoch | Step | Validation Loss | F1 |
|
54 |
+
|:-------------:|:-----:|:----:|:---------------:|:------:|
|
55 |
+
| 0.3118 | 1.0 | 62 | 0.2885 | 0.3362 |
|
56 |
+
| 0.2676 | 2.0 | 124 | 0.2511 | 0.4882 |
|
57 |
+
| 0.2325 | 3.0 | 186 | 0.2272 | 0.6093 |
|
58 |
+
| 0.2127 | 4.0 | 248 | 0.2181 | 0.6591 |
|
59 |
+
| 0.1978 | 5.0 | 310 | 0.2140 | 0.6686 |
|
60 |
+
| 0.1817 | 6.0 | 372 | 0.2130 | 0.6717 |
|
61 |
+
|
62 |
+
|
63 |
+
### Framework versions
|
64 |
+
|
65 |
+
- Transformers 4.33.3
|
66 |
+
- Pytorch 2.2.0.dev20231001+cu121
|
67 |
+
- Datasets 2.14.5
|
68 |
+
- Tokenizers 0.13.3
|
config.json
ADDED
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "roberta-base",
|
3 |
+
"architectures": [
|
4 |
+
"RobertaForSequenceClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"bos_token_id": 0,
|
8 |
+
"classifier_dropout": null,
|
9 |
+
"eos_token_id": 2,
|
10 |
+
"finetuning_task": "text-classification",
|
11 |
+
"hidden_act": "gelu",
|
12 |
+
"hidden_dropout_prob": 0.1,
|
13 |
+
"hidden_size": 768,
|
14 |
+
"id2label": {
|
15 |
+
"0": "History & Politics",
|
16 |
+
"1": "Health & Medicine",
|
17 |
+
"2": "Mystery & Thriller",
|
18 |
+
"3": "Arts & Design",
|
19 |
+
"4": "Self-Help & Wellness",
|
20 |
+
"5": "Sports & Recreation",
|
21 |
+
"6": "Non-Fiction",
|
22 |
+
"7": "Science Fiction & Fantasy",
|
23 |
+
"8": "Countries & Geography",
|
24 |
+
"9": "Other",
|
25 |
+
"10": "Nature & Environment",
|
26 |
+
"11": "Business & Finance",
|
27 |
+
"12": "Romance",
|
28 |
+
"13": "Philosophy & Religion",
|
29 |
+
"14": "Literature & Fiction",
|
30 |
+
"15": "Science & Technology",
|
31 |
+
"16": "Children & Young Adult",
|
32 |
+
"17": "Food & Cooking"
|
33 |
+
},
|
34 |
+
"initializer_range": 0.02,
|
35 |
+
"intermediate_size": 3072,
|
36 |
+
"label2id": {
|
37 |
+
"Arts & Design": 3,
|
38 |
+
"Business & Finance": 11,
|
39 |
+
"Children & Young Adult": 16,
|
40 |
+
"Countries & Geography": 8,
|
41 |
+
"Food & Cooking": 17,
|
42 |
+
"Health & Medicine": 1,
|
43 |
+
"History & Politics": 0,
|
44 |
+
"Literature & Fiction": 14,
|
45 |
+
"Mystery & Thriller": 2,
|
46 |
+
"Nature & Environment": 10,
|
47 |
+
"Non-Fiction": 6,
|
48 |
+
"Other": 9,
|
49 |
+
"Philosophy & Religion": 13,
|
50 |
+
"Romance": 12,
|
51 |
+
"Science & Technology": 15,
|
52 |
+
"Science Fiction & Fantasy": 7,
|
53 |
+
"Self-Help & Wellness": 4,
|
54 |
+
"Sports & Recreation": 5
|
55 |
+
},
|
56 |
+
"layer_norm_eps": 1e-05,
|
57 |
+
"max_position_embeddings": 514,
|
58 |
+
"model_type": "roberta",
|
59 |
+
"num_attention_heads": 12,
|
60 |
+
"num_hidden_layers": 12,
|
61 |
+
"pad_token_id": 1,
|
62 |
+
"position_embedding_type": "absolute",
|
63 |
+
"problem_type": "multi_label_classification",
|
64 |
+
"torch_dtype": "float32",
|
65 |
+
"transformers_version": "4.33.3",
|
66 |
+
"type_vocab_size": 1,
|
67 |
+
"use_cache": true,
|
68 |
+
"vocab_size": 50265
|
69 |
+
}
|
merges.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e4c520c7abd073c82df56cea22a01dc256096be731a5bda3998f9f2a214a9049
|
3 |
+
size 498662040
|
special_tokens_map.json
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": "<s>",
|
3 |
+
"cls_token": "<s>",
|
4 |
+
"eos_token": "</s>",
|
5 |
+
"mask_token": {
|
6 |
+
"content": "<mask>",
|
7 |
+
"lstrip": true,
|
8 |
+
"normalized": false,
|
9 |
+
"rstrip": false,
|
10 |
+
"single_word": false
|
11 |
+
},
|
12 |
+
"pad_token": "<pad>",
|
13 |
+
"sep_token": "</s>",
|
14 |
+
"unk_token": "<unk>"
|
15 |
+
}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_prefix_space": false,
|
3 |
+
"bos_token": "<s>",
|
4 |
+
"clean_up_tokenization_spaces": true,
|
5 |
+
"cls_token": "<s>",
|
6 |
+
"eos_token": "</s>",
|
7 |
+
"errors": "replace",
|
8 |
+
"mask_token": "<mask>",
|
9 |
+
"model_max_length": 512,
|
10 |
+
"pad_token": "<pad>",
|
11 |
+
"sep_token": "</s>",
|
12 |
+
"tokenizer_class": "RobertaTokenizer",
|
13 |
+
"trim_offsets": true,
|
14 |
+
"unk_token": "<unk>"
|
15 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ffcdde489b8cb6656f86cad05fc0b45b1a8c7061c8dc94ef0ae77c80b51974bd
|
3 |
+
size 4600
|
vocab.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|