fabiancpl commited on
Commit
4943c7f
·
1 Parent(s): 771d73b

Pushing model, tokenizer and model card

Browse files
README.md ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: mit
4
+ language:
5
+ - en
6
+ metrics:
7
+ - f1
8
+ - precision
9
+ - recall
10
+ base_model:
11
+ - gpt2-medium
12
+ pipeline_tag: text-classification
13
+ ---
14
+
15
+ # GPT-2 medium for classifying code comments (multi-label)
16
+
17
+ This model classifies comments in Python code as 'usage', 'parameters', 'developmentNotes', 'expand' or 'summary'.
18
+
19
+ - **Developed by:** Fabian C. Peña, Steffen Herbold
20
+ - **Finetuned from:** [gpt2-medium](https://huggingface.co/gpt2-medium)
21
+ - **Replication kit:** [https://github.com/aieng-lab/senlp-benchmark](https://github.com/aieng-lab/senlp-benchmark)
22
+ - **Language:** English
23
+ - **License:** MIT
24
+
25
+ ## Citation
26
+
27
+ ```
28
+ @misc{pena2025benchmark,
29
+ author = {Fabian Peña and Steffen Herbold},
30
+ title = {Evaluating Large Language Models on Non-Code Software Engineering Tasks},
31
+ year = {2025}
32
+ }
33
+ ```
config.json ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "gpt2-medium",
3
+ "activation_function": "gelu_new",
4
+ "architectures": [
5
+ "GPT2ForSequenceClassification"
6
+ ],
7
+ "attn_pdrop": 0.1,
8
+ "bos_token_id": 50256,
9
+ "embd_pdrop": 0.1,
10
+ "eos_token_id": 50256,
11
+ "id2label": {
12
+ "0": "LABEL_0",
13
+ "1": "LABEL_1",
14
+ "2": "LABEL_2",
15
+ "3": "LABEL_3",
16
+ "4": "LABEL_4"
17
+ },
18
+ "initializer_range": 0.02,
19
+ "label2id": {
20
+ "LABEL_0": 0,
21
+ "LABEL_1": 1,
22
+ "LABEL_2": 2,
23
+ "LABEL_3": 3,
24
+ "LABEL_4": 4
25
+ },
26
+ "layer_norm_epsilon": 1e-05,
27
+ "model_type": "gpt2",
28
+ "n_ctx": 1024,
29
+ "n_embd": 1024,
30
+ "n_head": 16,
31
+ "n_inner": null,
32
+ "n_layer": 24,
33
+ "n_positions": 1024,
34
+ "n_special": 0,
35
+ "pad_token_id": 50256,
36
+ "predict_special_tokens": true,
37
+ "problem_type": "multi_label_classification",
38
+ "reorder_and_upcast_attn": false,
39
+ "resid_pdrop": 0.1,
40
+ "scale_attn_by_inverse_layer_idx": false,
41
+ "scale_attn_weights": true,
42
+ "summary_activation": null,
43
+ "summary_first_dropout": 0.1,
44
+ "summary_proj_to_labels": true,
45
+ "summary_type": "cls_index",
46
+ "summary_use_proj": true,
47
+ "task_specific_params": {
48
+ "text-generation": {
49
+ "do_sample": true,
50
+ "max_length": 50
51
+ }
52
+ },
53
+ "torch_dtype": "bfloat16",
54
+ "transformers_version": "4.48.3",
55
+ "use_cache": true,
56
+ "vocab_size": 50257
57
+ }
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:dd9c311bd251b7d1f71b874d0dcefed1954ff57f605ed41a21633f1d48e8d695
3
+ size 709686984
special_tokens_map.json ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ {
2
+ "bos_token": "<|endoftext|>",
3
+ "eos_token": "<|endoftext|>",
4
+ "unk_token": "<|endoftext|>"
5
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "added_tokens_decoder": {
4
+ "50256": {
5
+ "content": "<|endoftext|>",
6
+ "lstrip": false,
7
+ "normalized": true,
8
+ "rstrip": false,
9
+ "single_word": false,
10
+ "special": true
11
+ }
12
+ },
13
+ "bos_token": "<|endoftext|>",
14
+ "clean_up_tokenization_spaces": false,
15
+ "eos_token": "<|endoftext|>",
16
+ "extra_special_tokens": {},
17
+ "model_max_length": 1024,
18
+ "tokenizer_class": "GPT2Tokenizer",
19
+ "unk_token": "<|endoftext|>"
20
+ }
vocab.json ADDED
The diff for this file is too large to render. See raw diff