PeetPedro commited on
Commit
e764151
·
verified ·
1 Parent(s): 94960bd

v2: DoRA + NEFTune — SOTA fine-tuning techniques

Browse files
README.md CHANGED
@@ -1,53 +1,207 @@
1
  ---
2
- license: apache-2.0
3
  base_model: Qwen/Qwen2.5-7B-Instruct
4
- tags: [loop-engineering, orchestrator, function-calling, kompress, fine-tuned]
5
- language: [en]
 
 
 
 
6
  ---
7
 
8
- # kompress-superpower-orchestrator
9
 
10
- LoRA fine-tune of Qwen2.5-7B-Instruct on 117 conversation pairs encoding all 17 kompress experiment outcomes. A loop engineering agent that designs experiments, diagnoses failures, spawns sub-agents, and decides next actions.
11
 
12
- ## Superpowers
13
 
14
- | Capability | Example |
15
- |---|---|
16
- | Experiment design | "Try GLM-5.2 as teacher" → spawns training script |
17
- | Failure diagnosis | heretic=0.878 → "v15 dilution pattern, reduce pairs" |
18
- | Council decisions | Review metrics → SHIP/RETRAIN/PIVOT |
19
- | Sub-agent spawning | spawn_train(), spawn_eval(), spawn_label() |
20
- | Budget awareness | Knows costs: $0.13/run, $0.15/version |
21
 
22
- ## Usage
23
 
24
- ```python
25
- from transformers import AutoModelForCausalLM, AutoTokenizer
26
- from peft import PeftModel
27
 
28
- base = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-7B-Instruct")
29
- model = PeftModel.from_pretrained(base, "PeetPedro/kompress-superpower-orchestrator")
30
- tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen2.5-7B-Instruct")
31
 
32
- messages = [{"role": "system", "content": "You are kompress-superpower-orchestrator..."},
33
- {"role": "user", "content": "My model regressed to 0.878. What happened?"}]
34
- inputs = tokenizer.apply_chat_template(messages, return_tensors="pt")
35
- outputs = model.generate(inputs, max_new_tokens=200)
36
- print(tokenizer.decode(outputs[0]))
37
- ```
38
 
39
- ## Training
40
 
41
- - Base: Qwen/Qwen2.5-7B-Instruct
42
- - Method: LoRA (r=16, alpha=32, 4-bit quantized)
43
- - Data: 117 pairs (diagnosis, planning, council, spawn, multi-turn)
44
- - Epochs: 3, batch=1, grad_accum=16
45
- - Hardware: RTX 4090 24GB
46
- - Cost: ~$0.30
 
47
 
48
- ## Links
49
 
50
- - [LoopKit](https://github.com/peterlodri-sec/loopkit)
51
- - [Paper](https://kompress.vaked.dev)
52
- - [Models](https://huggingface.co/PeetPedro)
53
- - [Blog](https://pocoo.vaked.dev)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
 
2
  base_model: Qwen/Qwen2.5-7B-Instruct
3
+ library_name: peft
4
+ pipeline_tag: text-generation
5
+ tags:
6
+ - base_model:adapter:Qwen/Qwen2.5-7B-Instruct
7
+ - lora
8
+ - transformers
9
  ---
10
 
11
+ # Model Card for Model ID
12
 
13
+ <!-- Provide a quick summary of what the model is/does. -->
14
 
 
15
 
 
 
 
 
 
 
 
16
 
17
+ ## Model Details
18
 
19
+ ### Model Description
 
 
20
 
21
+ <!-- Provide a longer summary of what this model is. -->
 
 
22
 
 
 
 
 
 
 
23
 
 
24
 
25
+ - **Developed by:** [More Information Needed]
26
+ - **Funded by [optional]:** [More Information Needed]
27
+ - **Shared by [optional]:** [More Information Needed]
28
+ - **Model type:** [More Information Needed]
29
+ - **Language(s) (NLP):** [More Information Needed]
30
+ - **License:** [More Information Needed]
31
+ - **Finetuned from model [optional]:** [More Information Needed]
32
 
33
+ ### Model Sources [optional]
34
 
35
+ <!-- Provide the basic links for the model. -->
36
+
37
+ - **Repository:** [More Information Needed]
38
+ - **Paper [optional]:** [More Information Needed]
39
+ - **Demo [optional]:** [More Information Needed]
40
+
41
+ ## Uses
42
+
43
+ <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
44
+
45
+ ### Direct Use
46
+
47
+ <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
48
+
49
+ [More Information Needed]
50
+
51
+ ### Downstream Use [optional]
52
+
53
+ <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
54
+
55
+ [More Information Needed]
56
+
57
+ ### Out-of-Scope Use
58
+
59
+ <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
60
+
61
+ [More Information Needed]
62
+
63
+ ## Bias, Risks, and Limitations
64
+
65
+ <!-- This section is meant to convey both technical and sociotechnical limitations. -->
66
+
67
+ [More Information Needed]
68
+
69
+ ### Recommendations
70
+
71
+ <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
72
+
73
+ Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
74
+
75
+ ## How to Get Started with the Model
76
+
77
+ Use the code below to get started with the model.
78
+
79
+ [More Information Needed]
80
+
81
+ ## Training Details
82
+
83
+ ### Training Data
84
+
85
+ <!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
86
+
87
+ [More Information Needed]
88
+
89
+ ### Training Procedure
90
+
91
+ <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
92
+
93
+ #### Preprocessing [optional]
94
+
95
+ [More Information Needed]
96
+
97
+
98
+ #### Training Hyperparameters
99
+
100
+ - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
101
+
102
+ #### Speeds, Sizes, Times [optional]
103
+
104
+ <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
105
+
106
+ [More Information Needed]
107
+
108
+ ## Evaluation
109
+
110
+ <!-- This section describes the evaluation protocols and provides the results. -->
111
+
112
+ ### Testing Data, Factors & Metrics
113
+
114
+ #### Testing Data
115
+
116
+ <!-- This should link to a Dataset Card if possible. -->
117
+
118
+ [More Information Needed]
119
+
120
+ #### Factors
121
+
122
+ <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
123
+
124
+ [More Information Needed]
125
+
126
+ #### Metrics
127
+
128
+ <!-- These are the evaluation metrics being used, ideally with a description of why. -->
129
+
130
+ [More Information Needed]
131
+
132
+ ### Results
133
+
134
+ [More Information Needed]
135
+
136
+ #### Summary
137
+
138
+
139
+
140
+ ## Model Examination [optional]
141
+
142
+ <!-- Relevant interpretability work for the model goes here -->
143
+
144
+ [More Information Needed]
145
+
146
+ ## Environmental Impact
147
+
148
+ <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
149
+
150
+ Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
151
+
152
+ - **Hardware Type:** [More Information Needed]
153
+ - **Hours used:** [More Information Needed]
154
+ - **Cloud Provider:** [More Information Needed]
155
+ - **Compute Region:** [More Information Needed]
156
+ - **Carbon Emitted:** [More Information Needed]
157
+
158
+ ## Technical Specifications [optional]
159
+
160
+ ### Model Architecture and Objective
161
+
162
+ [More Information Needed]
163
+
164
+ ### Compute Infrastructure
165
+
166
+ [More Information Needed]
167
+
168
+ #### Hardware
169
+
170
+ [More Information Needed]
171
+
172
+ #### Software
173
+
174
+ [More Information Needed]
175
+
176
+ ## Citation [optional]
177
+
178
+ <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
179
+
180
+ **BibTeX:**
181
+
182
+ [More Information Needed]
183
+
184
+ **APA:**
185
+
186
+ [More Information Needed]
187
+
188
+ ## Glossary [optional]
189
+
190
+ <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
191
+
192
+ [More Information Needed]
193
+
194
+ ## More Information [optional]
195
+
196
+ [More Information Needed]
197
+
198
+ ## Model Card Authors [optional]
199
+
200
+ [More Information Needed]
201
+
202
+ ## Model Card Contact
203
+
204
+ [More Information Needed]
205
+ ### Framework versions
206
+
207
+ - PEFT 0.19.1
adapter_config.json CHANGED
@@ -32,10 +32,10 @@
32
  "target_modules": [
33
  "gate_proj",
34
  "k_proj",
35
- "o_proj",
36
  "down_proj",
37
- "q_proj",
38
  "v_proj",
 
 
39
  "up_proj"
40
  ],
41
  "target_parameters": null,
 
32
  "target_modules": [
33
  "gate_proj",
34
  "k_proj",
 
35
  "down_proj",
 
36
  "v_proj",
37
+ "q_proj",
38
+ "o_proj",
39
  "up_proj"
40
  ],
41
  "target_parameters": null,
adapter_model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:f4a3546838eb459d13fc37245abd6d572b688eb31e4045175fb49aecfbe32cc2
3
  size 161533192
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2cab4c4025e41df8215900312e699d75f4175d1ba1bbbc1a955c39a3d3a239aa
3
  size 161533192
checkpoint-16/adapter_config.json CHANGED
@@ -32,10 +32,10 @@
32
  "target_modules": [
33
  "gate_proj",
34
  "k_proj",
35
- "o_proj",
36
  "down_proj",
37
- "q_proj",
38
  "v_proj",
 
 
39
  "up_proj"
40
  ],
41
  "target_parameters": null,
 
32
  "target_modules": [
33
  "gate_proj",
34
  "k_proj",
 
35
  "down_proj",
 
36
  "v_proj",
37
+ "q_proj",
38
+ "o_proj",
39
  "up_proj"
40
  ],
41
  "target_parameters": null,
checkpoint-16/adapter_model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:f4a3546838eb459d13fc37245abd6d572b688eb31e4045175fb49aecfbe32cc2
3
  size 161533192
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:52726be5857dc7a7ac7510192129093bcef1dbd41d471fb6461c6a9d248e2d46
3
  size 161533192
checkpoint-16/optimizer.pt CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:dffe85358a56f9eafb8a69560333faf95f2a1dce3c42d10ba7e59b6bfd9be72c
3
  size 323290986
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a4f392b8e8e5f98c904a5843e05ea22663eaab70499b2a5dd41d128fee520804
3
  size 323290986
checkpoint-16/rng_state.pth CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:726dedbc444bd9ae44665d03965d12f9d92cdd0352fe94c005193019f4da4b9b
3
  size 14244
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:50cd113d0d731506eaf822d5f415b2d8404667eb75feef4f5a841894617ef8a2
3
  size 14244
checkpoint-16/trainer_state.json CHANGED
@@ -11,23 +11,23 @@
11
  "log_history": [
12
  {
13
  "epoch": 0.6837606837606838,
14
- "grad_norm": NaN,
15
  "learning_rate": 0.00018181818181818183,
16
- "loss": 82848627.2,
17
  "step": 5
18
  },
19
  {
20
  "epoch": 1.2735042735042734,
21
- "grad_norm": NaN,
22
  "learning_rate": 0.00013636363636363637,
23
- "loss": 0.0,
24
  "step": 10
25
  },
26
  {
27
  "epoch": 1.9572649572649574,
28
- "grad_norm": NaN,
29
  "learning_rate": 9.090909090909092e-05,
30
- "loss": 0.0,
31
  "step": 15
32
  }
33
  ],
 
11
  "log_history": [
12
  {
13
  "epoch": 0.6837606837606838,
14
+ "grad_norm": 53.48320007324219,
15
  "learning_rate": 0.00018181818181818183,
16
+ "loss": 4.9544,
17
  "step": 5
18
  },
19
  {
20
  "epoch": 1.2735042735042734,
21
+ "grad_norm": 4.736619472503662,
22
  "learning_rate": 0.00013636363636363637,
23
+ "loss": 2.6259,
24
  "step": 10
25
  },
26
  {
27
  "epoch": 1.9572649572649574,
28
+ "grad_norm": 1.7082300186157227,
29
  "learning_rate": 9.090909090909092e-05,
30
+ "loss": 1.8993,
31
  "step": 15
32
  }
33
  ],
checkpoint-16/training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:b9c45766993abc07f2bf597d5ce77ff87ed6d2c5ecae06346b4418b22047886e
3
  size 5432
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2d9e255defec3516d8ebde307401143e8fcd12e96ac03441b97b1dd37d594ccd
3
  size 5432
checkpoint-24/adapter_config.json CHANGED
@@ -32,10 +32,10 @@
32
  "target_modules": [
33
  "gate_proj",
34
  "k_proj",
35
- "o_proj",
36
  "down_proj",
37
- "q_proj",
38
  "v_proj",
 
 
39
  "up_proj"
40
  ],
41
  "target_parameters": null,
 
32
  "target_modules": [
33
  "gate_proj",
34
  "k_proj",
 
35
  "down_proj",
 
36
  "v_proj",
37
+ "q_proj",
38
+ "o_proj",
39
  "up_proj"
40
  ],
41
  "target_parameters": null,
checkpoint-24/adapter_model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:f4a3546838eb459d13fc37245abd6d572b688eb31e4045175fb49aecfbe32cc2
3
  size 161533192
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2cab4c4025e41df8215900312e699d75f4175d1ba1bbbc1a955c39a3d3a239aa
3
  size 161533192
checkpoint-24/optimizer.pt CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:889f0fe7d602adbc77a94d52e0a535b419ac34268e83b74473831630872812ba
3
  size 323290986
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ef588c92d181ca76f4b970c431b80ae2e7545aec5df49d61844d092abf926003
3
  size 323290986
checkpoint-24/rng_state.pth CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:dad97a0dee0c1f944c886a1e7a0a7b6279f7f49d94e03a32a6d66fe3d084e433
3
  size 14244
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c754afa2065829681202b4dc3f8a574989f9d9cf05fb1d65f0adcfd29d9d90aa
3
  size 14244
checkpoint-24/trainer_state.json CHANGED
@@ -11,30 +11,30 @@
11
  "log_history": [
12
  {
13
  "epoch": 0.6837606837606838,
14
- "grad_norm": NaN,
15
  "learning_rate": 0.00018181818181818183,
16
- "loss": 82848627.2,
17
  "step": 5
18
  },
19
  {
20
  "epoch": 1.2735042735042734,
21
- "grad_norm": NaN,
22
  "learning_rate": 0.00013636363636363637,
23
- "loss": 0.0,
24
  "step": 10
25
  },
26
  {
27
  "epoch": 1.9572649572649574,
28
- "grad_norm": NaN,
29
  "learning_rate": 9.090909090909092e-05,
30
- "loss": 0.0,
31
  "step": 15
32
  },
33
  {
34
  "epoch": 2.547008547008547,
35
- "grad_norm": NaN,
36
  "learning_rate": 4.545454545454546e-05,
37
- "loss": 0.0,
38
  "step": 20
39
  }
40
  ],
 
11
  "log_history": [
12
  {
13
  "epoch": 0.6837606837606838,
14
+ "grad_norm": 53.48320007324219,
15
  "learning_rate": 0.00018181818181818183,
16
+ "loss": 4.9544,
17
  "step": 5
18
  },
19
  {
20
  "epoch": 1.2735042735042734,
21
+ "grad_norm": 4.736619472503662,
22
  "learning_rate": 0.00013636363636363637,
23
+ "loss": 2.6259,
24
  "step": 10
25
  },
26
  {
27
  "epoch": 1.9572649572649574,
28
+ "grad_norm": 1.7082300186157227,
29
  "learning_rate": 9.090909090909092e-05,
30
+ "loss": 1.8993,
31
  "step": 15
32
  },
33
  {
34
  "epoch": 2.547008547008547,
35
+ "grad_norm": 11.703311920166016,
36
  "learning_rate": 4.545454545454546e-05,
37
+ "loss": 1.663,
38
  "step": 20
39
  }
40
  ],
checkpoint-24/training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:b9c45766993abc07f2bf597d5ce77ff87ed6d2c5ecae06346b4418b22047886e
3
  size 5432
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2d9e255defec3516d8ebde307401143e8fcd12e96ac03441b97b1dd37d594ccd
3
  size 5432
checkpoint-8/adapter_config.json CHANGED
@@ -32,10 +32,10 @@
32
  "target_modules": [
33
  "gate_proj",
34
  "k_proj",
35
- "o_proj",
36
  "down_proj",
37
- "q_proj",
38
  "v_proj",
 
 
39
  "up_proj"
40
  ],
41
  "target_parameters": null,
 
32
  "target_modules": [
33
  "gate_proj",
34
  "k_proj",
 
35
  "down_proj",
 
36
  "v_proj",
37
+ "q_proj",
38
+ "o_proj",
39
  "up_proj"
40
  ],
41
  "target_parameters": null,
checkpoint-8/adapter_model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:f4a3546838eb459d13fc37245abd6d572b688eb31e4045175fb49aecfbe32cc2
3
  size 161533192
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fa0d916d7a5de385a89b0f29e545a7c3c49b2a3214d5bf032603a00987655301
3
  size 161533192
checkpoint-8/optimizer.pt CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:0501e7030f7a101b4114ca5636b80856143f4291026218b444b7c8c149c42056
3
  size 323290986
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e5999fdbbc2a60ce4a58a6e28a2e96b16bd672584b5c6f9a8b2ae5998e2dc360
3
  size 323290986
checkpoint-8/rng_state.pth CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:3ae79878a3656b2d8499ac32775fc885b0f83ece442eb8f20cb0480fd565d799
3
  size 14244
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c0b9528e9c605e59e52c0586a19ac86cd35670d5344caec3a2319908fdb7aef5
3
  size 14244
checkpoint-8/trainer_state.json CHANGED
@@ -11,9 +11,9 @@
11
  "log_history": [
12
  {
13
  "epoch": 0.6837606837606838,
14
- "grad_norm": NaN,
15
  "learning_rate": 0.00018181818181818183,
16
- "loss": 82848627.2,
17
  "step": 5
18
  }
19
  ],
 
11
  "log_history": [
12
  {
13
  "epoch": 0.6837606837606838,
14
+ "grad_norm": 53.48320007324219,
15
  "learning_rate": 0.00018181818181818183,
16
+ "loss": 4.9544,
17
  "step": 5
18
  }
19
  ],
checkpoint-8/training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:b9c45766993abc07f2bf597d5ce77ff87ed6d2c5ecae06346b4418b22047886e
3
  size 5432
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2d9e255defec3516d8ebde307401143e8fcd12e96ac03441b97b1dd37d594ccd
3
  size 5432