link921 commited on
Commit
b17a85f
·
verified ·
1 Parent(s): 4dee0fc

v0.2-research-preview: full merged MiniCPM5-2B JEV decision model

Browse files
.gitattributes CHANGED
@@ -1,4 +1 @@
1
  *.safetensors filter=lfs diff=lfs merge=lfs -text
2
- *.json text eol=lf
3
- *.py text eol=lf
4
- *.md text eol=lf
 
1
  *.safetensors filter=lfs diff=lfs merge=lfs -text
 
 
 
.gitignore CHANGED
@@ -1,10 +1,5 @@
1
  __pycache__/
2
- .pytest_cache/
3
  .venv/
 
 
4
  *.pyc
5
- .env
6
- .env.*
7
- *.pem
8
- *.key
9
- *.pt
10
- checkpoint-*/
 
1
  __pycache__/
 
2
  .venv/
3
+ .pytest_cache/
4
+ .cache/
5
  *.pyc
 
 
 
 
 
 
LICENSE ADDED
@@ -0,0 +1,202 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
NOTICE ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ CPM-jev — independent community research preview.
2
+ Based on OpenBMB MiniCPM5-2B-Base: https://huggingface.co/openbmb/MiniCPM5-2B-Base
3
+ Trained on SargeDev/jev-distill-corpus-v3: https://huggingface.co/datasets/SargeDev/jev-distill-corpus-v3
4
+ Probability targets include data distilled from a Jev teacher.
5
+ Not affiliated with or endorsed by TypeSafe AI or OpenBMB.
6
+ Upstream model and dataset are marked Apache-2.0; retain their attribution when redistributing.
README.md CHANGED
@@ -20,7 +20,7 @@ tags:
20
 
21
  # CPM-jev
22
 
23
- **Version:** `v0.1-research-preview`
24
 
25
  > An experimental Jev-style / System-One decision model based on MiniCPM5-2B-Base. This is an independent community project and is not affiliated with or endorsed by TypeSafe AI or OpenBMB.
26
 
@@ -38,12 +38,17 @@ state + question + candidate options
38
 
39
  The probabilities are useful for ranking, routing, selective prediction, and confidence-aware escalation. They must not be interpreted as universally calibrated real-world probabilities.
40
 
41
- Base model weights are not duplicated in this repository. Download `openbmb/MiniCPM5-2B-Base` separately.
 
 
42
 
43
  ## Architecture
44
 
45
  - Backbone: [`openbmb/MiniCPM5-2B-Base`](https://huggingface.co/openbmb/MiniCPM5-2B-Base)
46
- - Adaptation: LoRA, rank 16, alpha 32, dropout 0.05
 
 
 
47
  - LoRA targets: `q_proj`, `k_proj`, `v_proj`, `o_proj`, `gate_proj`, `up_proj`, `down_proj`
48
  - Decision head: FP32 linear scalar head over the last non-padding token
49
  - Candidate normalization: raw softmax across the options for one question
@@ -164,7 +169,17 @@ python -m venv .venv
164
  pip install -r requirements.txt
165
  ```
166
 
167
- The first load downloads the base model unless it is already cached. You can pass a local base-model directory with `base_model=...` or `--base-model ...`.
 
 
 
 
 
 
 
 
 
 
168
 
169
  ## Inference Example
170
 
@@ -226,7 +241,7 @@ If this research preview is useful, cite the repository and the upstream model a
226
  @software{cpm_jev_2026,
227
  title = {CPM-jev: A MiniCPM5-2B Jev-style Decision Model},
228
  year = {2026},
229
- version = {v0.1-research-preview},
230
  url = {https://huggingface.co/link921/CPM-jev}
231
  }
232
  ```
 
20
 
21
  # CPM-jev
22
 
23
+ **Version:** `v0.2-research-preview` — full merged decision model
24
 
25
  > An experimental Jev-style / System-One decision model based on MiniCPM5-2B-Base. This is an independent community project and is not affiliated with or endorsed by TypeSafe AI or OpenBMB.
26
 
 
38
 
39
  The probabilities are useful for ranking, routing, selective prediction, and confidence-aware escalation. They must not be interpreted as universally calibrated real-world probabilities.
40
 
41
+ This repository now includes the complete fine-tuned MiniCPM5-2B decision backbone, with the Stage 3 LoRA updates merged into its weights, plus the original FP32 decision head and tokenizer. No separate base-model download or PEFT adapter load is needed. The language-generation head is not part of this decision scorer. Do not load it as a chat model or apply the old adapter again.
42
+
43
+ Merging is a packaging operation, not additional training. Original local training weights and checkpoints are unchanged. See `merge_verification.json` for measured merge/reload differences and `checksums.json` for file integrity. The original Stage 3 benchmark below is not a new full evaluation of the merged package; small numerical differences may arise from floating-point merging and runtime precision.
44
 
45
  ## Architecture
46
 
47
  - Backbone: [`openbmb/MiniCPM5-2B-Base`](https://huggingface.co/openbmb/MiniCPM5-2B-Base)
48
+ - Distribution: merged FP32 backbone (roughly 9 GB), original FP32 decision head, and tokenizer; no quantization
49
+ - Total decision-model parameters: 2,249,371,649 (the upstream name is MiniCPM5-2B)
50
+ - CPU FP32 verification: 6 cases, all choices unchanged, maximum probability difference after merging `4.17e-7`, save/reload difference `0`. This is a packaging spot check, not a replacement for the original benchmark.
51
+ - Training adaptation: LoRA, rank 16, alpha 32, dropout 0.05; merged for this release
52
  - LoRA targets: `q_proj`, `k_proj`, `v_proj`, `o_proj`, `gate_proj`, `up_proj`, `down_proj`
53
  - Decision head: FP32 linear scalar head over the last non-padding token
54
  - Candidate normalization: raw softmax across the options for one question
 
169
  pip install -r requirements.txt
170
  ```
171
 
172
+ Download all model shards, tokenizer, decision head, and Python files. The loader uses only the local repository files, without fetching the original base model. PEFT is not required at inference time. GPU inference uses BF16; CPU inference uses FP32. Keep `model.py` and `inference.py` together.
173
+
174
+ The merge/reload equivalence check used PyTorch 2.13.0 and Transformers 5.17.0. A fresh environment with PyTorch 2.14.0+cpu / Transformers 5.18.0, without PEFT, also loaded completely offline and matched the example probabilities. A separate CUDA-enabled installation running on CPU showed small numerical differences. Runtime versions, attention implementations, and precision can change numerical results; do not assume bit-identical results across all environments. The JSON example below is illustrative, not a measured promise that this prompt chooses `switch_tool`. See `validation_report.json` for actual example output.
175
+
176
+ Alternatively, download using the Hub client (without Git LFS):
177
+
178
+ ```bash
179
+ hf download link921/CPM-jev --local-dir CPM-jev
180
+ cd CPM-jev
181
+ pip install -r requirements.txt
182
+ ```
183
 
184
  ## Inference Example
185
 
 
241
  @software{cpm_jev_2026,
242
  title = {CPM-jev: A MiniCPM5-2B Jev-style Decision Model},
243
  year = {2026},
244
+ version = {v0.2-research-preview},
245
  url = {https://huggingface.co/link921/CPM-jev}
246
  }
247
  ```
adapter_config.json DELETED
@@ -1,51 +0,0 @@
1
- {
2
- "alora_invocation_tokens": null,
3
- "alpha_pattern": {},
4
- "arrow_config": null,
5
- "auto_mapping": null,
6
- "base_model_name_or_path": "openbmb/MiniCPM5-2B-Base",
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
- "v_proj",
37
- "k_proj",
38
- "down_proj",
39
- "o_proj",
40
- "q_proj",
41
- "gate_proj"
42
- ],
43
- "target_parameters": null,
44
- "task_type": "FEATURE_EXTRACTION",
45
- "trainable_token_indices": null,
46
- "use_bdlora": null,
47
- "use_dora": false,
48
- "use_qalora": false,
49
- "use_rslora": false,
50
- "velora_config": null
51
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
checksums.json ADDED
@@ -0,0 +1,98 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ ".gitattributes": {
3
+ "bytes": 50,
4
+ "sha256": "ee05350c7fda0af4da116020dd7b976d731de3beed4f5e717d5bcc95ead24550"
5
+ },
6
+ ".gitignore": {
7
+ "bytes": 49,
8
+ "sha256": "65bb4cceaf5bab325bd28df715a92833a1872080ae624f92c38f6ab3e2bb5b66"
9
+ },
10
+ "calibration.json": {
11
+ "bytes": 8636,
12
+ "sha256": "2c9c9f5f90ad2fcaac59aa6a7090bf695c0614c11349c4522547af33082aa588"
13
+ },
14
+ "config.json": {
15
+ "bytes": 778,
16
+ "sha256": "877c2a5260a9433133c60aab933c59b2219f90241add4df5b039dab274238a6c"
17
+ },
18
+ "decision_head.safetensors": {
19
+ "bytes": 8332,
20
+ "sha256": "ab0c1216517b8389d2e02f1ede565d15a1719b46817a6aaf53ae9102b3a089a5"
21
+ },
22
+ "evaluation_report.json": {
23
+ "bytes": 76191,
24
+ "sha256": "18fb662240569be11ed37153de286b453de104021d694828006796794839ecab"
25
+ },
26
+ "example.py": {
27
+ "bytes": 287,
28
+ "sha256": "965d11fbc796b1c3c9d79943e80103fbab9d66846b6edb8fcfb88b35f8dca058"
29
+ },
30
+ "inference.py": {
31
+ "bytes": 3481,
32
+ "sha256": "3b8a47bd3c563881c3b322666238348ebb27a3cf12de75efe1df912bc13f30af"
33
+ },
34
+ "LICENSE": {
35
+ "bytes": 11358,
36
+ "sha256": "cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30"
37
+ },
38
+ "merge_verification.json": {
39
+ "bytes": 2862,
40
+ "sha256": "e5a39b89f61a7efb0c9cbeb3c35c698c514d8ea921598c0c11a266387672d41c"
41
+ },
42
+ "model-00001-of-00005.safetensors": {
43
+ "bytes": 1994478256,
44
+ "sha256": "c7d73af460dd39dc3d0fe2bef98881b1290b44c85ac2671c6ed39e4990bc0bde"
45
+ },
46
+ "model-00002-of-00005.safetensors": {
47
+ "bytes": 1956824992,
48
+ "sha256": "522379bcfa79e3fb572c690457511e851ebec8fea932459bd97dfadd27058ec4"
49
+ },
50
+ "model-00003-of-00005.safetensors": {
51
+ "bytes": 1990379488,
52
+ "sha256": "266feb53ba0ca9001afaf443ed1e66c7a7c5531cab7697edde3ee59c69a42e09"
53
+ },
54
+ "model-00004-of-00005.safetensors": {
55
+ "bytes": 1973602368,
56
+ "sha256": "9a99eeefc27b9e476a14ddd333c60a83588065dbffc2ca7d8037e45b8de58c05"
57
+ },
58
+ "model-00005-of-00005.safetensors": {
59
+ "bytes": 1082234448,
60
+ "sha256": "55e765753a3e1060a835d28986ae269470a2a1b7eff05a69972d2591638a328b"
61
+ },
62
+ "model.py": {
63
+ "bytes": 2311,
64
+ "sha256": "f3d91fafb698d842ca517c1e0f7cf311698101c5be18b33e133ddc6a3424a972"
65
+ },
66
+ "model.safetensors.index.json": {
67
+ "bytes": 29465,
68
+ "sha256": "1c5640d779b1fcc27c6dc4578aec7418b959a7beee8f01c15a4e878bd5911b40"
69
+ },
70
+ "NOTICE": {
71
+ "bytes": 459,
72
+ "sha256": "a7a41cb08ae6ffba0e74fb67460df9215959cef2f43182a4ac03fce9b5c3325d"
73
+ },
74
+ "README.md": {
75
+ "bytes": 10848,
76
+ "sha256": "89e5d67ad584183b89446321bcf209b2b795f705342c51517bd3ed5cc5a9eaad"
77
+ },
78
+ "requirements.txt": {
79
+ "bytes": 80,
80
+ "sha256": "5cb1a73a2fe90fabb4f7effa1a3aa5be2ba34430a87d471aa35ac923c1b9d7c4"
81
+ },
82
+ "test_release.py": {
83
+ "bytes": 3236,
84
+ "sha256": "57c26f8d89eac41803b589ffa50ab9ac59a1101bfb42ba53a08e99852b219b2c"
85
+ },
86
+ "tokenizer.json": {
87
+ "bytes": 9894522,
88
+ "sha256": "802c611522de84820f2e580878a96e953d534a16d153648fc0a21ca53e904e03"
89
+ },
90
+ "tokenizer_config.json": {
91
+ "bytes": 451,
92
+ "sha256": "19d05ca5469560f4128ab95cc88c888fe22d5e4af8f69e0a6b092d96a26b3820"
93
+ },
94
+ "validation_report.json": {
95
+ "bytes": 632,
96
+ "sha256": "e032171ac0ac3a38b70fb155f80264f4305d6e9ad5a86c319bf378a470624e42"
97
+ }
98
+ }
config.json ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "LlamaModel"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": 0,
8
+ "dtype": "float32",
9
+ "eos_token_id": [
10
+ 1,
11
+ 130073
12
+ ],
13
+ "head_dim": 128,
14
+ "hidden_act": "silu",
15
+ "hidden_size": 2048,
16
+ "initializer_range": 0.02,
17
+ "intermediate_size": 6144,
18
+ "max_position_embeddings": 524288,
19
+ "mlp_bias": false,
20
+ "model_type": "llama",
21
+ "num_attention_heads": 16,
22
+ "num_hidden_layers": 42,
23
+ "num_key_value_heads": 2,
24
+ "pad_token_id": 1,
25
+ "pretraining_tp": 1,
26
+ "rms_norm_eps": 1e-06,
27
+ "rope_parameters": {
28
+ "rope_theta": 5000000,
29
+ "rope_type": "default"
30
+ },
31
+ "tie_word_embeddings": false,
32
+ "transformers_version": "5.17.0",
33
+ "use_cache": false,
34
+ "vocab_size": 130560
35
+ }
example.py CHANGED
@@ -1,10 +1,9 @@
1
  import json
2
- import os
3
 
4
  from inference import DecisionModel
5
 
6
 
7
- model = DecisionModel(".", base_model=os.getenv("CPM_JEV_BASE_MODEL", "openbmb/MiniCPM5-2B-Base"))
8
  result = model.decide(
9
  state="The previous tool call failed twice.",
10
  question="What should the agent do next?",
 
1
  import json
 
2
 
3
  from inference import DecisionModel
4
 
5
 
6
+ model = DecisionModel(".")
7
  result = model.decide(
8
  state="The previous tool call failed twice.",
9
  question="What should the agent do next?",
inference.py CHANGED
@@ -10,7 +10,7 @@ from typing import Any, Sequence
10
  import torch
11
  from transformers import AutoTokenizer
12
 
13
- from model import BASE_MODEL_ID, MiniCPMJEVModel
14
 
15
 
16
  def format_candidate(state: Any, kind: str, question: str, option: Any) -> str:
@@ -32,20 +32,19 @@ class DecisionModel:
32
  self,
33
  model_dir: str | Path,
34
  *,
35
- base_model: str = BASE_MODEL_ID,
36
  device: str | None = None,
37
  max_length: int = 512,
38
  ):
39
  self.model_dir = Path(model_dir)
40
  self.device = torch.device(device or ("cuda" if torch.cuda.is_available() else "cpu"))
41
  self.max_length = max_length
42
- self.tokenizer = AutoTokenizer.from_pretrained(self.model_dir, trust_remote_code=True)
43
  self.tokenizer.truncation_side = "left"
44
  if self.tokenizer.pad_token_id is None:
45
  self.tokenizer.pad_token = self.tokenizer.eos_token
46
  dtype = torch.bfloat16 if self.device.type == "cuda" else torch.float32
47
  self.model = MiniCPMJEVModel.from_pretrained(
48
- self.model_dir, base_model=base_model, dtype=dtype
49
  ).to(self.device).eval()
50
 
51
  @torch.inference_mode()
@@ -82,7 +81,6 @@ class DecisionModel:
82
  def main() -> None:
83
  parser = argparse.ArgumentParser(description="Run one CPM-jev decision")
84
  parser.add_argument("--model-dir", default=".")
85
- parser.add_argument("--base-model", default=BASE_MODEL_ID)
86
  parser.add_argument("--state", required=True)
87
  parser.add_argument("--question", required=True)
88
  parser.add_argument("--options", nargs="+", required=True)
@@ -90,7 +88,7 @@ def main() -> None:
90
  parser.add_argument("--device", default=None)
91
  args = parser.parse_args()
92
  model = DecisionModel(
93
- args.model_dir, base_model=args.base_model, device=args.device
94
  )
95
  result = model.decide(
96
  state=args.state,
 
10
  import torch
11
  from transformers import AutoTokenizer
12
 
13
+ from model import MiniCPMJEVModel
14
 
15
 
16
  def format_candidate(state: Any, kind: str, question: str, option: Any) -> str:
 
32
  self,
33
  model_dir: str | Path,
34
  *,
 
35
  device: str | None = None,
36
  max_length: int = 512,
37
  ):
38
  self.model_dir = Path(model_dir)
39
  self.device = torch.device(device or ("cuda" if torch.cuda.is_available() else "cpu"))
40
  self.max_length = max_length
41
+ self.tokenizer = AutoTokenizer.from_pretrained(self.model_dir, local_files_only=True)
42
  self.tokenizer.truncation_side = "left"
43
  if self.tokenizer.pad_token_id is None:
44
  self.tokenizer.pad_token = self.tokenizer.eos_token
45
  dtype = torch.bfloat16 if self.device.type == "cuda" else torch.float32
46
  self.model = MiniCPMJEVModel.from_pretrained(
47
+ self.model_dir, dtype=dtype
48
  ).to(self.device).eval()
49
 
50
  @torch.inference_mode()
 
81
  def main() -> None:
82
  parser = argparse.ArgumentParser(description="Run one CPM-jev decision")
83
  parser.add_argument("--model-dir", default=".")
 
84
  parser.add_argument("--state", required=True)
85
  parser.add_argument("--question", required=True)
86
  parser.add_argument("--options", nargs="+", required=True)
 
88
  parser.add_argument("--device", default=None)
89
  args = parser.parse_args()
90
  model = DecisionModel(
91
+ args.model_dir, device=args.device
92
  )
93
  result = model.decide(
94
  state=args.state,
jev_config.json DELETED
@@ -1,9 +0,0 @@
1
- {
2
- "architectures": ["MiniCPMJEVModel"],
3
- "base_model": "openbmb/MiniCPM5-2B-Base",
4
- "model_type": "minicpm5_jev_decision_scorer",
5
- "max_length": 512,
6
- "default_prediction": "raw",
7
- "temperature_scaling_enabled": false,
8
- "release": "v0.1-research-preview"
9
- }
 
 
 
 
 
 
 
 
 
 
merge_verification.json ADDED
@@ -0,0 +1,126 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "release": "v0.2-research-preview",
3
+ "dtype": "float32",
4
+ "device": "cpu",
5
+ "parameter_count": 2249371649,
6
+ "test_case_count": 6,
7
+ "merge": {
8
+ "max_absolute_probability_delta": 4.172325134277344e-07,
9
+ "all_choices_match": true,
10
+ "tolerance": 0.0001
11
+ },
12
+ "reload": {
13
+ "max_absolute_probability_delta": 0.0,
14
+ "all_choices_match": true,
15
+ "tolerance": 0.0001
16
+ },
17
+ "original_weight_sha256": {
18
+ "adapter_model.safetensors": "bf83e77022174a7693a942e80ac2e068a9e20d84d6c4b40ba3e6b3b32a5f9b46",
19
+ "decision_head.safetensors": "ab0c1216517b8389d2e02f1ede565d15a1719b46817a6aaf53ae9102b3a089a5"
20
+ },
21
+ "before_probabilities": [
22
+ [
23
+ 0.44616562128067017,
24
+ 0.27992886304855347,
25
+ 0.273905485868454
26
+ ],
27
+ [
28
+ 0.909838080406189,
29
+ 0.00797832291573286,
30
+ 0.08218357712030411
31
+ ],
32
+ [
33
+ 0.8542450666427612,
34
+ 0.145754873752594
35
+ ],
36
+ [
37
+ 0.9982913136482239,
38
+ 0.0015950130764394999,
39
+ 0.00011359775089658797
40
+ ],
41
+ [
42
+ 0.0007327707135118544,
43
+ 0.04868697002530098,
44
+ 0.41480183601379395,
45
+ 0.4768619239330292,
46
+ 0.0587116964161396,
47
+ 0.00020470638992264867
48
+ ],
49
+ [
50
+ 0.27390551567077637,
51
+ 0.2799288332462311,
52
+ 0.44616568088531494
53
+ ]
54
+ ],
55
+ "merged_probabilities": [
56
+ [
57
+ 0.4461660087108612,
58
+ 0.279928594827652,
59
+ 0.273905485868454
60
+ ],
61
+ [
62
+ 0.909838080406189,
63
+ 0.007978311739861965,
64
+ 0.08218361437320709
65
+ ],
66
+ [
67
+ 0.8542448878288269,
68
+ 0.1457550972700119
69
+ ],
70
+ [
71
+ 0.9982913136482239,
72
+ 0.0015950145898386836,
73
+ 0.00011359742347849533
74
+ ],
75
+ [
76
+ 0.0007327765924856067,
77
+ 0.04868702590465546,
78
+ 0.414801687002182,
79
+ 0.4768618941307068,
80
+ 0.05871183052659035,
81
+ 0.00020470705931074917
82
+ ],
83
+ [
84
+ 0.2739052474498749,
85
+ 0.27992865443229675,
86
+ 0.44616609811782837
87
+ ]
88
+ ],
89
+ "reload_probabilities": [
90
+ [
91
+ 0.4461660087108612,
92
+ 0.279928594827652,
93
+ 0.273905485868454
94
+ ],
95
+ [
96
+ 0.909838080406189,
97
+ 0.007978311739861965,
98
+ 0.08218361437320709
99
+ ],
100
+ [
101
+ 0.8542448878288269,
102
+ 0.1457550972700119
103
+ ],
104
+ [
105
+ 0.9982913136482239,
106
+ 0.0015950145898386836,
107
+ 0.00011359742347849533
108
+ ],
109
+ [
110
+ 0.0007327765924856067,
111
+ 0.04868702590465546,
112
+ 0.414801687002182,
113
+ 0.4768618941307068,
114
+ 0.05871183052659035,
115
+ 0.00020470705931074917
116
+ ],
117
+ [
118
+ 0.2739052474498749,
119
+ 0.27992865443229675,
120
+ 0.44616609811782837
121
+ ]
122
+ ],
123
+ "full_benchmark_rerun": false,
124
+ "original_weights_unchanged": true,
125
+ "reason": "FP32 merge/storage avoids an additional BF16 weight-rounding step. GPU inference may cast to BF16."
126
+ }
adapter_model.safetensors → model-00001-of-00005.safetensors RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:bf83e77022174a7693a942e80ac2e068a9e20d84d6c4b40ba3e6b3b32a5f9b46
3
- size 100541320
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c7d73af460dd39dc3d0fe2bef98881b1290b44c85ac2671c6ed39e4990bc0bde
3
+ size 1994478256
model-00002-of-00005.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:522379bcfa79e3fb572c690457511e851ebec8fea932459bd97dfadd27058ec4
3
+ size 1956824992
model-00003-of-00005.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:266feb53ba0ca9001afaf443ed1e66c7a7c5531cab7697edde3ee59c69a42e09
3
+ size 1990379488
model-00004-of-00005.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9a99eeefc27b9e476a14ddd333c60a83588065dbffc2ca7d8037e45b8de58c05
3
+ size 1973602368
model-00005-of-00005.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:55e765753a3e1060a835d28986ae269470a2a1b7eff05a69972d2591638a328b
3
+ size 1082234448
model.py CHANGED
@@ -6,7 +6,6 @@ from pathlib import Path
6
  from typing import Any
7
 
8
  import torch
9
- from peft import PeftModel
10
  from safetensors.torch import load_file
11
  from torch import nn
12
  from transformers import AutoModel
@@ -36,15 +35,13 @@ class MiniCPMJEVModel(nn.Module):
36
  cls,
37
  model_dir: str | Path,
38
  *,
39
- base_model: str = BASE_MODEL_ID,
40
  dtype: torch.dtype | None = None,
41
  ) -> "MiniCPMJEVModel":
42
  model_dir = Path(model_dir)
43
  if dtype is None:
44
  dtype = torch.bfloat16 if torch.cuda.is_available() else torch.float32
45
- base = AutoModel.from_pretrained(base_model, dtype=dtype, trust_remote_code=True)
46
- backbone = PeftModel.from_pretrained(base, str(model_dir), is_trainable=False)
47
- model = cls(backbone, cls._hidden_size(base.config))
48
  head_path = model_dir / "decision_head.safetensors"
49
  model.decision_head.load_state_dict(load_file(str(head_path)))
50
  return model
 
6
  from typing import Any
7
 
8
  import torch
 
9
  from safetensors.torch import load_file
10
  from torch import nn
11
  from transformers import AutoModel
 
35
  cls,
36
  model_dir: str | Path,
37
  *,
 
38
  dtype: torch.dtype | None = None,
39
  ) -> "MiniCPMJEVModel":
40
  model_dir = Path(model_dir)
41
  if dtype is None:
42
  dtype = torch.bfloat16 if torch.cuda.is_available() else torch.float32
43
+ backbone = AutoModel.from_pretrained(model_dir, dtype=dtype, local_files_only=True)
44
+ model = cls(backbone, cls._hidden_size(backbone.config))
 
45
  head_path = model_dir / "decision_head.safetensors"
46
  model.decision_head.load_state_dict(load_file(str(head_path)))
47
  return model
model.safetensors.index.json ADDED
@@ -0,0 +1,388 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "metadata": {
3
+ "total_parameters": 2249369600,
4
+ "total_size": 8997478400
5
+ },
6
+ "weight_map": {
7
+ "embed_tokens.weight": "model-00001-of-00005.safetensors",
8
+ "layers.0.input_layernorm.weight": "model-00001-of-00005.safetensors",
9
+ "layers.0.mlp.down_proj.weight": "model-00001-of-00005.safetensors",
10
+ "layers.0.mlp.gate_proj.weight": "model-00001-of-00005.safetensors",
11
+ "layers.0.mlp.up_proj.weight": "model-00001-of-00005.safetensors",
12
+ "layers.0.post_attention_layernorm.weight": "model-00001-of-00005.safetensors",
13
+ "layers.0.self_attn.k_proj.weight": "model-00001-of-00005.safetensors",
14
+ "layers.0.self_attn.o_proj.weight": "model-00001-of-00005.safetensors",
15
+ "layers.0.self_attn.q_proj.weight": "model-00001-of-00005.safetensors",
16
+ "layers.0.self_attn.v_proj.weight": "model-00001-of-00005.safetensors",
17
+ "layers.1.input_layernorm.weight": "model-00001-of-00005.safetensors",
18
+ "layers.1.mlp.down_proj.weight": "model-00001-of-00005.safetensors",
19
+ "layers.1.mlp.gate_proj.weight": "model-00001-of-00005.safetensors",
20
+ "layers.1.mlp.up_proj.weight": "model-00001-of-00005.safetensors",
21
+ "layers.1.post_attention_layernorm.weight": "model-00001-of-00005.safetensors",
22
+ "layers.1.self_attn.k_proj.weight": "model-00001-of-00005.safetensors",
23
+ "layers.1.self_attn.o_proj.weight": "model-00001-of-00005.safetensors",
24
+ "layers.1.self_attn.q_proj.weight": "model-00001-of-00005.safetensors",
25
+ "layers.1.self_attn.v_proj.weight": "model-00001-of-00005.safetensors",
26
+ "layers.10.input_layernorm.weight": "model-00002-of-00005.safetensors",
27
+ "layers.10.mlp.down_proj.weight": "model-00002-of-00005.safetensors",
28
+ "layers.10.mlp.gate_proj.weight": "model-00002-of-00005.safetensors",
29
+ "layers.10.mlp.up_proj.weight": "model-00002-of-00005.safetensors",
30
+ "layers.10.post_attention_layernorm.weight": "model-00002-of-00005.safetensors",
31
+ "layers.10.self_attn.k_proj.weight": "model-00002-of-00005.safetensors",
32
+ "layers.10.self_attn.o_proj.weight": "model-00002-of-00005.safetensors",
33
+ "layers.10.self_attn.q_proj.weight": "model-00002-of-00005.safetensors",
34
+ "layers.10.self_attn.v_proj.weight": "model-00002-of-00005.safetensors",
35
+ "layers.11.input_layernorm.weight": "model-00002-of-00005.safetensors",
36
+ "layers.11.mlp.down_proj.weight": "model-00002-of-00005.safetensors",
37
+ "layers.11.mlp.gate_proj.weight": "model-00002-of-00005.safetensors",
38
+ "layers.11.mlp.up_proj.weight": "model-00002-of-00005.safetensors",
39
+ "layers.11.post_attention_layernorm.weight": "model-00002-of-00005.safetensors",
40
+ "layers.11.self_attn.k_proj.weight": "model-00002-of-00005.safetensors",
41
+ "layers.11.self_attn.o_proj.weight": "model-00002-of-00005.safetensors",
42
+ "layers.11.self_attn.q_proj.weight": "model-00002-of-00005.safetensors",
43
+ "layers.11.self_attn.v_proj.weight": "model-00002-of-00005.safetensors",
44
+ "layers.12.input_layernorm.weight": "model-00002-of-00005.safetensors",
45
+ "layers.12.mlp.down_proj.weight": "model-00002-of-00005.safetensors",
46
+ "layers.12.mlp.gate_proj.weight": "model-00002-of-00005.safetensors",
47
+ "layers.12.mlp.up_proj.weight": "model-00002-of-00005.safetensors",
48
+ "layers.12.post_attention_layernorm.weight": "model-00002-of-00005.safetensors",
49
+ "layers.12.self_attn.k_proj.weight": "model-00002-of-00005.safetensors",
50
+ "layers.12.self_attn.o_proj.weight": "model-00002-of-00005.safetensors",
51
+ "layers.12.self_attn.q_proj.weight": "model-00002-of-00005.safetensors",
52
+ "layers.12.self_attn.v_proj.weight": "model-00002-of-00005.safetensors",
53
+ "layers.13.input_layernorm.weight": "model-00002-of-00005.safetensors",
54
+ "layers.13.mlp.down_proj.weight": "model-00002-of-00005.safetensors",
55
+ "layers.13.mlp.gate_proj.weight": "model-00002-of-00005.safetensors",
56
+ "layers.13.mlp.up_proj.weight": "model-00002-of-00005.safetensors",
57
+ "layers.13.post_attention_layernorm.weight": "model-00002-of-00005.safetensors",
58
+ "layers.13.self_attn.k_proj.weight": "model-00002-of-00005.safetensors",
59
+ "layers.13.self_attn.o_proj.weight": "model-00002-of-00005.safetensors",
60
+ "layers.13.self_attn.q_proj.weight": "model-00002-of-00005.safetensors",
61
+ "layers.13.self_attn.v_proj.weight": "model-00002-of-00005.safetensors",
62
+ "layers.14.input_layernorm.weight": "model-00002-of-00005.safetensors",
63
+ "layers.14.mlp.down_proj.weight": "model-00002-of-00005.safetensors",
64
+ "layers.14.mlp.gate_proj.weight": "model-00002-of-00005.safetensors",
65
+ "layers.14.mlp.up_proj.weight": "model-00002-of-00005.safetensors",
66
+ "layers.14.post_attention_layernorm.weight": "model-00002-of-00005.safetensors",
67
+ "layers.14.self_attn.k_proj.weight": "model-00002-of-00005.safetensors",
68
+ "layers.14.self_attn.o_proj.weight": "model-00002-of-00005.safetensors",
69
+ "layers.14.self_attn.q_proj.weight": "model-00002-of-00005.safetensors",
70
+ "layers.14.self_attn.v_proj.weight": "model-00002-of-00005.safetensors",
71
+ "layers.15.input_layernorm.weight": "model-00002-of-00005.safetensors",
72
+ "layers.15.mlp.down_proj.weight": "model-00002-of-00005.safetensors",
73
+ "layers.15.mlp.gate_proj.weight": "model-00003-of-00005.safetensors",
74
+ "layers.15.mlp.up_proj.weight": "model-00003-of-00005.safetensors",
75
+ "layers.15.post_attention_layernorm.weight": "model-00003-of-00005.safetensors",
76
+ "layers.15.self_attn.k_proj.weight": "model-00003-of-00005.safetensors",
77
+ "layers.15.self_attn.o_proj.weight": "model-00003-of-00005.safetensors",
78
+ "layers.15.self_attn.q_proj.weight": "model-00003-of-00005.safetensors",
79
+ "layers.15.self_attn.v_proj.weight": "model-00003-of-00005.safetensors",
80
+ "layers.16.input_layernorm.weight": "model-00003-of-00005.safetensors",
81
+ "layers.16.mlp.down_proj.weight": "model-00003-of-00005.safetensors",
82
+ "layers.16.mlp.gate_proj.weight": "model-00003-of-00005.safetensors",
83
+ "layers.16.mlp.up_proj.weight": "model-00003-of-00005.safetensors",
84
+ "layers.16.post_attention_layernorm.weight": "model-00003-of-00005.safetensors",
85
+ "layers.16.self_attn.k_proj.weight": "model-00003-of-00005.safetensors",
86
+ "layers.16.self_attn.o_proj.weight": "model-00003-of-00005.safetensors",
87
+ "layers.16.self_attn.q_proj.weight": "model-00003-of-00005.safetensors",
88
+ "layers.16.self_attn.v_proj.weight": "model-00003-of-00005.safetensors",
89
+ "layers.17.input_layernorm.weight": "model-00003-of-00005.safetensors",
90
+ "layers.17.mlp.down_proj.weight": "model-00003-of-00005.safetensors",
91
+ "layers.17.mlp.gate_proj.weight": "model-00003-of-00005.safetensors",
92
+ "layers.17.mlp.up_proj.weight": "model-00003-of-00005.safetensors",
93
+ "layers.17.post_attention_layernorm.weight": "model-00003-of-00005.safetensors",
94
+ "layers.17.self_attn.k_proj.weight": "model-00003-of-00005.safetensors",
95
+ "layers.17.self_attn.o_proj.weight": "model-00003-of-00005.safetensors",
96
+ "layers.17.self_attn.q_proj.weight": "model-00003-of-00005.safetensors",
97
+ "layers.17.self_attn.v_proj.weight": "model-00003-of-00005.safetensors",
98
+ "layers.18.input_layernorm.weight": "model-00003-of-00005.safetensors",
99
+ "layers.18.mlp.down_proj.weight": "model-00003-of-00005.safetensors",
100
+ "layers.18.mlp.gate_proj.weight": "model-00003-of-00005.safetensors",
101
+ "layers.18.mlp.up_proj.weight": "model-00003-of-00005.safetensors",
102
+ "layers.18.post_attention_layernorm.weight": "model-00003-of-00005.safetensors",
103
+ "layers.18.self_attn.k_proj.weight": "model-00003-of-00005.safetensors",
104
+ "layers.18.self_attn.o_proj.weight": "model-00003-of-00005.safetensors",
105
+ "layers.18.self_attn.q_proj.weight": "model-00003-of-00005.safetensors",
106
+ "layers.18.self_attn.v_proj.weight": "model-00003-of-00005.safetensors",
107
+ "layers.19.input_layernorm.weight": "model-00003-of-00005.safetensors",
108
+ "layers.19.mlp.down_proj.weight": "model-00003-of-00005.safetensors",
109
+ "layers.19.mlp.gate_proj.weight": "model-00003-of-00005.safetensors",
110
+ "layers.19.mlp.up_proj.weight": "model-00003-of-00005.safetensors",
111
+ "layers.19.post_attention_layernorm.weight": "model-00003-of-00005.safetensors",
112
+ "layers.19.self_attn.k_proj.weight": "model-00003-of-00005.safetensors",
113
+ "layers.19.self_attn.o_proj.weight": "model-00003-of-00005.safetensors",
114
+ "layers.19.self_attn.q_proj.weight": "model-00003-of-00005.safetensors",
115
+ "layers.19.self_attn.v_proj.weight": "model-00003-of-00005.safetensors",
116
+ "layers.2.input_layernorm.weight": "model-00001-of-00005.safetensors",
117
+ "layers.2.mlp.down_proj.weight": "model-00001-of-00005.safetensors",
118
+ "layers.2.mlp.gate_proj.weight": "model-00001-of-00005.safetensors",
119
+ "layers.2.mlp.up_proj.weight": "model-00001-of-00005.safetensors",
120
+ "layers.2.post_attention_layernorm.weight": "model-00001-of-00005.safetensors",
121
+ "layers.2.self_attn.k_proj.weight": "model-00001-of-00005.safetensors",
122
+ "layers.2.self_attn.o_proj.weight": "model-00001-of-00005.safetensors",
123
+ "layers.2.self_attn.q_proj.weight": "model-00001-of-00005.safetensors",
124
+ "layers.2.self_attn.v_proj.weight": "model-00001-of-00005.safetensors",
125
+ "layers.20.input_layernorm.weight": "model-00003-of-00005.safetensors",
126
+ "layers.20.mlp.down_proj.weight": "model-00003-of-00005.safetensors",
127
+ "layers.20.mlp.gate_proj.weight": "model-00003-of-00005.safetensors",
128
+ "layers.20.mlp.up_proj.weight": "model-00003-of-00005.safetensors",
129
+ "layers.20.post_attention_layernorm.weight": "model-00003-of-00005.safetensors",
130
+ "layers.20.self_attn.k_proj.weight": "model-00003-of-00005.safetensors",
131
+ "layers.20.self_attn.o_proj.weight": "model-00003-of-00005.safetensors",
132
+ "layers.20.self_attn.q_proj.weight": "model-00003-of-00005.safetensors",
133
+ "layers.20.self_attn.v_proj.weight": "model-00003-of-00005.safetensors",
134
+ "layers.21.input_layernorm.weight": "model-00003-of-00005.safetensors",
135
+ "layers.21.mlp.down_proj.weight": "model-00003-of-00005.safetensors",
136
+ "layers.21.mlp.gate_proj.weight": "model-00003-of-00005.safetensors",
137
+ "layers.21.mlp.up_proj.weight": "model-00003-of-00005.safetensors",
138
+ "layers.21.post_attention_layernorm.weight": "model-00003-of-00005.safetensors",
139
+ "layers.21.self_attn.k_proj.weight": "model-00003-of-00005.safetensors",
140
+ "layers.21.self_attn.o_proj.weight": "model-00003-of-00005.safetensors",
141
+ "layers.21.self_attn.q_proj.weight": "model-00003-of-00005.safetensors",
142
+ "layers.21.self_attn.v_proj.weight": "model-00003-of-00005.safetensors",
143
+ "layers.22.input_layernorm.weight": "model-00003-of-00005.safetensors",
144
+ "layers.22.mlp.down_proj.weight": "model-00003-of-00005.safetensors",
145
+ "layers.22.mlp.gate_proj.weight": "model-00003-of-00005.safetensors",
146
+ "layers.22.mlp.up_proj.weight": "model-00003-of-00005.safetensors",
147
+ "layers.22.post_attention_layernorm.weight": "model-00003-of-00005.safetensors",
148
+ "layers.22.self_attn.k_proj.weight": "model-00003-of-00005.safetensors",
149
+ "layers.22.self_attn.o_proj.weight": "model-00003-of-00005.safetensors",
150
+ "layers.22.self_attn.q_proj.weight": "model-00003-of-00005.safetensors",
151
+ "layers.22.self_attn.v_proj.weight": "model-00003-of-00005.safetensors",
152
+ "layers.23.input_layernorm.weight": "model-00003-of-00005.safetensors",
153
+ "layers.23.mlp.down_proj.weight": "model-00003-of-00005.safetensors",
154
+ "layers.23.mlp.gate_proj.weight": "model-00003-of-00005.safetensors",
155
+ "layers.23.mlp.up_proj.weight": "model-00003-of-00005.safetensors",
156
+ "layers.23.post_attention_layernorm.weight": "model-00003-of-00005.safetensors",
157
+ "layers.23.self_attn.k_proj.weight": "model-00003-of-00005.safetensors",
158
+ "layers.23.self_attn.o_proj.weight": "model-00003-of-00005.safetensors",
159
+ "layers.23.self_attn.q_proj.weight": "model-00003-of-00005.safetensors",
160
+ "layers.23.self_attn.v_proj.weight": "model-00003-of-00005.safetensors",
161
+ "layers.24.input_layernorm.weight": "model-00003-of-00005.safetensors",
162
+ "layers.24.mlp.down_proj.weight": "model-00003-of-00005.safetensors",
163
+ "layers.24.mlp.gate_proj.weight": "model-00003-of-00005.safetensors",
164
+ "layers.24.mlp.up_proj.weight": "model-00003-of-00005.safetensors",
165
+ "layers.24.post_attention_layernorm.weight": "model-00003-of-00005.safetensors",
166
+ "layers.24.self_attn.k_proj.weight": "model-00003-of-00005.safetensors",
167
+ "layers.24.self_attn.o_proj.weight": "model-00003-of-00005.safetensors",
168
+ "layers.24.self_attn.q_proj.weight": "model-00003-of-00005.safetensors",
169
+ "layers.24.self_attn.v_proj.weight": "model-00003-of-00005.safetensors",
170
+ "layers.25.input_layernorm.weight": "model-00003-of-00005.safetensors",
171
+ "layers.25.mlp.down_proj.weight": "model-00003-of-00005.safetensors",
172
+ "layers.25.mlp.gate_proj.weight": "model-00003-of-00005.safetensors",
173
+ "layers.25.mlp.up_proj.weight": "model-00003-of-00005.safetensors",
174
+ "layers.25.post_attention_layernorm.weight": "model-00003-of-00005.safetensors",
175
+ "layers.25.self_attn.k_proj.weight": "model-00003-of-00005.safetensors",
176
+ "layers.25.self_attn.o_proj.weight": "model-00004-of-00005.safetensors",
177
+ "layers.25.self_attn.q_proj.weight": "model-00004-of-00005.safetensors",
178
+ "layers.25.self_attn.v_proj.weight": "model-00004-of-00005.safetensors",
179
+ "layers.26.input_layernorm.weight": "model-00004-of-00005.safetensors",
180
+ "layers.26.mlp.down_proj.weight": "model-00004-of-00005.safetensors",
181
+ "layers.26.mlp.gate_proj.weight": "model-00004-of-00005.safetensors",
182
+ "layers.26.mlp.up_proj.weight": "model-00004-of-00005.safetensors",
183
+ "layers.26.post_attention_layernorm.weight": "model-00004-of-00005.safetensors",
184
+ "layers.26.self_attn.k_proj.weight": "model-00004-of-00005.safetensors",
185
+ "layers.26.self_attn.o_proj.weight": "model-00004-of-00005.safetensors",
186
+ "layers.26.self_attn.q_proj.weight": "model-00004-of-00005.safetensors",
187
+ "layers.26.self_attn.v_proj.weight": "model-00004-of-00005.safetensors",
188
+ "layers.27.input_layernorm.weight": "model-00004-of-00005.safetensors",
189
+ "layers.27.mlp.down_proj.weight": "model-00004-of-00005.safetensors",
190
+ "layers.27.mlp.gate_proj.weight": "model-00004-of-00005.safetensors",
191
+ "layers.27.mlp.up_proj.weight": "model-00004-of-00005.safetensors",
192
+ "layers.27.post_attention_layernorm.weight": "model-00004-of-00005.safetensors",
193
+ "layers.27.self_attn.k_proj.weight": "model-00004-of-00005.safetensors",
194
+ "layers.27.self_attn.o_proj.weight": "model-00004-of-00005.safetensors",
195
+ "layers.27.self_attn.q_proj.weight": "model-00004-of-00005.safetensors",
196
+ "layers.27.self_attn.v_proj.weight": "model-00004-of-00005.safetensors",
197
+ "layers.28.input_layernorm.weight": "model-00004-of-00005.safetensors",
198
+ "layers.28.mlp.down_proj.weight": "model-00004-of-00005.safetensors",
199
+ "layers.28.mlp.gate_proj.weight": "model-00004-of-00005.safetensors",
200
+ "layers.28.mlp.up_proj.weight": "model-00004-of-00005.safetensors",
201
+ "layers.28.post_attention_layernorm.weight": "model-00004-of-00005.safetensors",
202
+ "layers.28.self_attn.k_proj.weight": "model-00004-of-00005.safetensors",
203
+ "layers.28.self_attn.o_proj.weight": "model-00004-of-00005.safetensors",
204
+ "layers.28.self_attn.q_proj.weight": "model-00004-of-00005.safetensors",
205
+ "layers.28.self_attn.v_proj.weight": "model-00004-of-00005.safetensors",
206
+ "layers.29.input_layernorm.weight": "model-00004-of-00005.safetensors",
207
+ "layers.29.mlp.down_proj.weight": "model-00004-of-00005.safetensors",
208
+ "layers.29.mlp.gate_proj.weight": "model-00004-of-00005.safetensors",
209
+ "layers.29.mlp.up_proj.weight": "model-00004-of-00005.safetensors",
210
+ "layers.29.post_attention_layernorm.weight": "model-00004-of-00005.safetensors",
211
+ "layers.29.self_attn.k_proj.weight": "model-00004-of-00005.safetensors",
212
+ "layers.29.self_attn.o_proj.weight": "model-00004-of-00005.safetensors",
213
+ "layers.29.self_attn.q_proj.weight": "model-00004-of-00005.safetensors",
214
+ "layers.29.self_attn.v_proj.weight": "model-00004-of-00005.safetensors",
215
+ "layers.3.input_layernorm.weight": "model-00001-of-00005.safetensors",
216
+ "layers.3.mlp.down_proj.weight": "model-00001-of-00005.safetensors",
217
+ "layers.3.mlp.gate_proj.weight": "model-00001-of-00005.safetensors",
218
+ "layers.3.mlp.up_proj.weight": "model-00001-of-00005.safetensors",
219
+ "layers.3.post_attention_layernorm.weight": "model-00001-of-00005.safetensors",
220
+ "layers.3.self_attn.k_proj.weight": "model-00001-of-00005.safetensors",
221
+ "layers.3.self_attn.o_proj.weight": "model-00001-of-00005.safetensors",
222
+ "layers.3.self_attn.q_proj.weight": "model-00001-of-00005.safetensors",
223
+ "layers.3.self_attn.v_proj.weight": "model-00001-of-00005.safetensors",
224
+ "layers.30.input_layernorm.weight": "model-00004-of-00005.safetensors",
225
+ "layers.30.mlp.down_proj.weight": "model-00004-of-00005.safetensors",
226
+ "layers.30.mlp.gate_proj.weight": "model-00004-of-00005.safetensors",
227
+ "layers.30.mlp.up_proj.weight": "model-00004-of-00005.safetensors",
228
+ "layers.30.post_attention_layernorm.weight": "model-00004-of-00005.safetensors",
229
+ "layers.30.self_attn.k_proj.weight": "model-00004-of-00005.safetensors",
230
+ "layers.30.self_attn.o_proj.weight": "model-00004-of-00005.safetensors",
231
+ "layers.30.self_attn.q_proj.weight": "model-00004-of-00005.safetensors",
232
+ "layers.30.self_attn.v_proj.weight": "model-00004-of-00005.safetensors",
233
+ "layers.31.input_layernorm.weight": "model-00004-of-00005.safetensors",
234
+ "layers.31.mlp.down_proj.weight": "model-00004-of-00005.safetensors",
235
+ "layers.31.mlp.gate_proj.weight": "model-00004-of-00005.safetensors",
236
+ "layers.31.mlp.up_proj.weight": "model-00004-of-00005.safetensors",
237
+ "layers.31.post_attention_layernorm.weight": "model-00004-of-00005.safetensors",
238
+ "layers.31.self_attn.k_proj.weight": "model-00004-of-00005.safetensors",
239
+ "layers.31.self_attn.o_proj.weight": "model-00004-of-00005.safetensors",
240
+ "layers.31.self_attn.q_proj.weight": "model-00004-of-00005.safetensors",
241
+ "layers.31.self_attn.v_proj.weight": "model-00004-of-00005.safetensors",
242
+ "layers.32.input_layernorm.weight": "model-00004-of-00005.safetensors",
243
+ "layers.32.mlp.down_proj.weight": "model-00004-of-00005.safetensors",
244
+ "layers.32.mlp.gate_proj.weight": "model-00004-of-00005.safetensors",
245
+ "layers.32.mlp.up_proj.weight": "model-00004-of-00005.safetensors",
246
+ "layers.32.post_attention_layernorm.weight": "model-00004-of-00005.safetensors",
247
+ "layers.32.self_attn.k_proj.weight": "model-00004-of-00005.safetensors",
248
+ "layers.32.self_attn.o_proj.weight": "model-00004-of-00005.safetensors",
249
+ "layers.32.self_attn.q_proj.weight": "model-00004-of-00005.safetensors",
250
+ "layers.32.self_attn.v_proj.weight": "model-00004-of-00005.safetensors",
251
+ "layers.33.input_layernorm.weight": "model-00004-of-00005.safetensors",
252
+ "layers.33.mlp.down_proj.weight": "model-00004-of-00005.safetensors",
253
+ "layers.33.mlp.gate_proj.weight": "model-00004-of-00005.safetensors",
254
+ "layers.33.mlp.up_proj.weight": "model-00004-of-00005.safetensors",
255
+ "layers.33.post_attention_layernorm.weight": "model-00004-of-00005.safetensors",
256
+ "layers.33.self_attn.k_proj.weight": "model-00004-of-00005.safetensors",
257
+ "layers.33.self_attn.o_proj.weight": "model-00004-of-00005.safetensors",
258
+ "layers.33.self_attn.q_proj.weight": "model-00004-of-00005.safetensors",
259
+ "layers.33.self_attn.v_proj.weight": "model-00004-of-00005.safetensors",
260
+ "layers.34.input_layernorm.weight": "model-00004-of-00005.safetensors",
261
+ "layers.34.mlp.down_proj.weight": "model-00004-of-00005.safetensors",
262
+ "layers.34.mlp.gate_proj.weight": "model-00004-of-00005.safetensors",
263
+ "layers.34.mlp.up_proj.weight": "model-00004-of-00005.safetensors",
264
+ "layers.34.post_attention_layernorm.weight": "model-00004-of-00005.safetensors",
265
+ "layers.34.self_attn.k_proj.weight": "model-00004-of-00005.safetensors",
266
+ "layers.34.self_attn.o_proj.weight": "model-00004-of-00005.safetensors",
267
+ "layers.34.self_attn.q_proj.weight": "model-00004-of-00005.safetensors",
268
+ "layers.34.self_attn.v_proj.weight": "model-00004-of-00005.safetensors",
269
+ "layers.35.input_layernorm.weight": "model-00004-of-00005.safetensors",
270
+ "layers.35.mlp.down_proj.weight": "model-00004-of-00005.safetensors",
271
+ "layers.35.mlp.gate_proj.weight": "model-00004-of-00005.safetensors",
272
+ "layers.35.mlp.up_proj.weight": "model-00004-of-00005.safetensors",
273
+ "layers.35.post_attention_layernorm.weight": "model-00004-of-00005.safetensors",
274
+ "layers.35.self_attn.k_proj.weight": "model-00004-of-00005.safetensors",
275
+ "layers.35.self_attn.o_proj.weight": "model-00004-of-00005.safetensors",
276
+ "layers.35.self_attn.q_proj.weight": "model-00004-of-00005.safetensors",
277
+ "layers.35.self_attn.v_proj.weight": "model-00004-of-00005.safetensors",
278
+ "layers.36.input_layernorm.weight": "model-00004-of-00005.safetensors",
279
+ "layers.36.mlp.down_proj.weight": "model-00004-of-00005.safetensors",
280
+ "layers.36.mlp.gate_proj.weight": "model-00005-of-00005.safetensors",
281
+ "layers.36.mlp.up_proj.weight": "model-00005-of-00005.safetensors",
282
+ "layers.36.post_attention_layernorm.weight": "model-00005-of-00005.safetensors",
283
+ "layers.36.self_attn.k_proj.weight": "model-00005-of-00005.safetensors",
284
+ "layers.36.self_attn.o_proj.weight": "model-00005-of-00005.safetensors",
285
+ "layers.36.self_attn.q_proj.weight": "model-00005-of-00005.safetensors",
286
+ "layers.36.self_attn.v_proj.weight": "model-00005-of-00005.safetensors",
287
+ "layers.37.input_layernorm.weight": "model-00005-of-00005.safetensors",
288
+ "layers.37.mlp.down_proj.weight": "model-00005-of-00005.safetensors",
289
+ "layers.37.mlp.gate_proj.weight": "model-00005-of-00005.safetensors",
290
+ "layers.37.mlp.up_proj.weight": "model-00005-of-00005.safetensors",
291
+ "layers.37.post_attention_layernorm.weight": "model-00005-of-00005.safetensors",
292
+ "layers.37.self_attn.k_proj.weight": "model-00005-of-00005.safetensors",
293
+ "layers.37.self_attn.o_proj.weight": "model-00005-of-00005.safetensors",
294
+ "layers.37.self_attn.q_proj.weight": "model-00005-of-00005.safetensors",
295
+ "layers.37.self_attn.v_proj.weight": "model-00005-of-00005.safetensors",
296
+ "layers.38.input_layernorm.weight": "model-00005-of-00005.safetensors",
297
+ "layers.38.mlp.down_proj.weight": "model-00005-of-00005.safetensors",
298
+ "layers.38.mlp.gate_proj.weight": "model-00005-of-00005.safetensors",
299
+ "layers.38.mlp.up_proj.weight": "model-00005-of-00005.safetensors",
300
+ "layers.38.post_attention_layernorm.weight": "model-00005-of-00005.safetensors",
301
+ "layers.38.self_attn.k_proj.weight": "model-00005-of-00005.safetensors",
302
+ "layers.38.self_attn.o_proj.weight": "model-00005-of-00005.safetensors",
303
+ "layers.38.self_attn.q_proj.weight": "model-00005-of-00005.safetensors",
304
+ "layers.38.self_attn.v_proj.weight": "model-00005-of-00005.safetensors",
305
+ "layers.39.input_layernorm.weight": "model-00005-of-00005.safetensors",
306
+ "layers.39.mlp.down_proj.weight": "model-00005-of-00005.safetensors",
307
+ "layers.39.mlp.gate_proj.weight": "model-00005-of-00005.safetensors",
308
+ "layers.39.mlp.up_proj.weight": "model-00005-of-00005.safetensors",
309
+ "layers.39.post_attention_layernorm.weight": "model-00005-of-00005.safetensors",
310
+ "layers.39.self_attn.k_proj.weight": "model-00005-of-00005.safetensors",
311
+ "layers.39.self_attn.o_proj.weight": "model-00005-of-00005.safetensors",
312
+ "layers.39.self_attn.q_proj.weight": "model-00005-of-00005.safetensors",
313
+ "layers.39.self_attn.v_proj.weight": "model-00005-of-00005.safetensors",
314
+ "layers.4.input_layernorm.weight": "model-00001-of-00005.safetensors",
315
+ "layers.4.mlp.down_proj.weight": "model-00001-of-00005.safetensors",
316
+ "layers.4.mlp.gate_proj.weight": "model-00001-of-00005.safetensors",
317
+ "layers.4.mlp.up_proj.weight": "model-00001-of-00005.safetensors",
318
+ "layers.4.post_attention_layernorm.weight": "model-00001-of-00005.safetensors",
319
+ "layers.4.self_attn.k_proj.weight": "model-00001-of-00005.safetensors",
320
+ "layers.4.self_attn.o_proj.weight": "model-00001-of-00005.safetensors",
321
+ "layers.4.self_attn.q_proj.weight": "model-00002-of-00005.safetensors",
322
+ "layers.4.self_attn.v_proj.weight": "model-00002-of-00005.safetensors",
323
+ "layers.40.input_layernorm.weight": "model-00005-of-00005.safetensors",
324
+ "layers.40.mlp.down_proj.weight": "model-00005-of-00005.safetensors",
325
+ "layers.40.mlp.gate_proj.weight": "model-00005-of-00005.safetensors",
326
+ "layers.40.mlp.up_proj.weight": "model-00005-of-00005.safetensors",
327
+ "layers.40.post_attention_layernorm.weight": "model-00005-of-00005.safetensors",
328
+ "layers.40.self_attn.k_proj.weight": "model-00005-of-00005.safetensors",
329
+ "layers.40.self_attn.o_proj.weight": "model-00005-of-00005.safetensors",
330
+ "layers.40.self_attn.q_proj.weight": "model-00005-of-00005.safetensors",
331
+ "layers.40.self_attn.v_proj.weight": "model-00005-of-00005.safetensors",
332
+ "layers.41.input_layernorm.weight": "model-00005-of-00005.safetensors",
333
+ "layers.41.mlp.down_proj.weight": "model-00005-of-00005.safetensors",
334
+ "layers.41.mlp.gate_proj.weight": "model-00005-of-00005.safetensors",
335
+ "layers.41.mlp.up_proj.weight": "model-00005-of-00005.safetensors",
336
+ "layers.41.post_attention_layernorm.weight": "model-00005-of-00005.safetensors",
337
+ "layers.41.self_attn.k_proj.weight": "model-00005-of-00005.safetensors",
338
+ "layers.41.self_attn.o_proj.weight": "model-00005-of-00005.safetensors",
339
+ "layers.41.self_attn.q_proj.weight": "model-00005-of-00005.safetensors",
340
+ "layers.41.self_attn.v_proj.weight": "model-00005-of-00005.safetensors",
341
+ "layers.5.input_layernorm.weight": "model-00002-of-00005.safetensors",
342
+ "layers.5.mlp.down_proj.weight": "model-00002-of-00005.safetensors",
343
+ "layers.5.mlp.gate_proj.weight": "model-00002-of-00005.safetensors",
344
+ "layers.5.mlp.up_proj.weight": "model-00002-of-00005.safetensors",
345
+ "layers.5.post_attention_layernorm.weight": "model-00002-of-00005.safetensors",
346
+ "layers.5.self_attn.k_proj.weight": "model-00002-of-00005.safetensors",
347
+ "layers.5.self_attn.o_proj.weight": "model-00002-of-00005.safetensors",
348
+ "layers.5.self_attn.q_proj.weight": "model-00002-of-00005.safetensors",
349
+ "layers.5.self_attn.v_proj.weight": "model-00002-of-00005.safetensors",
350
+ "layers.6.input_layernorm.weight": "model-00002-of-00005.safetensors",
351
+ "layers.6.mlp.down_proj.weight": "model-00002-of-00005.safetensors",
352
+ "layers.6.mlp.gate_proj.weight": "model-00002-of-00005.safetensors",
353
+ "layers.6.mlp.up_proj.weight": "model-00002-of-00005.safetensors",
354
+ "layers.6.post_attention_layernorm.weight": "model-00002-of-00005.safetensors",
355
+ "layers.6.self_attn.k_proj.weight": "model-00002-of-00005.safetensors",
356
+ "layers.6.self_attn.o_proj.weight": "model-00002-of-00005.safetensors",
357
+ "layers.6.self_attn.q_proj.weight": "model-00002-of-00005.safetensors",
358
+ "layers.6.self_attn.v_proj.weight": "model-00002-of-00005.safetensors",
359
+ "layers.7.input_layernorm.weight": "model-00002-of-00005.safetensors",
360
+ "layers.7.mlp.down_proj.weight": "model-00002-of-00005.safetensors",
361
+ "layers.7.mlp.gate_proj.weight": "model-00002-of-00005.safetensors",
362
+ "layers.7.mlp.up_proj.weight": "model-00002-of-00005.safetensors",
363
+ "layers.7.post_attention_layernorm.weight": "model-00002-of-00005.safetensors",
364
+ "layers.7.self_attn.k_proj.weight": "model-00002-of-00005.safetensors",
365
+ "layers.7.self_attn.o_proj.weight": "model-00002-of-00005.safetensors",
366
+ "layers.7.self_attn.q_proj.weight": "model-00002-of-00005.safetensors",
367
+ "layers.7.self_attn.v_proj.weight": "model-00002-of-00005.safetensors",
368
+ "layers.8.input_layernorm.weight": "model-00002-of-00005.safetensors",
369
+ "layers.8.mlp.down_proj.weight": "model-00002-of-00005.safetensors",
370
+ "layers.8.mlp.gate_proj.weight": "model-00002-of-00005.safetensors",
371
+ "layers.8.mlp.up_proj.weight": "model-00002-of-00005.safetensors",
372
+ "layers.8.post_attention_layernorm.weight": "model-00002-of-00005.safetensors",
373
+ "layers.8.self_attn.k_proj.weight": "model-00002-of-00005.safetensors",
374
+ "layers.8.self_attn.o_proj.weight": "model-00002-of-00005.safetensors",
375
+ "layers.8.self_attn.q_proj.weight": "model-00002-of-00005.safetensors",
376
+ "layers.8.self_attn.v_proj.weight": "model-00002-of-00005.safetensors",
377
+ "layers.9.input_layernorm.weight": "model-00002-of-00005.safetensors",
378
+ "layers.9.mlp.down_proj.weight": "model-00002-of-00005.safetensors",
379
+ "layers.9.mlp.gate_proj.weight": "model-00002-of-00005.safetensors",
380
+ "layers.9.mlp.up_proj.weight": "model-00002-of-00005.safetensors",
381
+ "layers.9.post_attention_layernorm.weight": "model-00002-of-00005.safetensors",
382
+ "layers.9.self_attn.k_proj.weight": "model-00002-of-00005.safetensors",
383
+ "layers.9.self_attn.o_proj.weight": "model-00002-of-00005.safetensors",
384
+ "layers.9.self_attn.q_proj.weight": "model-00002-of-00005.safetensors",
385
+ "layers.9.self_attn.v_proj.weight": "model-00002-of-00005.safetensors",
386
+ "norm.weight": "model-00005-of-00005.safetensors"
387
+ }
388
+ }
release_audit.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "secrets_scan": "passed",
3
+ "absolute_path_scan": "passed",
4
+ "required_readme_sections": "passed",
5
+ "readme_links": [
6
+ "https://huggingface.co/SargeDev",
7
+ "https://huggingface.co/datasets/SargeDev/jev-distill-corpus-v3",
8
+ "https://huggingface.co/link921/CPM-jev",
9
+ "https://huggingface.co/openbmb",
10
+ "https://huggingface.co/openbmb/MiniCPM5-2B-Base"
11
+ ],
12
+ "file_count": 24,
13
+ "bytes_before_manifest": 9007573580
14
+ }
requirements.txt CHANGED
@@ -1,5 +1,4 @@
1
  torch>=2.2.0
2
- transformers>=5.0.0
3
- peft>=0.17.0
4
  safetensors>=0.5.0
5
  huggingface-hub>=0.34.0
 
1
  torch>=2.2.0
2
+ transformers>=5.17.0,<6
 
3
  safetensors>=0.5.0
4
  huggingface-hub>=0.34.0
test_release.py CHANGED
@@ -13,7 +13,7 @@ ROOT = Path(__file__).resolve().parent
13
 
14
  def test_required_release_files_exist():
15
  required = {
16
- "README.md", "adapter_model.safetensors", "adapter_config.json",
17
  "decision_head.safetensors", "tokenizer.json", "tokenizer_config.json",
18
  "model.py", "inference.py", "requirements.txt", "example.py",
19
  "calibration.json", "evaluation_report.json",
@@ -22,22 +22,43 @@ def test_required_release_files_exist():
22
 
23
 
24
  def test_release_configs_are_portable():
25
- adapter = json.loads((ROOT / "adapter_config.json").read_text(encoding="utf-8"))
26
  calibration = json.loads((ROOT / "calibration.json").read_text(encoding="utf-8"))
27
- assert adapter["base_model_name_or_path"] == "openbmb/MiniCPM5-2B-Base"
 
28
  assert calibration["use_temperature"] is False
29
  assert calibration["default_prediction"] == "raw"
30
 
31
 
32
  def test_safetensors_are_readable_and_finite():
33
- for name in ("adapter_model.safetensors", "decision_head.safetensors"):
34
- with safe_open(ROOT / name, framework="pt", device="cpu") as handle:
 
35
  keys = list(handle.keys())
36
  assert keys
37
  for key in keys:
 
38
  assert torch.isfinite(handle.get_tensor(key)).all(), key
39
 
40
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
41
  def test_probability_sum_with_stubbed_runtime(monkeypatch):
42
  model = DecisionModel.__new__(DecisionModel)
43
  model.device = torch.device("cpu")
 
13
 
14
  def test_required_release_files_exist():
15
  required = {
16
+ "README.md", "config.json", "model.safetensors.index.json",
17
  "decision_head.safetensors", "tokenizer.json", "tokenizer_config.json",
18
  "model.py", "inference.py", "requirements.txt", "example.py",
19
  "calibration.json", "evaluation_report.json",
 
22
 
23
 
24
  def test_release_configs_are_portable():
25
+ config = json.loads((ROOT / "config.json").read_text(encoding="utf-8"))
26
  calibration = json.loads((ROOT / "calibration.json").read_text(encoding="utf-8"))
27
+ assert config["model_type"] == "llama"
28
+ assert not (ROOT / "adapter_config.json").exists()
29
  assert calibration["use_temperature"] is False
30
  assert calibration["default_prediction"] == "raw"
31
 
32
 
33
  def test_safetensors_are_readable_and_finite():
34
+ torch.set_num_threads(8)
35
+ for path in ROOT.glob("*.safetensors"):
36
+ with safe_open(path, framework="pt", device="cpu") as handle:
37
  keys = list(handle.keys())
38
  assert keys
39
  for key in keys:
40
+ assert "lora_" not in key
41
  assert torch.isfinite(handle.get_tensor(key)).all(), key
42
 
43
 
44
+ def test_shard_index_is_complete():
45
+ index = json.loads((ROOT / "model.safetensors.index.json").read_text())
46
+ actual = set()
47
+ for filename in set(index["weight_map"].values()):
48
+ with safe_open(ROOT / filename, framework="pt") as f:
49
+ actual.update(f.keys())
50
+ assert all(index["weight_map"][key] == filename for key in f.keys())
51
+ assert actual == set(index["weight_map"])
52
+
53
+
54
+ def test_merge_and_reload_validation():
55
+ report = json.loads((ROOT / "merge_verification.json").read_text())
56
+ assert report["original_weights_unchanged"]
57
+ for stage in ["merge", "reload"]:
58
+ assert report[stage]["all_choices_match"]
59
+ assert report[stage]["max_absolute_probability_delta"] < 1e-4
60
+
61
+
62
  def test_probability_sum_with_stubbed_runtime(monkeypatch):
63
  model = DecisionModel.__new__(DecisionModel)
64
  model.device = torch.device("cpu")
tokenizer.json CHANGED
@@ -1,7 +1,19 @@
1
  {
2
  "version": "1.0",
3
- "truncation": null,
4
- "padding": null,
 
 
 
 
 
 
 
 
 
 
 
 
5
  "added_tokens": [
6
  {
7
  "id": 0,
 
1
  {
2
  "version": "1.0",
3
+ "truncation": {
4
+ "direction": "Left",
5
+ "max_length": 512,
6
+ "strategy": "LongestFirst",
7
+ "stride": 0
8
+ },
9
+ "padding": {
10
+ "strategy": "BatchLongest",
11
+ "direction": "Right",
12
+ "pad_to_multiple_of": null,
13
+ "pad_id": 1,
14
+ "pad_type_id": 0,
15
+ "pad_token": "</s>"
16
+ },
17
  "added_tokens": [
18
  {
19
  "id": 0,
tokenizer_config.json CHANGED
@@ -4,7 +4,9 @@
4
  "bos_token": "<s>",
5
  "clean_up_tokenization_spaces": false,
6
  "eos_token": "</s>",
 
7
  "legacy": true,
 
8
  "model_max_length": 524288,
9
  "pad_token": "</s>",
10
  "sp_model_kwargs": {},
 
4
  "bos_token": "<s>",
5
  "clean_up_tokenization_spaces": false,
6
  "eos_token": "</s>",
7
+ "is_local": true,
8
  "legacy": true,
9
+ "local_files_only": true,
10
  "model_max_length": 524288,
11
  "pad_token": "</s>",
12
  "sp_model_kwargs": {},
validation_report.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "all_checks_passed": true,
3
+ "clean_environment_without_peft": true,
4
+ "offline_load": true,
5
+ "example": {
6
+ "options": [
7
+ "retry",
8
+ "switch_tool",
9
+ "ask_user"
10
+ ],
11
+ "probabilities": [
12
+ 0.4461660087108612,
13
+ 0.279928594827652,
14
+ 0.273905485868454
15
+ ],
16
+ "choice": "retry",
17
+ "confidence": 0.4461660087108612
18
+ },
19
+ "probability_sum": 1.0000000894069672,
20
+ "pytest": "7 passed",
21
+ "tensor_integrity": "all tensors finite; shard index complete",
22
+ "secrets_scan": "passed",
23
+ "readme_links": "5/5 HTTP 200",
24
+ "torch": "2.14.0+cpu",
25
+ "transformers": "5.18.0"
26
+ }