agomberto commited on
Commit
3f9aba2
1 Parent(s): 8e0bca5

Model save

Browse files
README.md CHANGED
@@ -1,5 +1,6 @@
1
  ---
2
- base_model: yiyanghkust/finbert-fls
 
3
  tags:
4
  - generated_from_trainer
5
  model-index:
@@ -12,9 +13,9 @@ should probably proofread and complete it, then remove this comment. -->
12
 
13
  # my_fancy_model
14
 
15
- This model is a fine-tuned version of [yiyanghkust/finbert-fls](https://huggingface.co/yiyanghkust/finbert-fls) on an unknown dataset.
16
  It achieves the following results on the evaluation set:
17
- - Loss: 0.8892
18
 
19
  ## Model description
20
 
@@ -45,8 +46,8 @@ The following hyperparameters were used during training:
45
 
46
  | Training Loss | Epoch | Step | Validation Loss |
47
  |:-------------:|:-----:|:----:|:---------------:|
48
- | No log | 1.0 | 7 | 0.9168 |
49
- | No log | 2.0 | 14 | 0.8892 |
50
 
51
 
52
  ### Framework versions
 
1
  ---
2
+ license: apache-2.0
3
+ base_model: distilbert/distilbert-base-uncased
4
  tags:
5
  - generated_from_trainer
6
  model-index:
 
13
 
14
  # my_fancy_model
15
 
16
+ This model is a fine-tuned version of [distilbert/distilbert-base-uncased](https://huggingface.co/distilbert/distilbert-base-uncased) on an unknown dataset.
17
  It achieves the following results on the evaluation set:
18
+ - Loss: 0.4907
19
 
20
  ## Model description
21
 
 
46
 
47
  | Training Loss | Epoch | Step | Validation Loss |
48
  |:-------------:|:-----:|:----:|:---------------:|
49
+ | No log | 1.0 | 7 | 0.4933 |
50
+ | No log | 2.0 | 14 | 0.4907 |
51
 
52
 
53
  ### Framework versions
config.json CHANGED
@@ -1,37 +1,25 @@
1
  {
2
- "_name_or_path": "yiyanghkust/finbert-fls",
 
3
  "architectures": [
4
- "BertForSequenceClassification"
5
  ],
6
- "attention_probs_dropout_prob": 0.1,
7
- "classifier_dropout": null,
8
- "gradient_checkpointing": false,
9
- "hidden_act": "gelu",
10
- "hidden_dropout_prob": 0.1,
11
- "hidden_size": 768,
12
- "id2label": {
13
- "0": "Not FLS",
14
- "1": "Non-specific FLS",
15
- "2": "Specific FLS"
16
- },
17
  "initializer_range": 0.02,
18
- "intermediate_size": 3072,
19
- "label2id": {
20
- "Non-specific FLS": 1,
21
- "Not FLS": 0,
22
- "Specific FLS": 2
23
- },
24
- "layer_norm_eps": 1e-12,
25
  "max_position_embeddings": 512,
26
- "model_type": "bert",
27
- "num_attention_heads": 12,
28
- "num_hidden_layers": 12,
29
  "pad_token_id": 0,
30
- "position_embedding_type": "absolute",
31
  "problem_type": "single_label_classification",
 
 
 
 
32
  "torch_dtype": "float32",
33
  "transformers_version": "4.38.2",
34
- "type_vocab_size": 2,
35
- "use_cache": true,
36
- "vocab_size": 30873
37
  }
 
1
  {
2
+ "_name_or_path": "distilbert/distilbert-base-uncased",
3
+ "activation": "gelu",
4
  "architectures": [
5
+ "DistilBertForSequenceClassification"
6
  ],
7
+ "attention_dropout": 0.1,
8
+ "dim": 768,
9
+ "dropout": 0.1,
10
+ "hidden_dim": 3072,
 
 
 
 
 
 
 
11
  "initializer_range": 0.02,
 
 
 
 
 
 
 
12
  "max_position_embeddings": 512,
13
+ "model_type": "distilbert",
14
+ "n_heads": 12,
15
+ "n_layers": 6,
16
  "pad_token_id": 0,
 
17
  "problem_type": "single_label_classification",
18
+ "qa_dropout": 0.1,
19
+ "seq_classif_dropout": 0.2,
20
+ "sinusoidal_pos_embds": false,
21
+ "tie_weights_": true,
22
  "torch_dtype": "float32",
23
  "transformers_version": "4.38.2",
24
+ "vocab_size": 30522
 
 
25
  }
evaluation_report.json ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "0": {
3
+ "precision": 0.7205882352941176,
4
+ "recall": 0.8032786885245902,
5
+ "f1-score": 0.7596899224806202,
6
+ "support": 61.0
7
+ },
8
+ "1": {
9
+ "precision": 0.625,
10
+ "recall": 0.5128205128205128,
11
+ "f1-score": 0.5633802816901409,
12
+ "support": 39.0
13
+ },
14
+ "accuracy": 0.69,
15
+ "macro avg": {
16
+ "precision": 0.6727941176470589,
17
+ "recall": 0.6580496006725515,
18
+ "f1-score": 0.6615351020853806,
19
+ "support": 100.0
20
+ },
21
+ "weighted avg": {
22
+ "precision": 0.6833088235294117,
23
+ "recall": 0.69,
24
+ "f1-score": 0.6831291625723332,
25
+ "support": 100.0
26
+ }
27
+ }
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:ce410972ea7b8b4331d14ae05f474f38ae47dda3452c467b3707e4bd4b49e30f
3
- size 439039996
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ec3d9d8da48972921b1f7421cec164719ca1b8e9372149c40daf8f5da257d8b6
3
+ size 267832560
tokenizer.json CHANGED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json CHANGED
@@ -8,7 +8,7 @@
8
  "single_word": false,
9
  "special": true
10
  },
11
- "2": {
12
  "content": "[UNK]",
13
  "lstrip": false,
14
  "normalized": false,
@@ -16,7 +16,7 @@
16
  "single_word": false,
17
  "special": true
18
  },
19
- "3": {
20
  "content": "[CLS]",
21
  "lstrip": false,
22
  "normalized": false,
@@ -24,7 +24,7 @@
24
  "single_word": false,
25
  "special": true
26
  },
27
- "4": {
28
  "content": "[SEP]",
29
  "lstrip": false,
30
  "normalized": false,
@@ -32,7 +32,7 @@
32
  "single_word": false,
33
  "special": true
34
  },
35
- "5": {
36
  "content": "[MASK]",
37
  "lstrip": false,
38
  "normalized": false,
@@ -43,15 +43,13 @@
43
  },
44
  "clean_up_tokenization_spaces": true,
45
  "cls_token": "[CLS]",
46
- "do_basic_tokenize": true,
47
  "do_lower_case": true,
48
  "mask_token": "[MASK]",
49
  "model_max_length": 1000000000000000019884624838656,
50
- "never_split": null,
51
  "pad_token": "[PAD]",
52
  "sep_token": "[SEP]",
53
  "strip_accents": null,
54
  "tokenize_chinese_chars": true,
55
- "tokenizer_class": "BertTokenizer",
56
  "unk_token": "[UNK]"
57
  }
 
8
  "single_word": false,
9
  "special": true
10
  },
11
+ "100": {
12
  "content": "[UNK]",
13
  "lstrip": false,
14
  "normalized": false,
 
16
  "single_word": false,
17
  "special": true
18
  },
19
+ "101": {
20
  "content": "[CLS]",
21
  "lstrip": false,
22
  "normalized": false,
 
24
  "single_word": false,
25
  "special": true
26
  },
27
+ "102": {
28
  "content": "[SEP]",
29
  "lstrip": false,
30
  "normalized": false,
 
32
  "single_word": false,
33
  "special": true
34
  },
35
+ "103": {
36
  "content": "[MASK]",
37
  "lstrip": false,
38
  "normalized": false,
 
43
  },
44
  "clean_up_tokenization_spaces": true,
45
  "cls_token": "[CLS]",
 
46
  "do_lower_case": true,
47
  "mask_token": "[MASK]",
48
  "model_max_length": 1000000000000000019884624838656,
 
49
  "pad_token": "[PAD]",
50
  "sep_token": "[SEP]",
51
  "strip_accents": null,
52
  "tokenize_chinese_chars": true,
53
+ "tokenizer_class": "DistilBertTokenizer",
54
  "unk_token": "[UNK]"
55
  }
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:9e16bdafd3627cef8d379918048882bd0dca5ece55f00090dc9ac9f56b518d54
3
  size 4984
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:455187f5fd122b9776f18c65dc3e1c1a293babd5d5418037f9c25194c5b75bbc
3
  size 4984
vocab.txt CHANGED
The diff for this file is too large to render. See raw diff