Ali Munaf commited on
Commit
5ecafff
·
verified ·
1 Parent(s): bf386c5

LoRA adapter, tokenizer, model card and evaluation results

Browse files
Files changed (6) hide show
  1. README.md +31 -27
  2. adapter_config.json +3 -3
  3. adapter_model.safetensors +1 -1
  4. eval_results.json +72 -62
  5. loss_curve.png +0 -0
  6. split.json +115 -201
README.md CHANGED
@@ -22,7 +22,7 @@ A LoRA adapter for [Qwen/Qwen2.5-0.5B-Instruct](https://huggingface.co/Qwen/Qwen
22
  [bernabepuente/python-instruction-dataset](https://huggingface.co/datasets/bernabepuente/python-instruction-dataset) dataset to answer Python questions: writing code from instructions,
23
  explaining concepts, and fixing bugs.
24
 
25
- **This is a practical learning project, not a state-of-the-art coding model.** It's a 0.5B-parameter model trained on about 329 examples.
26
  Larger coding models (e.g. Qwen2.5-Coder) will do much better. Always run and test the code it produces.
27
 
28
  ## How to use
@@ -31,7 +31,7 @@ Larger coding models (e.g. Qwen2.5-Coder) will do much better. Always run and te
31
  from peft import AutoPeftModelForCausalLM
32
  from transformers import AutoTokenizer
33
 
34
- repo = "<this repo id>"
35
  model = AutoPeftModelForCausalLM.from_pretrained(repo, torch_dtype="auto", device_map="auto")
36
  tokenizer = AutoTokenizer.from_pretrained(repo)
37
 
@@ -51,24 +51,27 @@ To merge the weights into a standalone model: `model.merge_and_unload().save_pre
51
 
52
  * Source: `bernabepuente/python-instruction-dataset`, 462 rows. Fields used: `instruction`, optional `input` (non-empty in only 10 cleaned rows), and `output`.
53
  **The `thought` field was not used.**
54
- * Cleaning (421 rows kept): dropped 6 empty/very short outputs,
55
- 22 truncated outputs (unbalanced code fences), 13 outputs
56
- whose `python` code blocks fail `ast.parse`, and 0 exact duplicates.
 
 
 
57
  * Split (seed 42): instructions were clustered by word overlap (Jaccard ≥ 0.6) so that paraphrased questions never straddle splits, giving
58
- train 329 / validation 43 / test 49 rows. The exact `row_id`s are in `split.json`.
59
  * **Topic coverage is narrow** (keyword counts on cleaned instructions):
60
 
61
  | Topic | Examples |
62
  |---|---|
63
- | exceptions / errors | 100 |
64
- | web (FastAPI/Flask/Django) | 96 |
65
- | pandas / DataFrames | 89 |
66
- | logging / monitoring | 75 |
67
- | Docker / deployment | 64 |
68
  | async / asyncio | 2 |
69
  | debugging / fixing bugs | 2 |
70
- | testing | 2 |
71
  | decorators | 1 |
 
72
  | type hints | 0 |
73
 
74
  Async, decorators, type hints and debugging are barely represented, so the fine-tune can't have learned much about them from this data.
@@ -80,8 +83,8 @@ Check its terms before reusing this adapter commercially.
80
  LoRA (r=16, alpha=32, dropout=0.05) on all attention and MLP projections. Loss only on assistant tokens.
81
  lr 0.0001 (cosine, warmup 0.05), effective batch
82
  16, up to 3 epochs with early stopping on validation loss
83
- (best checkpoint kept: eval loss 1.4719 after 63 steps).
84
- Max length 1536 tokens, fp16 mixed precision on Tesla T4, 3.0 min.
85
  Software: torch 2.11.0+cu130, transformers 4.57.1, peft 0.17.1, datasets 4.8.5.
86
 
87
  ![loss curve](loss_curve.png)
@@ -92,23 +95,24 @@ Base = the same model with the adapter disabled. Greedy decoding, same prompts.
92
 
93
  | Metric | Base | Fine-tuned |
94
  |---|---|---|
95
- | Test loss on reference answers ↓ | 1.302 | 1.109 |
96
- | Test perplexity ↓ | 3.68 | 3.03 |
97
- | ROUGE-L F1 vs reference ↑ | 0.158 | 0.369 |
98
- | Generated `python` blocks that parse ↑ | 100.0% | 100.0% |
99
- | Answers finished within token limit ↑ | 14.3% | 95.9% |
100
- | Mean answer length (chars) | 2089 | 447 |
101
- | **Executable benchmark (pass@1, greedy)** ↑ | 9/16 | 8/16 |
102
- | &nbsp;&nbsp;type hints | 0/2 | 2/2 |
 
103
  | &nbsp;&nbsp;decorators | 2/2 | 0/2 |
104
- | &nbsp;&nbsp;async | 0/2 | 1/2 |
105
  | &nbsp;&nbsp;pandas | 2/3 | 2/3 |
106
- | &nbsp;&nbsp;exceptions | 2/2 | 1/2 |
107
  | &nbsp;&nbsp;debugging | 1/3 | 0/3 |
108
- | &nbsp;&nbsp;basics | 2/2 | 2/2 |
109
  | General probes, auto-checks ↑ | 4/4 | 3/4 |
110
 
111
- * **Test loss / ROUGE-L** use the 49 held-out dataset questions. They measure how closely the model matches the dataset's answers and style, *not* whether the code is correct.
112
  The test questions come from the same narrow topics as training, so they're in-distribution.
113
  * **Executable benchmark**: 16 small hand-written tasks with unit tests (type hints, decorators, async, pandas, exceptions, debugging, basics).
114
  Each task is worth 6.2 points, so a difference of 1–2 tasks is within noise. This is *not* HumanEval/MBPP.
@@ -117,7 +121,7 @@ Base = the same model with the adapter disabled. Greedy decoding, same prompts.
117
 
118
  ## Limitations
119
 
120
- * **Tiny, narrow dataset.** About 329 training examples, concentrated on Docker, pandas, exceptions, logging and web frameworks. Expect little or no improvement on other topics.
121
  * **Small model.** 0.5B parameters. It makes logic errors, invents APIs and package options, and can write code that looks right but isn't. Review and test everything.
122
  * **Unverified references.** The training answers come from a public dataset that wasn't checked for correctness or security. The model may reproduce its mistakes,
123
  e.g. outdated Dockerfile practices.
 
22
  [bernabepuente/python-instruction-dataset](https://huggingface.co/datasets/bernabepuente/python-instruction-dataset) dataset to answer Python questions: writing code from instructions,
23
  explaining concepts, and fixing bugs.
24
 
25
+ **This is a practical learning project, not a state-of-the-art coding model.** It's a 0.5B-parameter model trained on about 259 examples.
26
  Larger coding models (e.g. Qwen2.5-Coder) will do much better. Always run and test the code it produces.
27
 
28
  ## How to use
 
31
  from peft import AutoPeftModelForCausalLM
32
  from transformers import AutoTokenizer
33
 
34
+ repo = "ali4566544/qwen2.5-0.5b-instruct-python-lora"
35
  model = AutoPeftModelForCausalLM.from_pretrained(repo, torch_dtype="auto", device_map="auto")
36
  tokenizer = AutoTokenizer.from_pretrained(repo)
37
 
 
51
 
52
  * Source: `bernabepuente/python-instruction-dataset`, 462 rows. Fields used: `instruction`, optional `input` (non-empty in only 10 cleaned rows), and `output`.
53
  **The `thought` field was not used.**
54
+ * Cleaning (335 rows kept): dropped 6 empty/very short outputs,
55
+ 22 truncated outputs (unbalanced code fences), 61 outputs
56
+ cut off after a trailing `:`, 25 outputs with raw code that couldn't be fenced safely,
57
+ 13 outputs whose `python` code blocks fail `ast.parse`, and
58
+ 0 exact duplicates. In 68 outputs, raw code that
59
+ parses as Python was wrapped in ```` ```python ```` fences.
60
  * Split (seed 42): instructions were clustered by word overlap (Jaccard ≥ 0.6) so that paraphrased questions never straddle splits, giving
61
+ train 259 / validation 42 / test 34 rows. The exact `row_id`s are in `split.json`.
62
  * **Topic coverage is narrow** (keyword counts on cleaned instructions):
63
 
64
  | Topic | Examples |
65
  |---|---|
66
+ | exceptions / errors | 88 |
67
+ | web (FastAPI/Flask/Django) | 77 |
68
+ | pandas / DataFrames | 64 |
69
+ | logging / monitoring | 55 |
70
+ | Docker / deployment | 51 |
71
  | async / asyncio | 2 |
72
  | debugging / fixing bugs | 2 |
 
73
  | decorators | 1 |
74
+ | testing | 1 |
75
  | type hints | 0 |
76
 
77
  Async, decorators, type hints and debugging are barely represented, so the fine-tune can't have learned much about them from this data.
 
83
  LoRA (r=16, alpha=32, dropout=0.05) on all attention and MLP projections. Loss only on assistant tokens.
84
  lr 0.0001 (cosine, warmup 0.05), effective batch
85
  16, up to 3 epochs with early stopping on validation loss
86
+ (best checkpoint kept: eval loss 1.3612 at step 40 of 51).
87
+ Max length 1536 tokens, fp16 mixed precision on Tesla T4, 1.6 min.
88
  Software: torch 2.11.0+cu130, transformers 4.57.1, peft 0.17.1, datasets 4.8.5.
89
 
90
  ![loss curve](loss_curve.png)
 
95
 
96
  | Metric | Base | Fine-tuned |
97
  |---|---|---|
98
+ | Test loss on reference answers ↓ | 1.490 | 1.241 |
99
+ | Test perplexity ↓ | 4.43 | 3.46 |
100
+ | ROUGE-L F1 vs reference ↑ | 0.134 | 0.346 |
101
+ | Answers containing a fenced code block | 76.5% | 38.2% |
102
+ | Generated `python` blocks that parse ↑ | 100.0% of 43 blocks | 100.0% of 12 blocks |
103
+ | Answers finished within token limit ↑ | 29.4% | 100.0% |
104
+ | Mean answer length (chars) | 2023 | 299 |
105
+ | **Executable benchmark (pass@1, greedy)** ↑ | 11/16 | 7/16 |
106
+ | &nbsp;&nbsp;type hints | 2/2 | 2/2 |
107
  | &nbsp;&nbsp;decorators | 2/2 | 0/2 |
108
+ | &nbsp;&nbsp;async | 0/2 | 0/2 |
109
  | &nbsp;&nbsp;pandas | 2/3 | 2/3 |
110
+ | &nbsp;&nbsp;exceptions | 2/2 | 2/2 |
111
  | &nbsp;&nbsp;debugging | 1/3 | 0/3 |
112
+ | &nbsp;&nbsp;basics | 2/2 | 1/2 |
113
  | General probes, auto-checks ↑ | 4/4 | 3/4 |
114
 
115
+ * **Test loss / ROUGE-L** use the 34 held-out dataset questions. They measure how closely the model matches the dataset's answers and style, *not* whether the code is correct.
116
  The test questions come from the same narrow topics as training, so they're in-distribution.
117
  * **Executable benchmark**: 16 small hand-written tasks with unit tests (type hints, decorators, async, pandas, exceptions, debugging, basics).
118
  Each task is worth 6.2 points, so a difference of 1–2 tasks is within noise. This is *not* HumanEval/MBPP.
 
121
 
122
  ## Limitations
123
 
124
+ * **Tiny, narrow dataset.** About 259 training examples, concentrated on Docker, pandas, exceptions, logging and web frameworks. Expect little or no improvement on other topics.
125
  * **Small model.** 0.5B parameters. It makes logic errors, invents APIs and package options, and can write code that looks right but isn't. Review and test everything.
126
  * **Unverified references.** The training answers come from a public dataset that wasn't checked for correctness or security. The model may reproduce its mistakes,
127
  e.g. outdated Dockerfile practices.
adapter_config.json CHANGED
@@ -27,11 +27,11 @@
27
  "target_modules": [
28
  "down_proj",
29
  "gate_proj",
30
- "q_proj",
31
  "v_proj",
32
- "up_proj",
33
  "k_proj",
34
- "o_proj"
35
  ],
36
  "target_parameters": null,
37
  "task_type": "CAUSAL_LM",
 
27
  "target_modules": [
28
  "down_proj",
29
  "gate_proj",
30
+ "o_proj",
31
  "v_proj",
32
+ "q_proj",
33
  "k_proj",
34
+ "up_proj"
35
  ],
36
  "target_parameters": null,
37
  "task_type": "CAUSAL_LM",
adapter_model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:0d434c1a9b5873366c99ba3bbbe24fb7e0d1481a8b55d3ec0b49b230e2cd0903
3
  size 35237104
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4fd68c46616906d89f50ebad0e8e08cca579a1438759fba8036bba27cc0cfaac
3
  size 35237104
eval_results.json CHANGED
@@ -2,22 +2,23 @@
2
  "results": {
3
  "base": {
4
  "test_loss": {
5
- "loss": 1.3017,
6
- "perplexity": 3.676
7
  },
8
  "test_generation": {
9
- "n_prompts": 49,
10
- "rougeL_f1": 0.1579,
11
- "python_blocks": 63,
 
12
  "python_blocks_parse_rate": 1.0,
13
- "finished_rate": 0.1429,
14
- "mean_chars": 2089
15
  },
16
  "exec_benchmark": {
17
- "passed": 9,
18
  "total": 16,
19
  "by_category": {
20
- "type hints": "0/2",
21
  "decorators": "2/2",
22
  "async": "0/2",
23
  "pandas": "2/3",
@@ -28,38 +29,43 @@
28
  },
29
  "general_probes": {
30
  "auto_checks_passed": 4,
31
- "auto_checks_total": 4
 
32
  }
33
  },
34
  "finetuned": {
35
  "test_loss": {
36
- "loss": 1.1089,
37
- "perplexity": 3.031
38
  },
39
  "test_generation": {
40
- "n_prompts": 49,
41
- "rougeL_f1": 0.3686,
42
- "python_blocks": 1,
 
43
  "python_blocks_parse_rate": 1.0,
44
- "finished_rate": 0.9592,
45
- "mean_chars": 447
46
  },
47
  "exec_benchmark": {
48
- "passed": 8,
49
  "total": 16,
50
  "by_category": {
51
  "type hints": "2/2",
52
  "decorators": "0/2",
53
- "async": "1/2",
54
  "pandas": "2/3",
55
- "exceptions": "1/2",
56
  "debugging": "0/3",
57
- "basics": "2/2"
58
  }
59
  },
60
  "general_probes": {
61
  "auto_checks_passed": 3,
62
- "auto_checks_total": 4
 
 
 
63
  }
64
  }
65
  },
@@ -68,16 +74,16 @@
68
  {
69
  "task": "chunk_list",
70
  "category": "type hints",
71
- "passed": false,
72
  "syntax_ok": true,
73
- "error": "ValueError: size must be at least 1"
74
  },
75
  {
76
  "task": "word_frequencies",
77
  "category": "type hints",
78
- "passed": false,
79
  "syntax_ok": true,
80
- "error": "AssertionError: Test case 3 failed"
81
  },
82
  {
83
  "task": "retry",
@@ -105,7 +111,7 @@
105
  "category": "async",
106
  "passed": false,
107
  "syntax_ok": true,
108
- "error": "TypeError: object function can't be used in 'await' expression"
109
  },
110
  {
111
  "task": "average_salary_by_department",
@@ -197,29 +203,29 @@
197
  "task": "retry",
198
  "category": "decorators",
199
  "passed": false,
200
- "syntax_ok": false,
201
- "error": "SyntaxError: f-string: expecting '=', or '!', or ':', or '}'"
202
  },
203
  {
204
  "task": "count_calls",
205
  "category": "decorators",
206
  "passed": false,
207
  "syntax_ok": true,
208
- "error": "AttributeError: 'function' object has no attribute 'calls'"
209
  },
210
  {
211
  "task": "fetch_all",
212
  "category": "async",
213
- "passed": true,
214
  "syntax_ok": true,
215
- "error": ""
216
  },
217
  {
218
  "task": "run_with_timeout",
219
  "category": "async",
220
  "passed": false,
221
  "syntax_ok": true,
222
- "error": "TimeoutError"
223
  },
224
  {
225
  "task": "average_salary_by_department",
@@ -231,16 +237,16 @@
231
  {
232
  "task": "filter_adults",
233
  "category": "pandas",
234
- "passed": true,
235
  "syntax_ok": true,
236
- "error": ""
237
  },
238
  {
239
  "task": "fill_missing_scores",
240
  "category": "pandas",
241
- "passed": false,
242
  "syntax_ok": true,
243
- "error": "AssertionError"
244
  },
245
  {
246
  "task": "safe_divide",
@@ -252,30 +258,30 @@
252
  {
253
  "task": "read_int_from_file",
254
  "category": "exceptions",
255
- "passed": false,
256
  "syntax_ok": true,
257
- "error": "ValueError: invalid literal for int() with base 10: 'abc'"
258
  },
259
  {
260
  "task": "average",
261
  "category": "debugging",
262
  "passed": false,
263
- "syntax_ok": false,
264
- "error": "SyntaxError: invalid syntax"
265
  },
266
  {
267
  "task": "find_max",
268
  "category": "debugging",
269
  "passed": false,
270
- "syntax_ok": false,
271
- "error": "SyntaxError: invalid syntax"
272
  },
273
  {
274
  "task": "add_item",
275
  "category": "debugging",
276
  "passed": false,
277
- "syntax_ok": false,
278
- "error": "SyntaxError: invalid syntax"
279
  },
280
  {
281
  "task": "is_palindrome",
@@ -287,41 +293,44 @@
287
  {
288
  "task": "Point",
289
  "category": "basics",
290
- "passed": true,
291
  "syntax_ok": true,
292
- "error": ""
293
  }
294
  ]
295
  },
296
  "clean_stats": {
297
  "dropped_unbalanced_fence": 22,
298
  "repaired_stray_brace": 1,
 
 
299
  "dropped_empty_or_short": 6,
 
300
  "dropped_python_syntax_error": 13,
301
  "raw_rows": 462,
302
- "clean_rows": 421,
303
  "rows_with_input": 10,
304
- "rows_with_python_block": 39
305
  },
306
  "topic_counts": {
307
  "async / asyncio": 2,
308
  "decorators": 1,
309
  "type hints": 0,
310
  "debugging / fixing bugs": 2,
311
- "pandas / DataFrames": 89,
312
- "exceptions / errors": 100,
313
- "logging / monitoring": 75,
314
- "Docker / deployment": 64,
315
- "web (FastAPI/Flask/Django)": 96,
316
- "testing": 2
317
  },
318
  "split": {
319
  "seed": 42,
320
- "n_clusters": 293,
321
  "sizes": {
322
- "test": 49,
323
- "validation": 43,
324
- "train": 329
325
  },
326
  "method": "Jaccard>=0.6 clustering of instruction words, cluster-level shuffle split"
327
  },
@@ -350,9 +359,10 @@
350
  "max_grad_norm": 1.0,
351
  "eval_steps": 10,
352
  "early_stopping_patience": 3,
353
- "best_eval_loss": 1.4719452857971191,
354
- "steps": 63,
355
- "minutes": 3.0
 
356
  },
357
  "env": {
358
  "python": "3.13.15",
 
2
  "results": {
3
  "base": {
4
  "test_loss": {
5
+ "loss": 1.4896,
6
+ "perplexity": 4.435
7
  },
8
  "test_generation": {
9
+ "n_prompts": 34,
10
+ "rougeL_f1": 0.1339,
11
+ "answers_with_code_block": 0.7647,
12
+ "python_blocks": 43,
13
  "python_blocks_parse_rate": 1.0,
14
+ "finished_rate": 0.2941,
15
+ "mean_chars": 2023
16
  },
17
  "exec_benchmark": {
18
+ "passed": 11,
19
  "total": 16,
20
  "by_category": {
21
+ "type hints": "2/2",
22
  "decorators": "2/2",
23
  "async": "0/2",
24
  "pandas": "2/3",
 
29
  },
30
  "general_probes": {
31
  "auto_checks_passed": 4,
32
+ "auto_checks_total": 4,
33
+ "failed": []
34
  }
35
  },
36
  "finetuned": {
37
  "test_loss": {
38
+ "loss": 1.2407,
39
+ "perplexity": 3.458
40
  },
41
  "test_generation": {
42
+ "n_prompts": 34,
43
+ "rougeL_f1": 0.3456,
44
+ "answers_with_code_block": 0.3824,
45
+ "python_blocks": 12,
46
  "python_blocks_parse_rate": 1.0,
47
+ "finished_rate": 1.0,
48
+ "mean_chars": 299
49
  },
50
  "exec_benchmark": {
51
+ "passed": 7,
52
  "total": 16,
53
  "by_category": {
54
  "type hints": "2/2",
55
  "decorators": "0/2",
56
+ "async": "0/2",
57
  "pandas": "2/3",
58
+ "exceptions": "2/2",
59
  "debugging": "0/3",
60
+ "basics": "1/2"
61
  }
62
  },
63
  "general_probes": {
64
  "auto_checks_passed": 3,
65
+ "auto_checks_total": 4,
66
+ "failed": [
67
+ "What is 17 multiplied by 23? Answer with the number."
68
+ ]
69
  }
70
  }
71
  },
 
74
  {
75
  "task": "chunk_list",
76
  "category": "type hints",
77
+ "passed": true,
78
  "syntax_ok": true,
79
+ "error": ""
80
  },
81
  {
82
  "task": "word_frequencies",
83
  "category": "type hints",
84
+ "passed": true,
85
  "syntax_ok": true,
86
+ "error": ""
87
  },
88
  {
89
  "task": "retry",
 
111
  "category": "async",
112
  "passed": false,
113
  "syntax_ok": true,
114
+ "error": "TimeoutError"
115
  },
116
  {
117
  "task": "average_salary_by_department",
 
203
  "task": "retry",
204
  "category": "decorators",
205
  "passed": false,
206
+ "syntax_ok": true,
207
+ "error": "Exception: Failed after {times} attempts"
208
  },
209
  {
210
  "task": "count_calls",
211
  "category": "decorators",
212
  "passed": false,
213
  "syntax_ok": true,
214
+ "error": "AssertionError"
215
  },
216
  {
217
  "task": "fetch_all",
218
  "category": "async",
219
+ "passed": false,
220
  "syntax_ok": true,
221
+ "error": "SyntaxError: 'await' outside async function"
222
  },
223
  {
224
  "task": "run_with_timeout",
225
  "category": "async",
226
  "passed": false,
227
  "syntax_ok": true,
228
+ "error": "ValueError: a coroutine was expected, got 'fast'"
229
  },
230
  {
231
  "task": "average_salary_by_department",
 
237
  {
238
  "task": "filter_adults",
239
  "category": "pandas",
240
+ "passed": false,
241
  "syntax_ok": true,
242
+ "error": "AssertionError"
243
  },
244
  {
245
  "task": "fill_missing_scores",
246
  "category": "pandas",
247
+ "passed": true,
248
  "syntax_ok": true,
249
+ "error": ""
250
  },
251
  {
252
  "task": "safe_divide",
 
258
  {
259
  "task": "read_int_from_file",
260
  "category": "exceptions",
261
+ "passed": true,
262
  "syntax_ok": true,
263
+ "error": ""
264
  },
265
  {
266
  "task": "average",
267
  "category": "debugging",
268
  "passed": false,
269
+ "syntax_ok": true,
270
+ "error": "ZeroDivisionError: division by zero"
271
  },
272
  {
273
  "task": "find_max",
274
  "category": "debugging",
275
  "passed": false,
276
+ "syntax_ok": true,
277
+ "error": "AssertionError"
278
  },
279
  {
280
  "task": "add_item",
281
  "category": "debugging",
282
  "passed": false,
283
+ "syntax_ok": true,
284
+ "error": "AssertionError"
285
  },
286
  {
287
  "task": "is_palindrome",
 
293
  {
294
  "task": "Point",
295
  "category": "basics",
296
+ "passed": false,
297
  "syntax_ok": true,
298
+ "error": "AssertionError"
299
  }
300
  ]
301
  },
302
  "clean_stats": {
303
  "dropped_unbalanced_fence": 22,
304
  "repaired_stray_brace": 1,
305
+ "repaired_auto_fenced": 68,
306
+ "dropped_truncated_colon": 61,
307
  "dropped_empty_or_short": 6,
308
+ "dropped_unfenced_code": 25,
309
  "dropped_python_syntax_error": 13,
310
  "raw_rows": 462,
311
+ "clean_rows": 335,
312
  "rows_with_input": 10,
313
+ "rows_with_python_block": 100
314
  },
315
  "topic_counts": {
316
  "async / asyncio": 2,
317
  "decorators": 1,
318
  "type hints": 0,
319
  "debugging / fixing bugs": 2,
320
+ "pandas / DataFrames": 64,
321
+ "exceptions / errors": 88,
322
+ "logging / monitoring": 55,
323
+ "Docker / deployment": 51,
324
+ "web (FastAPI/Flask/Django)": 77,
325
+ "testing": 1
326
  },
327
  "split": {
328
  "seed": 42,
329
+ "n_clusters": 244,
330
  "sizes": {
331
+ "test": 34,
332
+ "validation": 42,
333
+ "train": 259
334
  },
335
  "method": "Jaccard>=0.6 clustering of instruction words, cluster-level shuffle split"
336
  },
 
359
  "max_grad_norm": 1.0,
360
  "eval_steps": 10,
361
  "early_stopping_patience": 3,
362
+ "best_eval_loss": 1.3612192869186401,
363
+ "best_step": 40,
364
+ "steps": 51,
365
+ "minutes": 1.6
366
  },
367
  "env": {
368
  "python": "3.13.15",
loss_curve.png CHANGED
split.json CHANGED
@@ -1,170 +1,135 @@
1
  {
2
  "seed": 42,
3
- "n_clusters": 293,
4
  "sizes": {
5
- "test": 49,
6
- "validation": 43,
7
- "train": 329
8
  },
9
  "method": "Jaccard>=0.6 clustering of instruction words, cluster-level shuffle split",
10
  "row_ids": {
11
  "test": [
12
- 2,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
  9,
14
- 24,
15
  26,
16
  28,
 
 
17
  33,
 
18
  38,
19
  41,
20
- 43,
21
  47,
22
  51,
 
23
  56,
24
  62,
 
25
  67,
26
  68,
27
- 127,
28
- 134,
29
- 138,
30
- 148,
31
- 164,
32
- 176,
33
- 179,
34
- 183,
35
- 184,
36
- 185,
37
- 189,
38
- 195,
39
- 198,
40
- 199,
41
- 216,
42
- 221,
43
- 225,
44
- 227,
45
- 241,
46
- 257,
47
- 258,
48
- 259,
49
- 304,
50
- 337,
51
- 339,
52
- 341,
53
- 347,
54
- 366,
55
- 373,
56
- 407,
57
- 416,
58
- 418,
59
- 432,
60
- 448
61
- ],
62
- "validation": [
63
- 11,
64
- 46,
65
- 59,
66
- 63,
67
- 66,
68
- 72,
69
- 78,
70
  94,
71
- 99,
72
- 112,
73
- 120,
74
- 135,
75
- 137,
76
  143,
77
- 144,
78
- 158,
79
- 165,
80
  174,
81
- 181,
82
- 207,
83
- 208,
84
- 209,
85
- 215,
86
- 231,
87
- 246,
88
- 268,
89
- 285,
90
- 289,
91
- 300,
92
- 327,
93
- 329,
94
- 349,
95
- 374,
96
- 377,
97
- 378,
98
- 383,
99
- 399,
100
  405,
101
- 409,
102
  412,
103
- 420,
104
- 430,
105
- 434
106
  ],
107
  "train": [
108
  1,
 
109
  3,
110
  4,
111
  5,
112
- 6,
113
- 8,
114
  10,
 
115
  12,
116
- 13,
117
  14,
118
- 15,
119
- 16,
120
- 17,
121
- 18,
122
- 19,
123
- 20,
124
- 21,
125
- 22,
126
- 23,
127
- 25,
128
- 27,
129
- 29,
130
  30,
131
- 31,
132
  32,
133
- 34,
134
  35,
135
  36,
136
  39,
137
  40,
138
- 42,
139
  45,
140
  48,
141
  50,
142
  52,
143
- 53,
144
  54,
145
- 55,
146
  57,
147
  58,
 
148
  60,
149
  61,
150
- 64,
151
  65,
152
  69,
153
- 70,
154
  71,
 
155
  73,
156
  74,
157
  75,
158
  76,
159
  77,
160
- 79,
161
  80,
162
  81,
163
  82,
164
- 83,
165
  84,
166
- 85,
167
- 86,
168
  87,
169
  88,
170
  89,
@@ -175,48 +140,47 @@
175
  96,
176
  97,
177
  98,
 
178
  100,
179
  101,
180
  102,
181
- 103,
182
- 104,
183
  105,
184
  106,
185
- 109,
186
  110,
187
  111,
 
188
  113,
189
  114,
190
  115,
191
  116,
192
- 118,
193
- 121,
194
  122,
195
- 123,
196
- 124,
197
- 126,
198
  130,
199
  131,
200
  132,
201
  133,
202
- 136,
 
 
 
203
  139,
204
  140,
205
  142,
206
- 145,
207
  146,
208
  147,
 
209
  149,
210
  150,
211
  151,
212
  152,
213
- 153,
214
- 154,
215
  155,
 
216
  159,
217
  160,
218
- 162,
219
  163,
 
 
220
  166,
221
  167,
222
  168,
@@ -226,86 +190,70 @@
226
  172,
227
  173,
228
  175,
229
- 177,
230
  180,
231
- 182,
 
 
232
  187,
233
  188,
 
234
  190,
235
- 191,
236
  192,
237
  193,
238
  194,
239
- 196,
240
- 197,
241
  200,
242
- 201,
243
  202,
244
  203,
245
  204,
246
- 205,
247
- 206,
248
- 210,
249
  211,
250
  212,
251
- 213,
252
  214,
 
253
  217,
254
  218,
255
  219,
256
- 220,
257
  222,
258
  223,
259
  224,
 
260
  226,
261
- 228,
262
- 229,
263
  230,
 
264
  232,
265
- 234,
266
  235,
267
- 237,
268
- 239,
269
- 240,
270
  242,
271
- 243,
272
  245,
273
- 247,
274
- 248,
275
- 249,
276
- 250,
277
- 251,
278
  252,
279
  253,
280
- 254,
281
- 255,
282
- 256,
283
- 260,
284
  261,
285
  262,
286
- 263,
287
  264,
288
  265,
289
  266,
290
  267,
 
291
  269,
292
- 270,
293
  271,
294
  272,
295
  273,
296
  274,
297
- 275,
298
  276,
299
- 277,
300
  278,
301
  279,
302
  280,
303
  281,
304
  283,
305
- 284,
306
- 286,
307
  287,
308
- 288,
309
  290,
310
  291,
311
  292,
@@ -313,57 +261,42 @@
313
  294,
314
  295,
315
  296,
316
- 297,
317
- 298,
318
- 299,
319
- 301,
320
- 302,
321
  303,
 
322
  305,
323
  306,
324
  307,
325
  308,
326
  310,
327
  313,
328
- 314,
329
  316,
330
  318,
331
- 320,
332
- 321,
333
- 322,
334
  323,
335
  324,
336
- 325,
337
- 326,
338
  328,
 
339
  330,
340
  331,
341
- 332,
342
  333,
343
  336,
 
344
  338,
 
345
  340,
346
  342,
347
  343,
348
  344,
349
- 345,
350
- 346,
351
  348,
352
- 350,
353
  351,
354
- 352,
355
- 354,
356
  355,
357
- 356,
358
- 359,
359
  360,
360
  362,
361
  363,
362
  364,
363
  365,
364
  367,
365
- 368,
366
- 369,
367
  370,
368
  371,
369
  372,
@@ -371,46 +304,34 @@
371
  379,
372
  380,
373
  382,
374
- 384,
375
- 385,
376
- 386,
377
- 387,
378
- 388,
379
  389,
380
- 390,
381
  391,
382
- 392,
383
- 393,
384
  394,
385
- 395,
386
- 397,
387
  398,
388
- 400,
389
- 401,
390
- 403,
391
  404,
392
- 406,
393
  408,
 
394
  410,
395
  411,
396
  413,
397
  414,
398
  415,
 
399
  417,
400
  419,
 
401
  421,
402
- 422,
403
- 424,
404
  425,
405
  426,
406
  427,
407
  428,
408
- 429,
409
  431,
410
  433,
 
411
  435,
412
  436,
413
- 437,
414
  438,
415
  439,
416
  440,
@@ -420,20 +341,13 @@
420
  444,
421
  445,
422
  446,
423
- 447,
424
- 449,
425
- 450,
426
  451,
427
- 452,
428
  453,
429
  454,
430
  455,
431
  456,
432
  457,
433
- 458,
434
- 459,
435
- 460,
436
- 461
437
  ]
438
  }
439
  }
 
1
  {
2
  "seed": 42,
3
+ "n_clusters": 244,
4
  "sizes": {
5
+ "test": 34,
6
+ "validation": 42,
7
+ "train": 259
8
  },
9
  "method": "Jaccard>=0.6 clustering of instruction words, cluster-level shuffle split",
10
  "row_ids": {
11
  "test": [
12
+ 27,
13
+ 55,
14
+ 66,
15
+ 85,
16
+ 86,
17
+ 118,
18
+ 145,
19
+ 153,
20
+ 154,
21
+ 184,
22
+ 199,
23
+ 201,
24
+ 205,
25
+ 209,
26
+ 210,
27
+ 213,
28
+ 221,
29
+ 228,
30
+ 260,
31
+ 277,
32
+ 284,
33
+ 321,
34
+ 327,
35
+ 346,
36
+ 354,
37
+ 356,
38
+ 359,
39
+ 366,
40
+ 369,
41
+ 378,
42
+ 386,
43
+ 392,
44
+ 418,
45
+ 459
46
+ ],
47
+ "validation": [
48
+ 6,
49
+ 8,
50
  9,
51
+ 25,
52
  26,
53
  28,
54
+ 29,
55
+ 31,
56
  33,
57
+ 34,
58
  38,
59
  41,
 
60
  47,
61
  51,
62
+ 53,
63
  56,
64
  62,
65
+ 64,
66
  67,
67
  68,
68
+ 83,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
69
  94,
70
+ 109,
71
+ 136,
 
 
 
72
  143,
73
+ 162,
 
 
74
  174,
75
+ 177,
76
+ 182,
77
+ 191,
78
+ 206,
79
+ 234,
80
+ 237,
81
+ 247,
82
+ 248,
83
+ 263,
84
+ 298,
85
+ 403,
 
 
 
 
 
 
 
 
86
  405,
87
+ 406,
88
  412,
89
+ 450
 
 
90
  ],
91
  "train": [
92
  1,
93
+ 2,
94
  3,
95
  4,
96
  5,
 
 
97
  10,
98
+ 11,
99
  12,
 
100
  14,
 
 
 
 
 
 
 
 
 
 
 
 
101
  30,
 
102
  32,
 
103
  35,
104
  36,
105
  39,
106
  40,
107
+ 43,
108
  45,
109
  48,
110
  50,
111
  52,
 
112
  54,
 
113
  57,
114
  58,
115
+ 59,
116
  60,
117
  61,
118
+ 63,
119
  65,
120
  69,
 
121
  71,
122
+ 72,
123
  73,
124
  74,
125
  75,
126
  76,
127
  77,
128
+ 78,
129
  80,
130
  81,
131
  82,
 
132
  84,
 
 
133
  87,
134
  88,
135
  89,
 
140
  96,
141
  97,
142
  98,
143
+ 99,
144
  100,
145
  101,
146
  102,
 
 
147
  105,
148
  106,
 
149
  110,
150
  111,
151
+ 112,
152
  113,
153
  114,
154
  115,
155
  116,
 
 
156
  122,
157
+ 127,
 
 
158
  130,
159
  131,
160
  132,
161
  133,
162
+ 134,
163
+ 135,
164
+ 137,
165
+ 138,
166
  139,
167
  140,
168
  142,
169
+ 144,
170
  146,
171
  147,
172
+ 148,
173
  149,
174
  150,
175
  151,
176
  152,
 
 
177
  155,
178
+ 158,
179
  159,
180
  160,
 
181
  163,
182
+ 164,
183
+ 165,
184
  166,
185
  167,
186
  168,
 
190
  172,
191
  173,
192
  175,
193
+ 176,
194
  180,
195
+ 181,
196
+ 183,
197
+ 185,
198
  187,
199
  188,
200
+ 189,
201
  190,
 
202
  192,
203
  193,
204
  194,
205
+ 195,
206
+ 198,
207
  200,
 
208
  202,
209
  203,
210
  204,
211
+ 207,
212
+ 208,
 
213
  211,
214
  212,
 
215
  214,
216
+ 215,
217
  217,
218
  218,
219
  219,
 
220
  222,
221
  223,
222
  224,
223
+ 225,
224
  226,
225
+ 227,
 
226
  230,
227
+ 231,
228
  232,
 
229
  235,
 
 
 
230
  242,
 
231
  245,
232
+ 246,
 
 
 
 
233
  252,
234
  253,
235
+ 257,
236
+ 258,
 
 
237
  261,
238
  262,
 
239
  264,
240
  265,
241
  266,
242
  267,
243
+ 268,
244
  269,
 
245
  271,
246
  272,
247
  273,
248
  274,
 
249
  276,
 
250
  278,
251
  279,
252
  280,
253
  281,
254
  283,
 
 
255
  287,
256
+ 289,
257
  290,
258
  291,
259
  292,
 
261
  294,
262
  295,
263
  296,
264
+ 300,
 
 
 
 
265
  303,
266
+ 304,
267
  305,
268
  306,
269
  307,
270
  308,
271
  310,
272
  313,
 
273
  316,
274
  318,
 
 
 
275
  323,
276
  324,
 
 
277
  328,
278
+ 329,
279
  330,
280
  331,
 
281
  333,
282
  336,
283
+ 337,
284
  338,
285
+ 339,
286
  340,
287
  342,
288
  343,
289
  344,
 
 
290
  348,
291
+ 349,
292
  351,
 
 
293
  355,
 
 
294
  360,
295
  362,
296
  363,
297
  364,
298
  365,
299
  367,
 
 
300
  370,
301
  371,
302
  372,
 
304
  379,
305
  380,
306
  382,
307
+ 383,
 
 
 
 
308
  389,
 
309
  391,
 
 
310
  394,
 
 
311
  398,
 
 
 
312
  404,
313
+ 407,
314
  408,
315
+ 409,
316
  410,
317
  411,
318
  413,
319
  414,
320
  415,
321
+ 416,
322
  417,
323
  419,
324
+ 420,
325
  421,
 
 
326
  425,
327
  426,
328
  427,
329
  428,
 
330
  431,
331
  433,
332
+ 434,
333
  435,
334
  436,
 
335
  438,
336
  439,
337
  440,
 
341
  444,
342
  445,
343
  446,
 
 
 
344
  451,
 
345
  453,
346
  454,
347
  455,
348
  456,
349
  457,
350
+ 458
 
 
 
351
  ]
352
  }
353
  }