adimyth commited on
Commit
bfa8af0
·
verified ·
1 Parent(s): 9582804

compass-lora-v2: LoRA r16 on Qwen3.5-4B 851bf6e8 through the verification/direct readouts; calibration fitted on the hard-like split

Browse files
Files changed (5) hide show
  1. README.md +207 -0
  2. adapter_config.json +54 -0
  3. adapter_model.safetensors +3 -0
  4. calibration.json +44 -0
  5. training.json +159 -0
README.md ADDED
@@ -0,0 +1,207 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: Qwen/Qwen3.5-4B
3
+ library_name: peft
4
+ pipeline_tag: text-generation
5
+ tags:
6
+ - base_model:adapter:Qwen/Qwen3.5-4B
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.21.0
adapter_config.json ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alora_invocation_tokens": null,
3
+ "alpha_pattern": {},
4
+ "arrow_config": null,
5
+ "auto_mapping": null,
6
+ "base_model_name_or_path": "Qwen/Qwen3.5-4B",
7
+ "bias": "none",
8
+ "corda_config": null,
9
+ "ensure_weight_tying": false,
10
+ "eva_config": null,
11
+ "exclude_modules": null,
12
+ "fan_in_fan_out": false,
13
+ "inference_mode": true,
14
+ "init_lora_weights": true,
15
+ "kasa_config": null,
16
+ "layer_replication": null,
17
+ "layers_pattern": null,
18
+ "layers_to_transform": null,
19
+ "loftq_config": {},
20
+ "lora_alpha": 32,
21
+ "lora_bias": false,
22
+ "lora_dropout": 0.05,
23
+ "lora_ga_config": null,
24
+ "megatron_config": null,
25
+ "megatron_core": "megatron.core",
26
+ "modules_to_save": null,
27
+ "monteclora_config": null,
28
+ "peft_type": "LORA",
29
+ "peft_version": "0.21.0",
30
+ "qalora_group_size": 16,
31
+ "r": 16,
32
+ "rank_pattern": {},
33
+ "revision": null,
34
+ "target_modules": [
35
+ "up_proj",
36
+ "gate_proj",
37
+ "in_proj_qkv",
38
+ "down_proj",
39
+ "k_proj",
40
+ "q_proj",
41
+ "out_proj",
42
+ "o_proj",
43
+ "in_proj_z",
44
+ "v_proj"
45
+ ],
46
+ "target_parameters": null,
47
+ "task_type": "CAUSAL_LM",
48
+ "trainable_token_indices": null,
49
+ "use_bdlora": null,
50
+ "use_dora": false,
51
+ "use_qalora": false,
52
+ "use_rslora": false,
53
+ "velora_config": null
54
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:108b48a8d3fa65fc02da23bf2a06f1d333c37cfb6c7e9392421230065efb927e
3
+ size 121951008
calibration.json ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "temperatures": {
3
+ "choice": 2.0,
4
+ "score": 2.0,
5
+ "noul": 2.25
6
+ },
7
+ "fitted_on": [
8
+ "dev/splits_v2/calibration-hard.jsonl"
9
+ ],
10
+ "model": "compass-fusion-lora-qwen3.5-4b-compass-prompt-2",
11
+ "readout": "fusion",
12
+ "head": null,
13
+ "fusion_weight": 0.5,
14
+ "n_items": 178,
15
+ "report": {
16
+ "choice": {
17
+ "n": 45,
18
+ "fit_half_T": 0.25,
19
+ "shipped_T": 2.0,
20
+ "held_out_ece_before": 0.0937,
21
+ "held_out_ece_after": 0.0931,
22
+ "held_out_nll_before": 0.5269,
23
+ "held_out_nll_after": 1.2941
24
+ },
25
+ "score": {
26
+ "n": 90,
27
+ "fit_half_T": 2.25,
28
+ "shipped_T": 2.0,
29
+ "held_out_ece_before": 0.0286,
30
+ "held_out_ece_after": 0.0698,
31
+ "held_out_nll_before": 0.0993,
32
+ "held_out_nll_after": 0.1376
33
+ },
34
+ "noul": {
35
+ "n": 43,
36
+ "fit_half_T": 2.0,
37
+ "shipped_T": 2.25,
38
+ "held_out_ece_before": 0.1522,
39
+ "held_out_ece_after": 0.1151,
40
+ "held_out_nll_before": 0.5846,
41
+ "held_out_nll_after": 0.4233
42
+ }
43
+ }
44
+ }
training.json ADDED
@@ -0,0 +1,159 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "args": {
3
+ "train": "dev/splits_v2/train.jsonl",
4
+ "select": "dev/splits_v2/selection.jsonl",
5
+ "out": "release/lora-v2",
6
+ "model_name": "Qwen/Qwen3.5-4B",
7
+ "rank": 16,
8
+ "alpha": 32,
9
+ "lora_dropout": 0.05,
10
+ "lr": 0.0001,
11
+ "weight_decay": 0.01,
12
+ "epochs": 2,
13
+ "accum": 8,
14
+ "fusion": 0.5,
15
+ "ordinal_w": 0.5,
16
+ "perm_w": 0.5,
17
+ "perm_p": 0.5,
18
+ "opaque_p": 0.5,
19
+ "eval_every": 400,
20
+ "patience": 3,
21
+ "max_select": 400,
22
+ "seed": 0
23
+ },
24
+ "n_train": 2150,
25
+ "n_select": 161,
26
+ "best_selection_loss": 0.8873302168802816,
27
+ "best_step": 250,
28
+ "log": [
29
+ {
30
+ "step": 0,
31
+ "seen": 0,
32
+ "loss": 1.336758746236262,
33
+ "acc": 0.7080745341614907,
34
+ "by_family": {
35
+ "adequacy": "7/10",
36
+ "ambiguous": "7/7",
37
+ "policy": "11/13",
38
+ "probability": "29/60",
39
+ "routing": "60/71"
40
+ }
41
+ },
42
+ {
43
+ "step": 50,
44
+ "seen": 400,
45
+ "loss": 1.0610499146397323,
46
+ "acc": 0.8260869565217391,
47
+ "by_family": {
48
+ "adequacy": "6/10",
49
+ "ambiguous": "7/7",
50
+ "policy": "8/13",
51
+ "probability": "47/60",
52
+ "routing": "65/71"
53
+ }
54
+ },
55
+ {
56
+ "step": 100,
57
+ "seen": 800,
58
+ "loss": 1.031379698107586,
59
+ "acc": 0.906832298136646,
60
+ "by_family": {
61
+ "adequacy": "8/10",
62
+ "ambiguous": "7/7",
63
+ "policy": "9/13",
64
+ "probability": "55/60",
65
+ "routing": "67/71"
66
+ }
67
+ },
68
+ {
69
+ "step": 150,
70
+ "seen": 1200,
71
+ "loss": 0.9625220286051789,
72
+ "acc": 0.8757763975155279,
73
+ "by_family": {
74
+ "adequacy": "6/10",
75
+ "ambiguous": "6/7",
76
+ "policy": "10/13",
77
+ "probability": "52/60",
78
+ "routing": "67/71"
79
+ }
80
+ },
81
+ {
82
+ "step": 200,
83
+ "seen": 1600,
84
+ "loss": 0.9321816444499288,
85
+ "acc": 0.9316770186335404,
86
+ "by_family": {
87
+ "adequacy": "9/10",
88
+ "ambiguous": "6/7",
89
+ "policy": "10/13",
90
+ "probability": "60/60",
91
+ "routing": "65/71"
92
+ }
93
+ },
94
+ {
95
+ "step": 250,
96
+ "seen": 2000,
97
+ "loss": 0.8873302168802816,
98
+ "acc": 0.9130434782608695,
99
+ "by_family": {
100
+ "adequacy": "7/10",
101
+ "ambiguous": "6/7",
102
+ "policy": "8/13",
103
+ "probability": "58/60",
104
+ "routing": "68/71"
105
+ }
106
+ },
107
+ {
108
+ "step": 301,
109
+ "seen": 2406,
110
+ "loss": 0.9988113209218529,
111
+ "acc": 0.9130434782608695,
112
+ "by_family": {
113
+ "adequacy": "6/10",
114
+ "ambiguous": "6/7",
115
+ "policy": "11/13",
116
+ "probability": "58/60",
117
+ "routing": "66/71"
118
+ }
119
+ },
120
+ {
121
+ "step": 351,
122
+ "seen": 2806,
123
+ "loss": 1.0362505128805466,
124
+ "acc": 0.9254658385093167,
125
+ "by_family": {
126
+ "adequacy": "7/10",
127
+ "ambiguous": "6/7",
128
+ "policy": "10/13",
129
+ "probability": "58/60",
130
+ "routing": "68/71"
131
+ }
132
+ },
133
+ {
134
+ "step": 401,
135
+ "seen": 3206,
136
+ "loss": 0.990789322077885,
137
+ "acc": 0.9192546583850931,
138
+ "by_family": {
139
+ "adequacy": "7/10",
140
+ "ambiguous": "6/7",
141
+ "policy": "9/13",
142
+ "probability": "58/60",
143
+ "routing": "68/71"
144
+ }
145
+ }
146
+ ],
147
+ "targets": [
148
+ "q_proj",
149
+ "k_proj",
150
+ "v_proj",
151
+ "o_proj",
152
+ "in_proj_qkv",
153
+ "in_proj_z",
154
+ "out_proj",
155
+ "gate_proj",
156
+ "up_proj",
157
+ "down_proj"
158
+ ]
159
+ }