EricAI03 commited on
Commit
4661832
·
verified ·
1 Parent(s): 8806a47

Model save

Browse files
Files changed (6) hide show
  1. README.md +59 -1
  2. config.json +51 -0
  3. model.safetensors +3 -0
  4. tokenizer.json +0 -0
  5. tokenizer_config.json +17 -0
  6. training_args.bin +3 -0
README.md CHANGED
@@ -1,3 +1,61 @@
1
  ---
2
- license: apache-2.0
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ library_name: transformers
3
+ license: mit
4
+ base_model: roberta-base
5
+ tags:
6
+ - generated_from_trainer
7
+ model-index:
8
+ - name: math_token_classification
9
+ results: []
10
  ---
11
+
12
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
13
+ should probably proofread and complete it, then remove this comment. -->
14
+
15
+ # math_token_classification
16
+
17
+ This model is a fine-tuned version of [roberta-base](https://huggingface.co/roberta-base) on an unknown dataset.
18
+ It achieves the following results on the evaluation set:
19
+ - Loss: 0.2459
20
+
21
+ ## Model description
22
+
23
+ More information needed
24
+
25
+ ## Intended uses & limitations
26
+
27
+ More information needed
28
+
29
+ ## Training and evaluation data
30
+
31
+ More information needed
32
+
33
+ ## Training procedure
34
+
35
+ ### Training hyperparameters
36
+
37
+ The following hyperparameters were used during training:
38
+ - learning_rate: 3e-05
39
+ - train_batch_size: 16
40
+ - eval_batch_size: 16
41
+ - seed: 42
42
+ - optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
43
+ - lr_scheduler_type: linear
44
+ - num_epochs: 3
45
+ - mixed_precision_training: Native AMP
46
+
47
+ ### Training results
48
+
49
+ | Training Loss | Epoch | Step | Validation Loss |
50
+ |:-------------:|:-----:|:----:|:---------------:|
51
+ | 1.4177 | 1.0 | 83 | 0.3656 |
52
+ | 0.4853 | 2.0 | 166 | 0.2629 |
53
+ | 0.2995 | 3.0 | 249 | 0.2459 |
54
+
55
+
56
+ ### Framework versions
57
+
58
+ - Transformers 5.16.1
59
+ - Pytorch 2.11.0+cu128
60
+ - Datasets 4.8.5
61
+ - Tokenizers 0.23.1
config.json ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_cross_attention": false,
3
+ "architectures": [
4
+ "RobertaForTokenClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": 0,
8
+ "classifier_dropout": null,
9
+ "dtype": "float32",
10
+ "eos_token_id": 2,
11
+ "hidden_act": "gelu",
12
+ "hidden_dropout_prob": 0.1,
13
+ "hidden_size": 768,
14
+ "id2label": {
15
+ "-100": "SPECIAL_TOKEN",
16
+ "0": "O",
17
+ "1": "B-ALGEBRA",
18
+ "2": "I-ALGEBRA",
19
+ "3": "B-CALCULUS",
20
+ "4": "I-CALCULUS",
21
+ "5": "B-GEOMETRY",
22
+ "6": "I-GEOMETRY",
23
+ "7": "B-TRIGONOMETRY",
24
+ "8": "I-TRIGONOMETRY"
25
+ },
26
+ "initializer_range": 0.02,
27
+ "intermediate_size": 3072,
28
+ "is_decoder": false,
29
+ "label2id": {
30
+ "B-ALGEBRA": 1,
31
+ "B-CALCULUS": 3,
32
+ "B-GEOMETRY": 5,
33
+ "B-TRIGONOMETRY": 7,
34
+ "I-ALGEBRA": 2,
35
+ "I-CALCULUS": 4,
36
+ "I-GEOMETRY": 6,
37
+ "I-TRIGONOMETRY": 8,
38
+ "O": 0
39
+ },
40
+ "layer_norm_eps": 1e-05,
41
+ "max_position_embeddings": 514,
42
+ "model_type": "roberta",
43
+ "num_attention_heads": 12,
44
+ "num_hidden_layers": 12,
45
+ "pad_token_id": 1,
46
+ "tie_word_embeddings": true,
47
+ "transformers_version": "5.16.1",
48
+ "type_vocab_size": 1,
49
+ "use_cache": false,
50
+ "vocab_size": 50265
51
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:768e54d0330794f5e508204dcdbcba2043808cacb5f14fe66bd1300ae965e09a
3
+ size 496274848
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "backend": "tokenizers",
4
+ "bos_token": "<s>",
5
+ "cls_token": "<s>",
6
+ "eos_token": "</s>",
7
+ "errors": "replace",
8
+ "is_local": false,
9
+ "local_files_only": false,
10
+ "mask_token": "<mask>",
11
+ "model_max_length": 512,
12
+ "pad_token": "<pad>",
13
+ "sep_token": "</s>",
14
+ "tokenizer_class": "RobertaTokenizer",
15
+ "trim_offsets": true,
16
+ "unk_token": "<unk>"
17
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dd60ea97b38a4623de45aa4a7e25eba5b5a79a4f2a0e6f22336cfa15d569d3c7
3
+ size 5265