tag-clf
Browse files- README.md +56 -0
- config.json +93 -0
- merges.txt +0 -0
- model.safetensors +3 -0
- runs/May22_20-01-06_6ad0e15f0760/events.out.tfevents.1716408067.6ad0e15f0760.193.0 +3 -0
- special_tokens_map.json +51 -0
- tokenizer.json +0 -0
- tokenizer_config.json +57 -0
- training_args.bin +3 -0
- vocab.json +0 -0
README.md
ADDED
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: microsoft/codebert-base
|
3 |
+
tags:
|
4 |
+
- generated_from_trainer
|
5 |
+
model-index:
|
6 |
+
- name: tag_clf
|
7 |
+
results: []
|
8 |
+
---
|
9 |
+
|
10 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
11 |
+
should probably proofread and complete it, then remove this comment. -->
|
12 |
+
|
13 |
+
# tag_clf
|
14 |
+
|
15 |
+
This model is a fine-tuned version of [microsoft/codebert-base](https://huggingface.co/microsoft/codebert-base) on an unknown dataset.
|
16 |
+
It achieves the following results on the evaluation set:
|
17 |
+
- Loss: 0.0173
|
18 |
+
|
19 |
+
## Model description
|
20 |
+
|
21 |
+
More information needed
|
22 |
+
|
23 |
+
## Intended uses & limitations
|
24 |
+
|
25 |
+
More information needed
|
26 |
+
|
27 |
+
## Training and evaluation data
|
28 |
+
|
29 |
+
More information needed
|
30 |
+
|
31 |
+
## Training procedure
|
32 |
+
|
33 |
+
### Training hyperparameters
|
34 |
+
|
35 |
+
The following hyperparameters were used during training:
|
36 |
+
- learning_rate: 2e-05
|
37 |
+
- train_batch_size: 8
|
38 |
+
- eval_batch_size: 8
|
39 |
+
- seed: 42
|
40 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
41 |
+
- lr_scheduler_type: linear
|
42 |
+
- num_epochs: 1
|
43 |
+
|
44 |
+
### Training results
|
45 |
+
|
46 |
+
| Training Loss | Epoch | Step | Validation Loss |
|
47 |
+
|:-------------:|:-----:|:----:|:---------------:|
|
48 |
+
| 0.0189 | 1.0 | 3000 | 0.0173 |
|
49 |
+
|
50 |
+
|
51 |
+
### Framework versions
|
52 |
+
|
53 |
+
- Transformers 4.41.0
|
54 |
+
- Pytorch 2.3.0+cu121
|
55 |
+
- Datasets 2.19.1
|
56 |
+
- Tokenizers 0.19.1
|
config.json
ADDED
@@ -0,0 +1,93 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "microsoft/codebert-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 |
+
"hidden_act": "gelu",
|
11 |
+
"hidden_dropout_prob": 0.1,
|
12 |
+
"hidden_size": 768,
|
13 |
+
"id2label": {
|
14 |
+
"0": "2-sat",
|
15 |
+
"1": "binary search",
|
16 |
+
"2": "bitmasks",
|
17 |
+
"3": "brute force",
|
18 |
+
"4": "combinatorics",
|
19 |
+
"5": "constructive algorithms",
|
20 |
+
"6": "data structures",
|
21 |
+
"7": "dfs and similar",
|
22 |
+
"8": "divide and conquer",
|
23 |
+
"9": "dp",
|
24 |
+
"10": "dsu",
|
25 |
+
"11": "expression parsing",
|
26 |
+
"12": "games",
|
27 |
+
"13": "geometry",
|
28 |
+
"14": "graphs",
|
29 |
+
"15": "greedy",
|
30 |
+
"16": "hashing",
|
31 |
+
"17": "implementation",
|
32 |
+
"18": "math",
|
33 |
+
"19": "matrices",
|
34 |
+
"20": "meet-in-the-middle",
|
35 |
+
"21": "none",
|
36 |
+
"22": "number theory",
|
37 |
+
"23": "probabilities",
|
38 |
+
"24": "schedules",
|
39 |
+
"25": "shortest paths",
|
40 |
+
"26": "sortings",
|
41 |
+
"27": "strings",
|
42 |
+
"28": "trees",
|
43 |
+
"29": "two pointers"
|
44 |
+
},
|
45 |
+
"initializer_range": 0.02,
|
46 |
+
"intermediate_size": 3072,
|
47 |
+
"label2id": {
|
48 |
+
"2-sat": 0,
|
49 |
+
"binary search": 1,
|
50 |
+
"bitmasks": 2,
|
51 |
+
"brute force": 3,
|
52 |
+
"combinatorics": 4,
|
53 |
+
"constructive algorithms": 5,
|
54 |
+
"data structures": 6,
|
55 |
+
"dfs and similar": 7,
|
56 |
+
"divide and conquer": 8,
|
57 |
+
"dp": 9,
|
58 |
+
"dsu": 10,
|
59 |
+
"expression parsing": 11,
|
60 |
+
"games": 12,
|
61 |
+
"geometry": 13,
|
62 |
+
"graphs": 14,
|
63 |
+
"greedy": 15,
|
64 |
+
"hashing": 16,
|
65 |
+
"implementation": 17,
|
66 |
+
"math": 18,
|
67 |
+
"matrices": 19,
|
68 |
+
"meet-in-the-middle": 20,
|
69 |
+
"none": 21,
|
70 |
+
"number theory": 22,
|
71 |
+
"probabilities": 23,
|
72 |
+
"schedules": 24,
|
73 |
+
"shortest paths": 25,
|
74 |
+
"sortings": 26,
|
75 |
+
"strings": 27,
|
76 |
+
"trees": 28,
|
77 |
+
"two pointers": 29
|
78 |
+
},
|
79 |
+
"layer_norm_eps": 1e-05,
|
80 |
+
"max_position_embeddings": 514,
|
81 |
+
"model_type": "roberta",
|
82 |
+
"num_attention_heads": 12,
|
83 |
+
"num_hidden_layers": 12,
|
84 |
+
"output_past": true,
|
85 |
+
"pad_token_id": 1,
|
86 |
+
"position_embedding_type": "absolute",
|
87 |
+
"problem_type": "multi_label_classification",
|
88 |
+
"torch_dtype": "float32",
|
89 |
+
"transformers_version": "4.41.0",
|
90 |
+
"type_vocab_size": 1,
|
91 |
+
"use_cache": true,
|
92 |
+
"vocab_size": 50265
|
93 |
+
}
|
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:8bca49a71b790f31546506fdf22c6c51beb2befa539041e397273903c3ccd33b
|
3 |
+
size 498698952
|
runs/May22_20-01-06_6ad0e15f0760/events.out.tfevents.1716408067.6ad0e15f0760.193.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b2c09ed342d78b2b70101c85138b7cad726cfaf831f003119df58767b555f0ab
|
3 |
+
size 8160
|
special_tokens_map.json
ADDED
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": {
|
3 |
+
"content": "<s>",
|
4 |
+
"lstrip": false,
|
5 |
+
"normalized": true,
|
6 |
+
"rstrip": false,
|
7 |
+
"single_word": false
|
8 |
+
},
|
9 |
+
"cls_token": {
|
10 |
+
"content": "<s>",
|
11 |
+
"lstrip": false,
|
12 |
+
"normalized": true,
|
13 |
+
"rstrip": false,
|
14 |
+
"single_word": false
|
15 |
+
},
|
16 |
+
"eos_token": {
|
17 |
+
"content": "</s>",
|
18 |
+
"lstrip": false,
|
19 |
+
"normalized": true,
|
20 |
+
"rstrip": false,
|
21 |
+
"single_word": false
|
22 |
+
},
|
23 |
+
"mask_token": {
|
24 |
+
"content": "<mask>",
|
25 |
+
"lstrip": true,
|
26 |
+
"normalized": false,
|
27 |
+
"rstrip": false,
|
28 |
+
"single_word": false
|
29 |
+
},
|
30 |
+
"pad_token": {
|
31 |
+
"content": "<pad>",
|
32 |
+
"lstrip": false,
|
33 |
+
"normalized": true,
|
34 |
+
"rstrip": false,
|
35 |
+
"single_word": false
|
36 |
+
},
|
37 |
+
"sep_token": {
|
38 |
+
"content": "</s>",
|
39 |
+
"lstrip": false,
|
40 |
+
"normalized": true,
|
41 |
+
"rstrip": false,
|
42 |
+
"single_word": false
|
43 |
+
},
|
44 |
+
"unk_token": {
|
45 |
+
"content": "<unk>",
|
46 |
+
"lstrip": false,
|
47 |
+
"normalized": true,
|
48 |
+
"rstrip": false,
|
49 |
+
"single_word": false
|
50 |
+
}
|
51 |
+
}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_prefix_space": false,
|
3 |
+
"added_tokens_decoder": {
|
4 |
+
"0": {
|
5 |
+
"content": "<s>",
|
6 |
+
"lstrip": false,
|
7 |
+
"normalized": true,
|
8 |
+
"rstrip": false,
|
9 |
+
"single_word": false,
|
10 |
+
"special": true
|
11 |
+
},
|
12 |
+
"1": {
|
13 |
+
"content": "<pad>",
|
14 |
+
"lstrip": false,
|
15 |
+
"normalized": true,
|
16 |
+
"rstrip": false,
|
17 |
+
"single_word": false,
|
18 |
+
"special": true
|
19 |
+
},
|
20 |
+
"2": {
|
21 |
+
"content": "</s>",
|
22 |
+
"lstrip": false,
|
23 |
+
"normalized": true,
|
24 |
+
"rstrip": false,
|
25 |
+
"single_word": false,
|
26 |
+
"special": true
|
27 |
+
},
|
28 |
+
"3": {
|
29 |
+
"content": "<unk>",
|
30 |
+
"lstrip": false,
|
31 |
+
"normalized": true,
|
32 |
+
"rstrip": false,
|
33 |
+
"single_word": false,
|
34 |
+
"special": true
|
35 |
+
},
|
36 |
+
"50264": {
|
37 |
+
"content": "<mask>",
|
38 |
+
"lstrip": true,
|
39 |
+
"normalized": false,
|
40 |
+
"rstrip": false,
|
41 |
+
"single_word": false,
|
42 |
+
"special": true
|
43 |
+
}
|
44 |
+
},
|
45 |
+
"bos_token": "<s>",
|
46 |
+
"clean_up_tokenization_spaces": true,
|
47 |
+
"cls_token": "<s>",
|
48 |
+
"eos_token": "</s>",
|
49 |
+
"errors": "replace",
|
50 |
+
"mask_token": "<mask>",
|
51 |
+
"model_max_length": 512,
|
52 |
+
"pad_token": "<pad>",
|
53 |
+
"sep_token": "</s>",
|
54 |
+
"tokenizer_class": "RobertaTokenizer",
|
55 |
+
"trim_offsets": true,
|
56 |
+
"unk_token": "<unk>"
|
57 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c848197294ca5a6246631297ebbcec7f32f964e78fb62aef98682743f8b86871
|
3 |
+
size 5112
|
vocab.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|