PeytonT commited on
Commit
e59f7ea
·
verified ·
1 Parent(s): 045e4c0

Upload repository_library model package

Browse files
README.md ADDED
@@ -0,0 +1,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: allenai/scibert_scivocab_uncased
3
+ library_name: transformers
4
+ pipeline_tag: text-classification
5
+ tags:
6
+ - bug-localization
7
+ - code
8
+ - r4
9
+ - repositories
10
+ - repository-library
11
+ - research-library
12
+ - t4_repo
13
+ ---
14
+
15
+ # Bug Localization
16
+
17
+ Ranks likely bug locations inside repository content.
18
+
19
+ ## Model Details
20
+
21
+ - Artifact type: full fine-tuned model
22
+ - Base model: `allenai/scibert_scivocab_uncased`
23
+ - Model ID: `R4`
24
+ - Tier: `T4_repo`
25
+ - Local mirror: `/arxiv/models/repository_library/bug-localization`
26
+ - Source checkpoint: `models/checkpoints/R4`
27
+
28
+ This repository is part of the `repository_library` model stack and is mirrored from `/data/repository_library/models/checkpoints` for publication under the `PeytonT` namespace.
29
+
30
+ ## Intended Use
31
+
32
+ - Primary use: Ranks likely bug locations inside repository content.
33
+ - Secondary use: retrieval, ranking, planning, or scientific paper tooling inside the broader Repository Library system, depending on the model family.
34
+ - Out of scope: production safety claims, benchmark claims beyond the bundled experiment config, or use outside the model's narrow training objective without task-specific validation.
35
+
36
+ ## Training Data
37
+
38
+ This package was trained from the following declared datasets or corpus sources:
39
+
40
+ - `source:github_repos`
41
+
42
+ ## Training Procedure
43
+
44
+ - Sources: `github_repos`
45
+ - Input fields: `repo_context, failure_description`
46
+ - Target fields: `bug_location`
47
+ - Max samples: `4000`
48
+ - Precision: `bf16`
49
+ - Objective: `cross_entropy`
50
+ - Batch size: `8`
51
+ - Learning rate: `5e-05`
52
+ - Max source tokens: `512`
53
+ - Max target tokens: `128`
54
+ - Max steps: `1000`
55
+
56
+ ## Evaluation
57
+
58
+ - Declared metrics: `accuracy, macro_f1`
59
+ - Status: local experiment artifact mirrored for release; external benchmark reporting has not been standardized across the full model family yet.
60
+
61
+ ## Usage
62
+
63
+ ```python
64
+ from transformers import AutoModelForSequenceClassification, AutoTokenizer
65
+
66
+ repo_id = "PeytonT/bug-localization"
67
+
68
+ tokenizer = AutoTokenizer.from_pretrained(repo_id)
69
+ model = AutoModelForSequenceClassification.from_pretrained(repo_id)
70
+ ```
71
+
72
+ ## Limitations
73
+
74
+ - These model cards reflect the packaged experiment configs and mirrored checkpoint contents, not an independently audited benchmark sheet.
75
+ - Some training datasets are local corpora or exported shards, so reproducibility may require access to the surrounding Repository Library data pipeline.
76
+ - Models in this stack are narrow components of a larger paper-and-repository system and should be validated on downstream tasks before deployment.
77
+
78
+ ## Project Context
79
+
80
+ Repository Library is a research system for indexing, retrieving, aligning, and reasoning over scientific papers, structured paper content, repositories, and cross-domain links between them.
81
+
82
+ ## Contact
83
+
84
+ Published under `PeytonT` from the local `repository_library` build.
config.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "BertForSequenceClassification"
4
+ ],
5
+ "attention_probs_dropout_prob": 0.1,
6
+ "classifier_dropout": null,
7
+ "dtype": "float32",
8
+ "hidden_act": "gelu",
9
+ "hidden_dropout_prob": 0.1,
10
+ "hidden_size": 768,
11
+ "id2label": {
12
+ "0": "0"
13
+ },
14
+ "initializer_range": 0.02,
15
+ "intermediate_size": 3072,
16
+ "label2id": {
17
+ "0": 0
18
+ },
19
+ "layer_norm_eps": 1e-12,
20
+ "max_position_embeddings": 512,
21
+ "model_type": "bert",
22
+ "num_attention_heads": 12,
23
+ "num_hidden_layers": 12,
24
+ "pad_token_id": 0,
25
+ "position_embedding_type": "absolute",
26
+ "problem_type": "single_label_classification",
27
+ "transformers_version": "4.57.6",
28
+ "type_vocab_size": 2,
29
+ "use_cache": true,
30
+ "vocab_size": 31090
31
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6f51749468b4c4919545963b5570753aeda595f22e32ceb72a2f1f33039d2a65
3
+ size 439703544
special_tokens_map.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": "[CLS]",
3
+ "mask_token": "[MASK]",
4
+ "pad_token": "[PAD]",
5
+ "sep_token": "[SEP]",
6
+ "unk_token": "[UNK]"
7
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "[PAD]",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "101": {
12
+ "content": "[UNK]",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "102": {
20
+ "content": "[CLS]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "103": {
28
+ "content": "[SEP]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "104": {
36
+ "content": "[MASK]",
37
+ "lstrip": false,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ }
43
+ },
44
+ "clean_up_tokenization_spaces": true,
45
+ "cls_token": "[CLS]",
46
+ "do_basic_tokenize": true,
47
+ "do_lower_case": true,
48
+ "extra_special_tokens": {},
49
+ "mask_token": "[MASK]",
50
+ "model_max_length": 1000000000000000019884624838656,
51
+ "never_split": null,
52
+ "pad_token": "[PAD]",
53
+ "sep_token": "[SEP]",
54
+ "strip_accents": null,
55
+ "tokenize_chinese_chars": true,
56
+ "tokenizer_class": "BertTokenizer",
57
+ "unk_token": "[UNK]"
58
+ }
trainer_state.json ADDED
@@ -0,0 +1,183 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_global_step": null,
3
+ "best_metric": null,
4
+ "best_model_checkpoint": null,
5
+ "epoch": 14.492753623188406,
6
+ "eval_steps": 500,
7
+ "global_step": 1000,
8
+ "is_hyper_param_search": false,
9
+ "is_local_process_zero": true,
10
+ "is_world_process_zero": true,
11
+ "log_history": [
12
+ {
13
+ "epoch": 0.7246376811594203,
14
+ "grad_norm": 0.024382874369621277,
15
+ "learning_rate": 2.45e-05,
16
+ "loss": 0.1151,
17
+ "step": 50
18
+ },
19
+ {
20
+ "epoch": 1.4492753623188406,
21
+ "grad_norm": 0.005299532786011696,
22
+ "learning_rate": 4.9500000000000004e-05,
23
+ "loss": 0.0004,
24
+ "step": 100
25
+ },
26
+ {
27
+ "epoch": 2.1739130434782608,
28
+ "grad_norm": 0.0024427291937172413,
29
+ "learning_rate": 4.727777777777778e-05,
30
+ "loss": 0.0001,
31
+ "step": 150
32
+ },
33
+ {
34
+ "epoch": 2.898550724637681,
35
+ "grad_norm": 0.0012963886838406324,
36
+ "learning_rate": 4.4500000000000004e-05,
37
+ "loss": 0.0001,
38
+ "step": 200
39
+ },
40
+ {
41
+ "epoch": 3.6231884057971016,
42
+ "grad_norm": 0.0011170754441991448,
43
+ "learning_rate": 4.172222222222222e-05,
44
+ "loss": 0.0,
45
+ "step": 250
46
+ },
47
+ {
48
+ "epoch": 4.3478260869565215,
49
+ "grad_norm": 0.0009609300759620965,
50
+ "learning_rate": 3.894444444444444e-05,
51
+ "loss": 0.0,
52
+ "step": 300
53
+ },
54
+ {
55
+ "epoch": 5.072463768115942,
56
+ "grad_norm": 0.0007455663289874792,
57
+ "learning_rate": 3.6166666666666674e-05,
58
+ "loss": 0.0,
59
+ "step": 350
60
+ },
61
+ {
62
+ "epoch": 5.797101449275362,
63
+ "grad_norm": 0.0007628346793353558,
64
+ "learning_rate": 3.338888888888889e-05,
65
+ "loss": 0.0,
66
+ "step": 400
67
+ },
68
+ {
69
+ "epoch": 6.521739130434782,
70
+ "grad_norm": 0.0006400482379831374,
71
+ "learning_rate": 3.061111111111111e-05,
72
+ "loss": 0.0,
73
+ "step": 450
74
+ },
75
+ {
76
+ "epoch": 7.246376811594203,
77
+ "grad_norm": 0.0006571674603037536,
78
+ "learning_rate": 2.7833333333333333e-05,
79
+ "loss": 0.0,
80
+ "step": 500
81
+ },
82
+ {
83
+ "epoch": 7.971014492753623,
84
+ "grad_norm": 0.0004984458209946752,
85
+ "learning_rate": 2.5055555555555555e-05,
86
+ "loss": 0.0,
87
+ "step": 550
88
+ },
89
+ {
90
+ "epoch": 8.695652173913043,
91
+ "grad_norm": 0.0005247824592515826,
92
+ "learning_rate": 2.2277777777777778e-05,
93
+ "loss": 0.0,
94
+ "step": 600
95
+ },
96
+ {
97
+ "epoch": 9.420289855072463,
98
+ "grad_norm": 0.0005136411054991186,
99
+ "learning_rate": 1.9500000000000003e-05,
100
+ "loss": 0.0,
101
+ "step": 650
102
+ },
103
+ {
104
+ "epoch": 10.144927536231885,
105
+ "grad_norm": 0.00042652638512663543,
106
+ "learning_rate": 1.6722222222222222e-05,
107
+ "loss": 0.0,
108
+ "step": 700
109
+ },
110
+ {
111
+ "epoch": 10.869565217391305,
112
+ "grad_norm": 0.0003991111880168319,
113
+ "learning_rate": 1.3944444444444446e-05,
114
+ "loss": 0.0,
115
+ "step": 750
116
+ },
117
+ {
118
+ "epoch": 11.594202898550725,
119
+ "grad_norm": 0.00043558661127462983,
120
+ "learning_rate": 1.1166666666666668e-05,
121
+ "loss": 0.0,
122
+ "step": 800
123
+ },
124
+ {
125
+ "epoch": 12.318840579710145,
126
+ "grad_norm": 0.00038388941902667284,
127
+ "learning_rate": 8.38888888888889e-06,
128
+ "loss": 0.0,
129
+ "step": 850
130
+ },
131
+ {
132
+ "epoch": 13.043478260869565,
133
+ "grad_norm": 0.00033727928530424833,
134
+ "learning_rate": 5.611111111111112e-06,
135
+ "loss": 0.0,
136
+ "step": 900
137
+ },
138
+ {
139
+ "epoch": 13.768115942028986,
140
+ "grad_norm": 0.00039866630686447024,
141
+ "learning_rate": 2.8333333333333335e-06,
142
+ "loss": 0.0,
143
+ "step": 950
144
+ },
145
+ {
146
+ "epoch": 14.492753623188406,
147
+ "grad_norm": 0.0003358957765158266,
148
+ "learning_rate": 5.555555555555556e-08,
149
+ "loss": 0.0,
150
+ "step": 1000
151
+ },
152
+ {
153
+ "epoch": 14.492753623188406,
154
+ "step": 1000,
155
+ "total_flos": 2082787114229760.0,
156
+ "train_loss": 0.005802426487207413,
157
+ "train_runtime": 92.609,
158
+ "train_samples_per_second": 86.385,
159
+ "train_steps_per_second": 10.798
160
+ }
161
+ ],
162
+ "logging_steps": 50,
163
+ "max_steps": 1000,
164
+ "num_input_tokens_seen": 0,
165
+ "num_train_epochs": 15,
166
+ "save_steps": 200,
167
+ "stateful_callbacks": {
168
+ "TrainerControl": {
169
+ "args": {
170
+ "should_epoch_stop": false,
171
+ "should_evaluate": false,
172
+ "should_log": false,
173
+ "should_save": true,
174
+ "should_training_stop": true
175
+ },
176
+ "attributes": {}
177
+ }
178
+ },
179
+ "total_flos": 2082787114229760.0,
180
+ "train_batch_size": 8,
181
+ "trial_name": null,
182
+ "trial_params": null
183
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:73c3a461e3ba2faf007cf1e1a4b4dbacf3ad73530048f577026aed3bb7e7730b
3
+ size 5777
vocab.txt ADDED
The diff for this file is too large to render. See raw diff