kasparas12 commited on
Commit
d787edd
·
verified ·
1 Parent(s): daf1799

ModernBERT fine-tuning complete

Browse files
Files changed (4) hide show
  1. README.md +73 -0
  2. config.json +105 -0
  3. model.safetensors +3 -0
  4. training_args.bin +3 -0
README.md ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: apache-2.0
4
+ base_model: answerdotai/ModernBERT-base
5
+ tags:
6
+ - generated_from_trainer
7
+ metrics:
8
+ - accuracy
9
+ - f1
10
+ model-index:
11
+ - name: modernbert-web3-classification
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
+ # modernbert-web3-classification
19
+
20
+ This model is a fine-tuned version of [answerdotai/ModernBERT-base](https://huggingface.co/answerdotai/ModernBERT-base) on the None dataset.
21
+ It achieves the following results on the evaluation set:
22
+ - Loss: 2.2032
23
+ - Accuracy: 0.7110
24
+ - F1: 0.6925
25
+
26
+ ## Model description
27
+
28
+ More information needed
29
+
30
+ ## Intended uses & limitations
31
+
32
+ More information needed
33
+
34
+ ## Training and evaluation data
35
+
36
+ More information needed
37
+
38
+ ## Training procedure
39
+
40
+ ### Training hyperparameters
41
+
42
+ The following hyperparameters were used during training:
43
+ - learning_rate: 2e-05
44
+ - train_batch_size: 32
45
+ - eval_batch_size: 64
46
+ - seed: 42
47
+ - gradient_accumulation_steps: 2
48
+ - total_train_batch_size: 64
49
+ - optimizer: Use 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: 20
52
+
53
+ ### Training results
54
+
55
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 |
56
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|:------:|
57
+ | 3.3409 | 1.0 | 681 | 1.3014 | 0.5764 | 0.5315 |
58
+ | 2.4615 | 2.0 | 1362 | 1.1848 | 0.6244 | 0.5946 |
59
+ | 1.2474 | 3.0 | 2043 | 1.1272 | 0.7007 | 0.6732 |
60
+ | 0.4366 | 4.0 | 2724 | 1.3125 | 0.7129 | 0.6896 |
61
+ | 0.2036 | 5.0 | 3405 | 1.4978 | 0.7158 | 0.6990 |
62
+ | 0.027 | 6.0 | 4086 | 1.7242 | 0.7116 | 0.6997 |
63
+ | 0.0179 | 7.0 | 4767 | 1.8611 | 0.7269 | 0.7133 |
64
+ | 0.0155 | 8.0 | 5448 | 2.1055 | 0.7031 | 0.6825 |
65
+ | 0.0093 | 9.0 | 6129 | 2.2032 | 0.7110 | 0.6925 |
66
+
67
+
68
+ ### Framework versions
69
+
70
+ - Transformers 4.50.3
71
+ - Pytorch 2.6.0+cu124
72
+ - Datasets 3.5.0
73
+ - Tokenizers 0.21.1
config.json ADDED
@@ -0,0 +1,105 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "ModernBertForSequenceClassification"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": 50281,
8
+ "classifier_activation": "gelu",
9
+ "classifier_bias": false,
10
+ "classifier_dropout": 0.0,
11
+ "classifier_pooling": "cls",
12
+ "cls_token_id": 50281,
13
+ "decoder_bias": true,
14
+ "deterministic_flash_attn": false,
15
+ "embedding_dropout": 0.0,
16
+ "eos_token_id": 50282,
17
+ "global_attn_every_n_layers": 3,
18
+ "global_rope_theta": 160000.0,
19
+ "gradient_checkpointing": false,
20
+ "hidden_activation": "gelu",
21
+ "hidden_size": 768,
22
+ "id2label": {
23
+ "0": "unknown",
24
+ "1": "ai-agent",
25
+ "2": "desci",
26
+ "3": "depin",
27
+ "4": "memefi",
28
+ "5": "runes",
29
+ "6": "erc314",
30
+ "7": "dn404",
31
+ "8": "erc404",
32
+ "9": "rwa",
33
+ "10": "ordinals",
34
+ "11": "inscriptions",
35
+ "12": "ai",
36
+ "13": "socialfi",
37
+ "14": "tool",
38
+ "15": "gamblefi",
39
+ "16": "memecoin",
40
+ "17": "automation",
41
+ "18": "stablecoin",
42
+ "19": "other",
43
+ "20": "infrastructure",
44
+ "21": "metaverse",
45
+ "22": "dao",
46
+ "23": "gamefi",
47
+ "24": "nftfi",
48
+ "25": "defi",
49
+ "26": "nft"
50
+ },
51
+ "initializer_cutoff_factor": 2.0,
52
+ "initializer_range": 0.02,
53
+ "intermediate_size": 1152,
54
+ "label2id": {
55
+ "ai": 12,
56
+ "ai-agent": 1,
57
+ "automation": 17,
58
+ "dao": 22,
59
+ "defi": 25,
60
+ "depin": 3,
61
+ "desci": 2,
62
+ "dn404": 7,
63
+ "erc314": 6,
64
+ "erc404": 8,
65
+ "gamblefi": 15,
66
+ "gamefi": 23,
67
+ "infrastructure": 20,
68
+ "inscriptions": 11,
69
+ "memecoin": 16,
70
+ "memefi": 4,
71
+ "metaverse": 21,
72
+ "nft": 26,
73
+ "nftfi": 24,
74
+ "ordinals": 10,
75
+ "other": 19,
76
+ "runes": 5,
77
+ "rwa": 9,
78
+ "socialfi": 13,
79
+ "stablecoin": 18,
80
+ "tool": 14,
81
+ "unknown": 0
82
+ },
83
+ "layer_norm_eps": 1e-05,
84
+ "local_attention": 128,
85
+ "local_rope_theta": 10000.0,
86
+ "max_position_embeddings": 8192,
87
+ "mlp_bias": false,
88
+ "mlp_dropout": 0.0,
89
+ "model_type": "modernbert",
90
+ "norm_bias": false,
91
+ "norm_eps": 1e-05,
92
+ "num_attention_heads": 12,
93
+ "num_hidden_layers": 22,
94
+ "pad_token_id": 50283,
95
+ "position_embedding_type": "absolute",
96
+ "problem_type": "single_label_classification",
97
+ "reference_compile": true,
98
+ "repad_logits_with_grad": false,
99
+ "sep_token_id": 50282,
100
+ "sparse_pred_ignore_index": -100,
101
+ "sparse_prediction": false,
102
+ "torch_dtype": "float32",
103
+ "transformers_version": "4.50.3",
104
+ "vocab_size": 50368
105
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7fbd0c6975c425a728490a580973747504cc9fac860057e134fc9934fe5127ae
3
+ size 598516692
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3845c05056871b3cdf085eb3e0ce588e5e789fab7e73d778f56f009926694063
3
+ size 5368