Text Classification
Transformers
ONNX
Safetensors
GGUF
Transformers.js
English
modernbert
shell
security
coding-agents
multi-label-classification
text-embeddings-inference
Instructions to use jensilo/acclass with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jensilo/acclass with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="jensilo/acclass")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("jensilo/acclass") model = AutoModelForSequenceClassification.from_pretrained("jensilo/acclass", device_map="auto") - Transformers.js
How to use jensilo/acclass with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('text-classification', 'jensilo/acclass'); - Notebooks
- Google Colab
- Kaggle
Add acclass v1.0.0 weights, web build and model card
Browse files- .gitattributes +2 -0
- LICENSE +201 -0
- README.md +192 -0
- config.json +100 -0
- gguf/q5/model.gguf +3 -0
- gguf/q5/model_contract.json +74 -0
- gguf/q8/model.gguf +3 -0
- gguf/q8/model_contract.json +74 -0
- heads.json +1 -0
- legal/ATTRIBUTIONS.md +27 -0
- legal/ModernBERT-Apache-2.0.txt +201 -0
- model.safetensors +3 -0
- model_contract.json +71 -0
- onnx/model_fp16.onnx +3 -0
- thresholds.json +1 -0
- tokenizer.json +0 -0
- tokenizer_config.json +10 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
gguf/q5/model.gguf filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
gguf/q8/model.gguf filter=lfs diff=lfs merge=lfs -text
|
LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Apache License
|
| 2 |
+
Version 2.0, January 2004
|
| 3 |
+
http://www.apache.org/licenses/
|
| 4 |
+
|
| 5 |
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
| 6 |
+
|
| 7 |
+
1. Definitions.
|
| 8 |
+
|
| 9 |
+
"License" shall mean the terms and conditions for use, reproduction,
|
| 10 |
+
and distribution as defined by Sections 1 through 9 of this document.
|
| 11 |
+
|
| 12 |
+
"Licensor" shall mean the copyright owner or entity authorized by
|
| 13 |
+
the copyright owner that is granting the License.
|
| 14 |
+
|
| 15 |
+
"Legal Entity" shall mean the union of the acting entity and all
|
| 16 |
+
other entities that control, are controlled by, or are under common
|
| 17 |
+
control with that entity. For the purposes of this definition,
|
| 18 |
+
"control" means (i) the power, direct or indirect, to cause the
|
| 19 |
+
direction or management of such entity, whether by contract or
|
| 20 |
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
| 21 |
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
| 22 |
+
|
| 23 |
+
"You" (or "Your") shall mean an individual or Legal Entity
|
| 24 |
+
exercising permissions granted by this License.
|
| 25 |
+
|
| 26 |
+
"Source" form shall mean the preferred form for making modifications,
|
| 27 |
+
including but not limited to software source code, documentation
|
| 28 |
+
source, and configuration files.
|
| 29 |
+
|
| 30 |
+
"Object" form shall mean any form resulting from mechanical
|
| 31 |
+
transformation or translation of a Source form, including but
|
| 32 |
+
not limited to compiled object code, generated documentation,
|
| 33 |
+
and conversions to other media types.
|
| 34 |
+
|
| 35 |
+
"Work" shall mean the work of authorship, whether in Source or
|
| 36 |
+
Object form, made available under the License, as indicated by a
|
| 37 |
+
copyright notice that is included in or attached to the work
|
| 38 |
+
(an example is provided in the Appendix below).
|
| 39 |
+
|
| 40 |
+
"Derivative Works" shall mean any work, whether in Source or Object
|
| 41 |
+
form, that is based on (or derived from) the Work and for which the
|
| 42 |
+
editorial revisions, annotations, elaborations, or other modifications
|
| 43 |
+
represent, as a whole, an original work of authorship. For the purposes
|
| 44 |
+
of this License, Derivative Works shall not include works that remain
|
| 45 |
+
separable from, or merely link (or bind by name) to the interfaces of,
|
| 46 |
+
the Work and Derivative Works thereof.
|
| 47 |
+
|
| 48 |
+
"Contribution" shall mean any work of authorship, including
|
| 49 |
+
the original version of the Work and any modifications or additions
|
| 50 |
+
to that Work or Derivative Works thereof, that is intentionally
|
| 51 |
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
| 52 |
+
or by an individual or Legal Entity authorized to submit on behalf of
|
| 53 |
+
the copyright owner. For the purposes of this definition, "submitted"
|
| 54 |
+
means any form of electronic, verbal, or written communication sent
|
| 55 |
+
to the Licensor or its representatives, including but not limited to
|
| 56 |
+
communication on electronic mailing lists, source code control systems,
|
| 57 |
+
and issue tracking systems that are managed by, or on behalf of, the
|
| 58 |
+
Licensor for the purpose of discussing and improving the Work, but
|
| 59 |
+
excluding communication that is conspicuously marked or otherwise
|
| 60 |
+
designated in writing by the copyright owner as "Not a Contribution."
|
| 61 |
+
|
| 62 |
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
| 63 |
+
on behalf of whom a Contribution has been received by Licensor and
|
| 64 |
+
subsequently incorporated within the Work.
|
| 65 |
+
|
| 66 |
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
| 67 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 68 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 69 |
+
copyright license to reproduce, prepare Derivative Works of,
|
| 70 |
+
publicly display, publicly perform, sublicense, and distribute the
|
| 71 |
+
Work and such Derivative Works in Source or Object form.
|
| 72 |
+
|
| 73 |
+
3. Grant of Patent License. Subject to the terms and conditions of
|
| 74 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 75 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 76 |
+
(except as stated in this section) patent license to make, have made,
|
| 77 |
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
| 78 |
+
where such license applies only to those patent claims licensable
|
| 79 |
+
by such Contributor that are necessarily infringed by their
|
| 80 |
+
Contribution(s) alone or by combination of their Contribution(s)
|
| 81 |
+
with the Work to which such Contribution(s) was submitted. If You
|
| 82 |
+
institute patent litigation against any entity (including a
|
| 83 |
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
| 84 |
+
or a Contribution incorporated within the Work constitutes direct
|
| 85 |
+
or contributory patent infringement, then any patent licenses
|
| 86 |
+
granted to You under this License for that Work shall terminate
|
| 87 |
+
as of the date such litigation is filed.
|
| 88 |
+
|
| 89 |
+
4. Redistribution. You may reproduce and distribute copies of the
|
| 90 |
+
Work or Derivative Works thereof in any medium, with or without
|
| 91 |
+
modifications, and in Source or Object form, provided that You
|
| 92 |
+
meet the following conditions:
|
| 93 |
+
|
| 94 |
+
(a) You must give any other recipients of the Work or
|
| 95 |
+
Derivative Works a copy of this License; and
|
| 96 |
+
|
| 97 |
+
(b) You must cause any modified files to carry prominent notices
|
| 98 |
+
stating that You changed the files; and
|
| 99 |
+
|
| 100 |
+
(c) You must retain, in the Source form of any Derivative Works
|
| 101 |
+
that You distribute, all copyright, patent, trademark, and
|
| 102 |
+
attribution notices from the Source form of the Work,
|
| 103 |
+
excluding those notices that do not pertain to any part of
|
| 104 |
+
the Derivative Works; and
|
| 105 |
+
|
| 106 |
+
(d) If the Work includes a "NOTICE" text file as part of its
|
| 107 |
+
distribution, then any Derivative Works that You distribute must
|
| 108 |
+
include a readable copy of the attribution notices contained
|
| 109 |
+
within such NOTICE file, excluding those notices that do not
|
| 110 |
+
pertain to any part of the Derivative Works, in at least one
|
| 111 |
+
of the following places: within a NOTICE text file distributed
|
| 112 |
+
as part of the Derivative Works; within the Source form or
|
| 113 |
+
documentation, if provided along with the Derivative Works; or,
|
| 114 |
+
within a display generated by the Derivative Works, if and
|
| 115 |
+
wherever such third-party notices normally appear. The contents
|
| 116 |
+
of the NOTICE file are for informational purposes only and
|
| 117 |
+
do not modify the License. You may add Your own attribution
|
| 118 |
+
notices within Derivative Works that You distribute, alongside
|
| 119 |
+
or as an addendum to the NOTICE text from the Work, provided
|
| 120 |
+
that such additional attribution notices cannot be construed
|
| 121 |
+
as modifying the License.
|
| 122 |
+
|
| 123 |
+
You may add Your own copyright statement to Your modifications and
|
| 124 |
+
may provide additional or different license terms and conditions
|
| 125 |
+
for use, reproduction, or distribution of Your modifications, or
|
| 126 |
+
for any such Derivative Works as a whole, provided Your use,
|
| 127 |
+
reproduction, and distribution of the Work otherwise complies with
|
| 128 |
+
the conditions stated in this License.
|
| 129 |
+
|
| 130 |
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
| 131 |
+
any Contribution intentionally submitted for inclusion in the Work
|
| 132 |
+
by You to the Licensor shall be under the terms and conditions of
|
| 133 |
+
this License, without any additional terms or conditions.
|
| 134 |
+
Notwithstanding the above, nothing herein shall supersede or modify
|
| 135 |
+
the terms of any separate license agreement you may have executed
|
| 136 |
+
with Licensor regarding such Contributions.
|
| 137 |
+
|
| 138 |
+
6. Trademarks. This License does not grant permission to use the trade
|
| 139 |
+
names, trademarks, service marks, or product names of the Licensor,
|
| 140 |
+
except as required for reasonable and customary use in describing the
|
| 141 |
+
origin of the Work and reproducing the content of the NOTICE file.
|
| 142 |
+
|
| 143 |
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
| 144 |
+
agreed to in writing, Licensor provides the Work (and each
|
| 145 |
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
| 146 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
| 147 |
+
implied, including, without limitation, any warranties or conditions
|
| 148 |
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
| 149 |
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
| 150 |
+
appropriateness of using or redistributing the Work and assume any
|
| 151 |
+
risks associated with Your exercise of permissions under this License.
|
| 152 |
+
|
| 153 |
+
8. Limitation of Liability. In no event and under no legal theory,
|
| 154 |
+
whether in tort (including negligence), contract, or otherwise,
|
| 155 |
+
unless required by applicable law (such as deliberate and grossly
|
| 156 |
+
negligent acts) or agreed to in writing, shall any Contributor be
|
| 157 |
+
liable to You for damages, including any direct, indirect, special,
|
| 158 |
+
incidental, or consequential damages of any character arising as a
|
| 159 |
+
result of this License or out of the use or inability to use the
|
| 160 |
+
Work (including but not limited to damages for loss of goodwill,
|
| 161 |
+
work stoppage, computer failure or malfunction, or any and all
|
| 162 |
+
other commercial damages or losses), even if such Contributor
|
| 163 |
+
has been advised of the possibility of such damages.
|
| 164 |
+
|
| 165 |
+
9. Accepting Warranty or Additional Liability. While redistributing
|
| 166 |
+
the Work or Derivative Works thereof, You may choose to offer,
|
| 167 |
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
| 168 |
+
or other liability obligations and/or rights consistent with this
|
| 169 |
+
License. However, in accepting such obligations, You may act only
|
| 170 |
+
on Your own behalf and on Your sole responsibility, not on behalf
|
| 171 |
+
of any other Contributor, and only if You agree to indemnify,
|
| 172 |
+
defend, and hold each Contributor harmless for any liability
|
| 173 |
+
incurred by, or claims asserted against, such Contributor by reason
|
| 174 |
+
of your accepting any such warranty or additional liability.
|
| 175 |
+
|
| 176 |
+
END OF TERMS AND CONDITIONS
|
| 177 |
+
|
| 178 |
+
APPENDIX: How to apply the Apache License to your work.
|
| 179 |
+
|
| 180 |
+
To apply the Apache License to your work, attach the following
|
| 181 |
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
| 182 |
+
replaced with your own identifying information. (Don't include
|
| 183 |
+
the brackets!) The text should be enclosed in the appropriate
|
| 184 |
+
comment syntax for the file format. We also recommend that a
|
| 185 |
+
file or class name and description of purpose be included on the
|
| 186 |
+
same "printed page" as the copyright notice for easier
|
| 187 |
+
identification within third-party archives.
|
| 188 |
+
|
| 189 |
+
Copyright [yyyy] [name of copyright owner]
|
| 190 |
+
|
| 191 |
+
Licensed under the Apache License, Version 2.0 (the "License");
|
| 192 |
+
you may not use this file except in compliance with the License.
|
| 193 |
+
You may obtain a copy of the License at
|
| 194 |
+
|
| 195 |
+
http://www.apache.org/licenses/LICENSE-2.0
|
| 196 |
+
|
| 197 |
+
Unless required by applicable law or agreed to in writing, software
|
| 198 |
+
distributed under the License is distributed on an "AS IS" BASIS,
|
| 199 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 200 |
+
See the License for the specific language governing permissions and
|
| 201 |
+
limitations under the License.
|
README.md
CHANGED
|
@@ -1,3 +1,195 @@
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
+
base_model: answerdotai/ModernBERT-base
|
| 4 |
+
pipeline_tag: text-classification
|
| 5 |
+
library_name: transformers
|
| 6 |
+
language: en
|
| 7 |
+
tags:
|
| 8 |
+
- modernbert
|
| 9 |
+
- shell
|
| 10 |
+
- security
|
| 11 |
+
- coding-agents
|
| 12 |
+
- multi-label-classification
|
| 13 |
+
- gguf
|
| 14 |
+
- onnx
|
| 15 |
+
- transformers.js
|
| 16 |
---
|
| 17 |
+
|
| 18 |
+
# acclass
|
| 19 |
+
|
| 20 |
+
acclass is a local classifier for coding agents. You give it a shell command or an
|
| 21 |
+
action description. It predicts what the action does. It does not run the action.
|
| 22 |
+
|
| 23 |
+
It predicts effects, not permission. It is a fast pre-filter, not a sandbox. It does
|
| 24 |
+
not guarantee safety. Use it as one input to your own policy or review step.
|
| 25 |
+
|
| 26 |
+
- **Base model:** `answerdotai/ModernBERT-base`, revision `8949b909ec900327062f0ebf497f51aef5e6f0c8` (Apache 2.0).
|
| 27 |
+
- **Outputs:** nine independent sigmoid outputs on mean-pooled tokens.
|
| 28 |
+
- **Threshold:** 0.5 for every label.
|
| 29 |
+
- **Data:** 26,852 rows of original synthetic data. The data is not published.
|
| 30 |
+
- **Context limit:** 2,048 tokens, including special tokens.
|
| 31 |
+
|
| 32 |
+
## Labels
|
| 33 |
+
|
| 34 |
+
| Label | The action ... |
|
| 35 |
+
| --- | --- |
|
| 36 |
+
| `local_state_change` | changes local files, configuration, services or devices |
|
| 37 |
+
| `outbound` | uses a network endpoint on another machine |
|
| 38 |
+
| `egress` | sends local data off this machine |
|
| 39 |
+
| `remote_state_change` | changes state on another machine or service |
|
| 40 |
+
| `delegated_execution` | runs a command in a separate environment |
|
| 41 |
+
| `exposes_secrets` | reveals secret values |
|
| 42 |
+
| `destructive` | deletes or overwrites data, or disrupts availability |
|
| 43 |
+
| `host_control_change` | changes operating system or security controls |
|
| 44 |
+
| `fetched_or_generated_execution` | runs code that it downloaded, decoded or assembled |
|
| 45 |
+
|
| 46 |
+
See [semantics](https://github.com/jensilo/acclass/blob/main/docs/semantics.md) for the exact definitions.
|
| 47 |
+
|
| 48 |
+
## Files
|
| 49 |
+
|
| 50 |
+
| Path | Size | Use |
|
| 51 |
+
| --- | ---: | --- |
|
| 52 |
+
| `model.safetensors` | 570.7 MiB | FP32 weights. Python transformers. |
|
| 53 |
+
| `model_contract.json` | 2,969 B | Contract for the FP32 weights. |
|
| 54 |
+
| `config.json` | 2,511 B | Model config. Labels in `id2label`. |
|
| 55 |
+
| `tokenizer.json` | 3.4 MiB | Tokenizer. |
|
| 56 |
+
| `tokenizer_config.json` | 241 B | Tokenizer config. |
|
| 57 |
+
| `heads.json` | 174 B | Label order. |
|
| 58 |
+
| `thresholds.json` | 227 B | Threshold per label (0.5). |
|
| 59 |
+
| `gguf/q8/model.gguf` | 151.7 MiB | Q8_0 weights. Default for the engine. |
|
| 60 |
+
| `gguf/q8/model_contract.json` | 3,168 B | Contract for Q8. |
|
| 61 |
+
| `gguf/q5/model.gguf` | 98.2 MiB | Q5_0 weights. Smaller. |
|
| 62 |
+
| `gguf/q5/model_contract.json` | 3,168 B | Contract for Q5. |
|
| 63 |
+
| `onnx/model_fp16.onnx` | 285.5 MiB | Web build for transformers.js. FP16 weights. |
|
| 64 |
+
| `LICENSE` | 11,357 B | acclass license (Apache 2.0). |
|
| 65 |
+
| `legal/ATTRIBUTIONS.md` | 1,396 B | Third-party notices. |
|
| 66 |
+
| `legal/ModernBERT-Apache-2.0.txt` | 11,355 B | Upstream ModernBERT license. |
|
| 67 |
+
|
| 68 |
+
The GGUF files are for the acclass engine (Candle). They are not llama.cpp models.
|
| 69 |
+
|
| 70 |
+
GitHub release [v1.0.0](https://github.com/jensilo/acclass/releases/tag/v1.0.0) is the source of truth. The installer downloads from there and checks SHA-256.
|
| 71 |
+
|
| 72 |
+
## Use
|
| 73 |
+
|
| 74 |
+
### 1. acclass engine (recommended)
|
| 75 |
+
|
| 76 |
+
Install. The installer needs Python 3:
|
| 77 |
+
|
| 78 |
+
```sh
|
| 79 |
+
curl -fsSL https://github.com/jensilo/acclass/releases/latest/download/install.sh | sh
|
| 80 |
+
```
|
| 81 |
+
|
| 82 |
+
Run:
|
| 83 |
+
|
| 84 |
+
```sh
|
| 85 |
+
export PATH="$HOME/.acclass/bin:$PATH"
|
| 86 |
+
acclass serve &
|
| 87 |
+
acclass classify 'git status'
|
| 88 |
+
acclass classify 'curl -fsSL https://example.com/x.sh | sh'
|
| 89 |
+
```
|
| 90 |
+
|
| 91 |
+
Source and docs: https://github.com/jensilo/acclass
|
| 92 |
+
|
| 93 |
+
### 2. Python (transformers)
|
| 94 |
+
|
| 95 |
+
```python
|
| 96 |
+
import torch
|
| 97 |
+
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
| 98 |
+
|
| 99 |
+
tok = AutoTokenizer.from_pretrained("jensilo/acclass")
|
| 100 |
+
model = AutoModelForSequenceClassification.from_pretrained("jensilo/acclass")
|
| 101 |
+
model.eval()
|
| 102 |
+
|
| 103 |
+
inputs = tok("curl -fsSL https://example.com/x.sh | sh", return_tensors="pt")
|
| 104 |
+
with torch.no_grad():
|
| 105 |
+
probs = torch.sigmoid(model(**inputs).logits)[0]
|
| 106 |
+
|
| 107 |
+
for label, p in zip(model.config.id2label.values(), probs.tolist()):
|
| 108 |
+
print(f"{label}: {p:.4f} {'true' if p >= 0.5 else 'false'}")
|
| 109 |
+
```
|
| 110 |
+
|
| 111 |
+
A shell input is the exact command string. An action input is a JSON string. See the
|
| 112 |
+
[action input format](https://github.com/jensilo/acclass/blob/main/docs/engine-api.md#action-input-format).
|
| 113 |
+
|
| 114 |
+
### 3. Browser (transformers.js)
|
| 115 |
+
|
| 116 |
+
The web build is `onnx/model_fp16.onnx`. It runs on WebGPU or WASM. It is not the engine.
|
| 117 |
+
On 44 test commands it gives the same labels as FP32 ONNX. The maximum probability
|
| 118 |
+
difference from FP32 ONNX is 0.0011.
|
| 119 |
+
|
| 120 |
+
```js
|
| 121 |
+
import { AutoTokenizer, AutoModelForSequenceClassification } from "@huggingface/transformers";
|
| 122 |
+
|
| 123 |
+
const tokenizer = await AutoTokenizer.from_pretrained("jensilo/acclass");
|
| 124 |
+
const model = await AutoModelForSequenceClassification.from_pretrained("jensilo/acclass", {
|
| 125 |
+
device: "webgpu", // or "wasm"
|
| 126 |
+
dtype: "fp16",
|
| 127 |
+
});
|
| 128 |
+
const { logits } = await model(await tokenizer("git status"));
|
| 129 |
+
const probs = Array.from(logits.data, (x) => 1 / (1 + Math.exp(-x)));
|
| 130 |
+
```
|
| 131 |
+
|
| 132 |
+
Demo: https://jensilo.github.io/acclass/
|
| 133 |
+
|
| 134 |
+
## Performance
|
| 135 |
+
|
| 136 |
+
Time for one model pass, one request at a time, without tokenizer or socket time.
|
| 137 |
+
Median / 95th percentile, in ms. Rough values from shared machines. Your values can differ.
|
| 138 |
+
|
| 139 |
+
| Hardware | FP32 | Q8 | Q5 |
|
| 140 |
+
| --- | --- | --- | --- |
|
| 141 |
+
| NVIDIA GB10 (DGX Spark), CUDA | 7.9 / 24 | 4.2 / 16 | 4.2 / 16 |
|
| 142 |
+
| Apple M4 Pro, Metal | 8.5 / 53 | 6.5 / 50 | 6.9 / 53 |
|
| 143 |
+
| Apple M4 Pro, CPU, 8 threads | 43 / 228 | 25 / 131 | 24 / 130 |
|
| 144 |
+
| Arm Cortex-X925, CPU, 8 threads | 76 / 438 | 21 / 326 | 21 / 222 |
|
| 145 |
+
| AMD Ryzen 5 6650U, CPU, 6 threads | 66 / 760 | 50 / 717 | 51 / 544 |
|
| 146 |
+
|
| 147 |
+
Apple and GB10 values use this model. The others use an earlier model with the same
|
| 148 |
+
architecture. The prebuilt CUDA engine is tested only on GB10.
|
| 149 |
+
|
| 150 |
+
## Quality
|
| 151 |
+
|
| 152 |
+
Macro F1 (average over the nine labels), threshold 0.5, 3,793 held-out evaluation rows.
|
| 153 |
+
|
| 154 |
+
| Format | Size | Macro F1 shell / action | Flips vs FP32 |
|
| 155 |
+
| --- | ---: | --- | ---: |
|
| 156 |
+
| FP32 | 570.7 MiB | 0.940 / 0.961 | reference |
|
| 157 |
+
| Q8_0 (default) | 151.7 MiB | 0.941 / 0.960 | 19 |
|
| 158 |
+
| Q5_0 | 98.2 MiB | 0.939 / 0.960 | 85 |
|
| 159 |
+
|
| 160 |
+
A flip is a boolean that differs from FP32. The comparison uses 34,137 decisions.
|
| 161 |
+
|
| 162 |
+
Shell, all: 0.940 macro F1 (95% CI 0.925–0.952). Action, all: 0.961 (95% CI 0.948–0.971).
|
| 163 |
+
Base rows are the better estimate. See [limits](#limits).
|
| 164 |
+
|
| 165 |
+
Weakest results:
|
| 166 |
+
|
| 167 |
+
- Shell `fetched_or_generated_execution` on base rows: F1 0.72.
|
| 168 |
+
- Action `exposes_secrets` on base rows: F1 0.82.
|
| 169 |
+
- Action `egress`: F1 0.84.
|
| 170 |
+
|
| 171 |
+
## Limits
|
| 172 |
+
|
| 173 |
+
Never use a negative prediction as the only reason to allow something that matters. Never
|
| 174 |
+
use a prediction as an irreversible block.
|
| 175 |
+
|
| 176 |
+
- **It does not guarantee safety.** False negatives occur. Keep OS isolation and review for
|
| 177 |
+
anything that matters.
|
| 178 |
+
- **An LLM wrote the labels.** They are not independent human truth.
|
| 179 |
+
- **Most of the data is LLM-generated.** LLM-authored evaluation rows share style with
|
| 180 |
+
training rows, so their scores are optimistic.
|
| 181 |
+
- **Accuracy on your own commands is not measured.**
|
| 182 |
+
- **Action mode was trained on invented tool descriptions.** Real tool descriptions can be
|
| 183 |
+
wrong or incomplete. Treat action predictions as hints that need review.
|
| 184 |
+
- **The model sees only the text.** It does not see files, environment or user intent.
|
| 185 |
+
- **The scores say nothing about resistance to adversarial inputs.**
|
| 186 |
+
|
| 187 |
+
A low probability does not prove that an effect is absent. A high probability does not mean
|
| 188 |
+
that the action is forbidden. Keep an explicit policy for uncertain inputs and engine errors.
|
| 189 |
+
|
| 190 |
+
Full model card: https://github.com/jensilo/acclass/blob/main/docs/model-card.md
|
| 191 |
+
|
| 192 |
+
## License
|
| 193 |
+
|
| 194 |
+
Apache 2.0, for original acclass code, documentation and model changes. Third-party material
|
| 195 |
+
keeps its own terms. See [notices](https://github.com/jensilo/acclass/blob/main/legal/ATTRIBUTIONS.md).
|
config.json
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"ModernBertForSequenceClassification"
|
| 4 |
+
],
|
| 5 |
+
"attention_bias": false,
|
| 6 |
+
"attention_dropout": 0.0,
|
| 7 |
+
"bos_token_id": 50281,
|
| 8 |
+
"classifier_activation": "gelu",
|
| 9 |
+
"classifier_bias": false,
|
| 10 |
+
"classifier_dropout": 0.0,
|
| 11 |
+
"classifier_pooling": "mean",
|
| 12 |
+
"cls_token_id": 50281,
|
| 13 |
+
"decoder_bias": true,
|
| 14 |
+
"deterministic_flash_attn": false,
|
| 15 |
+
"dtype": "float32",
|
| 16 |
+
"embedding_dropout": 0.0,
|
| 17 |
+
"eos_token_id": 50282,
|
| 18 |
+
"global_attn_every_n_layers": 3,
|
| 19 |
+
"gradient_checkpointing": false,
|
| 20 |
+
"hidden_activation": "gelu",
|
| 21 |
+
"hidden_size": 768,
|
| 22 |
+
"id2label": {
|
| 23 |
+
"0": "local_state_change",
|
| 24 |
+
"1": "outbound",
|
| 25 |
+
"2": "egress",
|
| 26 |
+
"3": "remote_state_change",
|
| 27 |
+
"4": "delegated_execution",
|
| 28 |
+
"5": "exposes_secrets",
|
| 29 |
+
"6": "destructive",
|
| 30 |
+
"7": "host_control_change",
|
| 31 |
+
"8": "fetched_or_generated_execution"
|
| 32 |
+
},
|
| 33 |
+
"initializer_cutoff_factor": 2.0,
|
| 34 |
+
"initializer_range": 0.02,
|
| 35 |
+
"intermediate_size": 1152,
|
| 36 |
+
"label2id": {
|
| 37 |
+
"delegated_execution": 4,
|
| 38 |
+
"destructive": 6,
|
| 39 |
+
"egress": 2,
|
| 40 |
+
"exposes_secrets": 5,
|
| 41 |
+
"fetched_or_generated_execution": 8,
|
| 42 |
+
"host_control_change": 7,
|
| 43 |
+
"local_state_change": 0,
|
| 44 |
+
"outbound": 1,
|
| 45 |
+
"remote_state_change": 3
|
| 46 |
+
},
|
| 47 |
+
"layer_norm_eps": 1e-05,
|
| 48 |
+
"layer_types": [
|
| 49 |
+
"full_attention",
|
| 50 |
+
"sliding_attention",
|
| 51 |
+
"sliding_attention",
|
| 52 |
+
"full_attention",
|
| 53 |
+
"sliding_attention",
|
| 54 |
+
"sliding_attention",
|
| 55 |
+
"full_attention",
|
| 56 |
+
"sliding_attention",
|
| 57 |
+
"sliding_attention",
|
| 58 |
+
"full_attention",
|
| 59 |
+
"sliding_attention",
|
| 60 |
+
"sliding_attention",
|
| 61 |
+
"full_attention",
|
| 62 |
+
"sliding_attention",
|
| 63 |
+
"sliding_attention",
|
| 64 |
+
"full_attention",
|
| 65 |
+
"sliding_attention",
|
| 66 |
+
"sliding_attention",
|
| 67 |
+
"full_attention",
|
| 68 |
+
"sliding_attention",
|
| 69 |
+
"sliding_attention",
|
| 70 |
+
"full_attention"
|
| 71 |
+
],
|
| 72 |
+
"local_attention": 128,
|
| 73 |
+
"max_position_embeddings": 8192,
|
| 74 |
+
"mlp_bias": false,
|
| 75 |
+
"mlp_dropout": 0.0,
|
| 76 |
+
"model_type": "modernbert",
|
| 77 |
+
"norm_bias": false,
|
| 78 |
+
"norm_eps": 1e-05,
|
| 79 |
+
"num_attention_heads": 12,
|
| 80 |
+
"num_hidden_layers": 22,
|
| 81 |
+
"pad_token_id": 50283,
|
| 82 |
+
"position_embedding_type": "absolute",
|
| 83 |
+
"problem_type": "multi_label_classification",
|
| 84 |
+
"rope_parameters": {
|
| 85 |
+
"full_attention": {
|
| 86 |
+
"rope_theta": 160000.0,
|
| 87 |
+
"rope_type": "default"
|
| 88 |
+
},
|
| 89 |
+
"sliding_attention": {
|
| 90 |
+
"rope_theta": 10000.0,
|
| 91 |
+
"rope_type": "default"
|
| 92 |
+
}
|
| 93 |
+
},
|
| 94 |
+
"sep_token_id": 50282,
|
| 95 |
+
"sparse_pred_ignore_index": -100,
|
| 96 |
+
"sparse_prediction": false,
|
| 97 |
+
"tie_word_embeddings": true,
|
| 98 |
+
"transformers_version": "5.1.0",
|
| 99 |
+
"vocab_size": 50368
|
| 100 |
+
}
|
gguf/q5/model.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0580a0741a811ea38eb868002261712b2d647031b13c245287987067e2c40bc4
|
| 3 |
+
size 103007360
|
gguf/q5/model_contract.json
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_special_tokens": true,
|
| 3 |
+
"architecture": "ModernBertForSequenceClassification",
|
| 4 |
+
"classifier_bias_shape": [
|
| 5 |
+
9
|
| 6 |
+
],
|
| 7 |
+
"classifier_shape": [
|
| 8 |
+
9,
|
| 9 |
+
768
|
| 10 |
+
],
|
| 11 |
+
"config_sha256": "3f63ece6863d727eae62cec5469f59bc9d280e154922638439cc5ac71047dc56",
|
| 12 |
+
"context_limit_inclusive": 2048,
|
| 13 |
+
"dtype": "mixed-Q5_0/F32",
|
| 14 |
+
"export_tokenizer_sha256": "6c8aaa9a542084f2457eab775d4eeb51f92a70c0fd9de28d5edb0ddec3c08d30",
|
| 15 |
+
"frozen_source_tokenizer_sha256": "6c8aaa9a542084f2457eab775d4eeb51f92a70c0fd9de28d5edb0ddec3c08d30",
|
| 16 |
+
"heads": [
|
| 17 |
+
"local_state_change",
|
| 18 |
+
"outbound",
|
| 19 |
+
"egress",
|
| 20 |
+
"remote_state_change",
|
| 21 |
+
"delegated_execution",
|
| 22 |
+
"exposes_secrets",
|
| 23 |
+
"destructive",
|
| 24 |
+
"host_control_change",
|
| 25 |
+
"fetched_or_generated_execution"
|
| 26 |
+
],
|
| 27 |
+
"installed_six_head_runtime_compatible": false,
|
| 28 |
+
"manifest_sha256": "af03539c60a2a1aaa27bd5c21fd3bfa37be805ad27e839d5438b92aed8a70481",
|
| 29 |
+
"model_gguf_sha256": "0580a0741a811ea38eb868002261712b2d647031b13c245287987067e2c40bc4",
|
| 30 |
+
"model_safetensors_sha256": "d6d2ab516b6fa52f3abad4506a31533f9602dbb35f262ab55180f31e2c9407e7",
|
| 31 |
+
"num_labels": 9,
|
| 32 |
+
"padding": null,
|
| 33 |
+
"policy": {
|
| 34 |
+
"action_contract": "fictional-action-contract/0.4",
|
| 35 |
+
"action_serializer": "action-behavior-evidence-json/0.3",
|
| 36 |
+
"context_limit_inclusive": 2048,
|
| 37 |
+
"heads": [
|
| 38 |
+
"local_state_change",
|
| 39 |
+
"outbound",
|
| 40 |
+
"egress",
|
| 41 |
+
"remote_state_change",
|
| 42 |
+
"delegated_execution",
|
| 43 |
+
"exposes_secrets",
|
| 44 |
+
"destructive",
|
| 45 |
+
"host_control_change",
|
| 46 |
+
"fetched_or_generated_execution"
|
| 47 |
+
],
|
| 48 |
+
"labels_imply_safe": false,
|
| 49 |
+
"shell_contract": "command-only-nine-head/0.2"
|
| 50 |
+
},
|
| 51 |
+
"pooling": "attention-mask-aware-mean",
|
| 52 |
+
"predictor_files_sha256": {
|
| 53 |
+
"action/cal.jsonl": "3e7cb03e8f30c52eaef5f69c8a5abad30410f2d707da7ff2451b51908cbfcbbe",
|
| 54 |
+
"action/diagnostic.jsonl": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
| 55 |
+
"action/fresh-eval.jsonl": "a4825a24aa96250937d9ed22e68c4252943fe57fbee03edf13d7aaecaad7874f",
|
| 56 |
+
"action/train.jsonl": "3500f1e4ab2167326bacfda4b1b9727e2e1d510c04526243a7b2b177c6f270a7",
|
| 57 |
+
"action/tune.jsonl": "8b247049442ec92a5b9880a62f9d39704704b8c9cdbde97579df33e61607900e",
|
| 58 |
+
"shell/cal.jsonl": "774763d333f0a859d93f48eb2658f6172bc9d35f38d2131e90591546243a1f0b",
|
| 59 |
+
"shell/diagnostic.jsonl": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
| 60 |
+
"shell/fresh-eval.jsonl": "464733d0eac7e4d86c32d94c745315297b905a85d5e9a837d96da9930ed0fcda",
|
| 61 |
+
"shell/train.jsonl": "1b6040c33f29f1d65b116545cb2542d3310c84a95aa03e4f42e1c175a7595dc6",
|
| 62 |
+
"shell/tune.jsonl": "94faec7fe7aa5fa61d1cdfd4f38c943d4964da2cc7f5af1a3d41d55fc6443381"
|
| 63 |
+
},
|
| 64 |
+
"quantization": "Q5_0",
|
| 65 |
+
"schema": "acclass-vnext-model/1",
|
| 66 |
+
"source_dtype": "float32",
|
| 67 |
+
"source_model_safetensors_sha256": "d6d2ab516b6fa52f3abad4506a31533f9602dbb35f262ab55180f31e2c9407e7",
|
| 68 |
+
"threshold_comparison": ">=",
|
| 69 |
+
"thresholds_scope": "shared-per-head",
|
| 70 |
+
"thresholds_sha256": "5b9b664e0dffe02437013480bb99f17de34863a77eae6ec3b84934e1e885d985",
|
| 71 |
+
"training_padding": "power-of-two-right-masked-min32-max2048",
|
| 72 |
+
"truncation": null,
|
| 73 |
+
"weight_layout": "HF-ModernBERT-base/Rust-nine-head"
|
| 74 |
+
}
|
gguf/q8/model.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e1bb8688823036517f897503db23884fa8f5a8cbdc083fa86266c63cdbaa598a
|
| 3 |
+
size 159095936
|
gguf/q8/model_contract.json
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_special_tokens": true,
|
| 3 |
+
"architecture": "ModernBertForSequenceClassification",
|
| 4 |
+
"classifier_bias_shape": [
|
| 5 |
+
9
|
| 6 |
+
],
|
| 7 |
+
"classifier_shape": [
|
| 8 |
+
9,
|
| 9 |
+
768
|
| 10 |
+
],
|
| 11 |
+
"config_sha256": "3f63ece6863d727eae62cec5469f59bc9d280e154922638439cc5ac71047dc56",
|
| 12 |
+
"context_limit_inclusive": 2048,
|
| 13 |
+
"dtype": "mixed-Q8_0/F32",
|
| 14 |
+
"export_tokenizer_sha256": "6c8aaa9a542084f2457eab775d4eeb51f92a70c0fd9de28d5edb0ddec3c08d30",
|
| 15 |
+
"frozen_source_tokenizer_sha256": "6c8aaa9a542084f2457eab775d4eeb51f92a70c0fd9de28d5edb0ddec3c08d30",
|
| 16 |
+
"heads": [
|
| 17 |
+
"local_state_change",
|
| 18 |
+
"outbound",
|
| 19 |
+
"egress",
|
| 20 |
+
"remote_state_change",
|
| 21 |
+
"delegated_execution",
|
| 22 |
+
"exposes_secrets",
|
| 23 |
+
"destructive",
|
| 24 |
+
"host_control_change",
|
| 25 |
+
"fetched_or_generated_execution"
|
| 26 |
+
],
|
| 27 |
+
"installed_six_head_runtime_compatible": false,
|
| 28 |
+
"manifest_sha256": "af03539c60a2a1aaa27bd5c21fd3bfa37be805ad27e839d5438b92aed8a70481",
|
| 29 |
+
"model_gguf_sha256": "e1bb8688823036517f897503db23884fa8f5a8cbdc083fa86266c63cdbaa598a",
|
| 30 |
+
"model_safetensors_sha256": "d6d2ab516b6fa52f3abad4506a31533f9602dbb35f262ab55180f31e2c9407e7",
|
| 31 |
+
"num_labels": 9,
|
| 32 |
+
"padding": null,
|
| 33 |
+
"policy": {
|
| 34 |
+
"action_contract": "fictional-action-contract/0.4",
|
| 35 |
+
"action_serializer": "action-behavior-evidence-json/0.3",
|
| 36 |
+
"context_limit_inclusive": 2048,
|
| 37 |
+
"heads": [
|
| 38 |
+
"local_state_change",
|
| 39 |
+
"outbound",
|
| 40 |
+
"egress",
|
| 41 |
+
"remote_state_change",
|
| 42 |
+
"delegated_execution",
|
| 43 |
+
"exposes_secrets",
|
| 44 |
+
"destructive",
|
| 45 |
+
"host_control_change",
|
| 46 |
+
"fetched_or_generated_execution"
|
| 47 |
+
],
|
| 48 |
+
"labels_imply_safe": false,
|
| 49 |
+
"shell_contract": "command-only-nine-head/0.2"
|
| 50 |
+
},
|
| 51 |
+
"pooling": "attention-mask-aware-mean",
|
| 52 |
+
"predictor_files_sha256": {
|
| 53 |
+
"action/cal.jsonl": "3e7cb03e8f30c52eaef5f69c8a5abad30410f2d707da7ff2451b51908cbfcbbe",
|
| 54 |
+
"action/diagnostic.jsonl": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
| 55 |
+
"action/fresh-eval.jsonl": "a4825a24aa96250937d9ed22e68c4252943fe57fbee03edf13d7aaecaad7874f",
|
| 56 |
+
"action/train.jsonl": "3500f1e4ab2167326bacfda4b1b9727e2e1d510c04526243a7b2b177c6f270a7",
|
| 57 |
+
"action/tune.jsonl": "8b247049442ec92a5b9880a62f9d39704704b8c9cdbde97579df33e61607900e",
|
| 58 |
+
"shell/cal.jsonl": "774763d333f0a859d93f48eb2658f6172bc9d35f38d2131e90591546243a1f0b",
|
| 59 |
+
"shell/diagnostic.jsonl": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
| 60 |
+
"shell/fresh-eval.jsonl": "464733d0eac7e4d86c32d94c745315297b905a85d5e9a837d96da9930ed0fcda",
|
| 61 |
+
"shell/train.jsonl": "1b6040c33f29f1d65b116545cb2542d3310c84a95aa03e4f42e1c175a7595dc6",
|
| 62 |
+
"shell/tune.jsonl": "94faec7fe7aa5fa61d1cdfd4f38c943d4964da2cc7f5af1a3d41d55fc6443381"
|
| 63 |
+
},
|
| 64 |
+
"quantization": "Q8_0",
|
| 65 |
+
"schema": "acclass-vnext-model/1",
|
| 66 |
+
"source_dtype": "float32",
|
| 67 |
+
"source_model_safetensors_sha256": "d6d2ab516b6fa52f3abad4506a31533f9602dbb35f262ab55180f31e2c9407e7",
|
| 68 |
+
"threshold_comparison": ">=",
|
| 69 |
+
"thresholds_scope": "shared-per-head",
|
| 70 |
+
"thresholds_sha256": "5b9b664e0dffe02437013480bb99f17de34863a77eae6ec3b84934e1e885d985",
|
| 71 |
+
"training_padding": "power-of-two-right-masked-min32-max2048",
|
| 72 |
+
"truncation": null,
|
| 73 |
+
"weight_layout": "HF-ModernBERT-base/Rust-nine-head"
|
| 74 |
+
}
|
heads.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
["local_state_change","outbound","egress","remote_state_change","delegated_execution","exposes_secrets","destructive","host_control_change","fetched_or_generated_execution"]
|
legal/ATTRIBUTIONS.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Model attributions
|
| 2 |
+
|
| 3 |
+
Use does not imply endorsement by upstream creators.
|
| 4 |
+
|
| 5 |
+
## ModernBERT
|
| 6 |
+
|
| 7 |
+
- **Base model:** `answerdotai/ModernBERT-base`.
|
| 8 |
+
- **Creators:** Answer.AI, LightOn and the ModernBERT authors/contributors.
|
| 9 |
+
- **Model source:** <https://huggingface.co/answerdotai/ModernBERT-base>.
|
| 10 |
+
- **Code source:** <https://github.com/AnswerDotAI/ModernBERT>.
|
| 11 |
+
- **License:** Apache License, Version 2.0 (SPDX: `Apache-2.0`).
|
| 12 |
+
- **Upstream license and notices:**
|
| 13 |
+
[ModernBERT-Apache-2.0.txt](ModernBERT-Apache-2.0.txt), copied from
|
| 14 |
+
<https://raw.githubusercontent.com/AnswerDotAI/ModernBERT/main/LICENSE>.
|
| 15 |
+
- **Citation:** Warner et al. (2024), *Smarter, Better, Faster, Longer: A Modern
|
| 16 |
+
Bidirectional Encoder for Fast, Memory Efficient, and Long Context Finetuning
|
| 17 |
+
and Inference*, <https://arxiv.org/abs/2412.13663>.
|
| 18 |
+
|
| 19 |
+
**Use and modifications:** acclass fine-tunes canonical ModernBERT-base revision
|
| 20 |
+
`8949b909ec900327062f0ebf497f51aef5e6f0c8` as a nine-head shell-command and
|
| 21 |
+
action-description classifier. The classifier, the calibration temperature built
|
| 22 |
+
into its weights, the thresholds and the Q8/Q5 exports are acclass modifications, not
|
| 23 |
+
unmodified upstream checkpoints. Measured results and limitations are in
|
| 24 |
+
[`docs/model-card.md`](../docs/model-card.md).
|
| 25 |
+
|
| 26 |
+
The upstream model remains subject to Apache 2.0. The copied code-repository
|
| 27 |
+
license preserves its existing copyright notice verbatim.
|
legal/ModernBERT-Apache-2.0.txt
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Apache License
|
| 2 |
+
Version 2.0, January 2004
|
| 3 |
+
http://www.apache.org/licenses/
|
| 4 |
+
|
| 5 |
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
| 6 |
+
|
| 7 |
+
1. Definitions.
|
| 8 |
+
|
| 9 |
+
"License" shall mean the terms and conditions for use, reproduction,
|
| 10 |
+
and distribution as defined by Sections 1 through 9 of this document.
|
| 11 |
+
|
| 12 |
+
"Licensor" shall mean the copyright owner or entity authorized by
|
| 13 |
+
the copyright owner that is granting the License.
|
| 14 |
+
|
| 15 |
+
"Legal Entity" shall mean the union of the acting entity and all
|
| 16 |
+
other entities that control, are controlled by, or are under common
|
| 17 |
+
control with that entity. For the purposes of this definition,
|
| 18 |
+
"control" means (i) the power, direct or indirect, to cause the
|
| 19 |
+
direction or management of such entity, whether by contract or
|
| 20 |
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
| 21 |
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
| 22 |
+
|
| 23 |
+
"You" (or "Your") shall mean an individual or Legal Entity
|
| 24 |
+
exercising permissions granted by this License.
|
| 25 |
+
|
| 26 |
+
"Source" form shall mean the preferred form for making modifications,
|
| 27 |
+
including but not limited to software source code, documentation
|
| 28 |
+
source, and configuration files.
|
| 29 |
+
|
| 30 |
+
"Object" form shall mean any form resulting from mechanical
|
| 31 |
+
transformation or translation of a Source form, including but
|
| 32 |
+
not limited to compiled object code, generated documentation,
|
| 33 |
+
and conversions to other media types.
|
| 34 |
+
|
| 35 |
+
"Work" shall mean the work of authorship, whether in Source or
|
| 36 |
+
Object form, made available under the License, as indicated by a
|
| 37 |
+
copyright notice that is included in or attached to the work
|
| 38 |
+
(an example is provided in the Appendix below).
|
| 39 |
+
|
| 40 |
+
"Derivative Works" shall mean any work, whether in Source or Object
|
| 41 |
+
form, that is based on (or derived from) the Work and for which the
|
| 42 |
+
editorial revisions, annotations, elaborations, or other modifications
|
| 43 |
+
represent, as a whole, an original work of authorship. For the purposes
|
| 44 |
+
of this License, Derivative Works shall not include works that remain
|
| 45 |
+
separable from, or merely link (or bind by name) to the interfaces of,
|
| 46 |
+
the Work and Derivative Works thereof.
|
| 47 |
+
|
| 48 |
+
"Contribution" shall mean any work of authorship, including
|
| 49 |
+
the original version of the Work and any modifications or additions
|
| 50 |
+
to that Work or Derivative Works thereof, that is intentionally
|
| 51 |
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
| 52 |
+
or by an individual or Legal Entity authorized to submit on behalf of
|
| 53 |
+
the copyright owner. For the purposes of this definition, "submitted"
|
| 54 |
+
means any form of electronic, verbal, or written communication sent
|
| 55 |
+
to the Licensor or its representatives, including but not limited to
|
| 56 |
+
communication on electronic mailing lists, source code control systems,
|
| 57 |
+
and issue tracking systems that are managed by, or on behalf of, the
|
| 58 |
+
Licensor for the purpose of discussing and improving the Work, but
|
| 59 |
+
excluding communication that is conspicuously marked or otherwise
|
| 60 |
+
designated in writing by the copyright owner as "Not a Contribution."
|
| 61 |
+
|
| 62 |
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
| 63 |
+
on behalf of whom a Contribution has been received by Licensor and
|
| 64 |
+
subsequently incorporated within the Work.
|
| 65 |
+
|
| 66 |
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
| 67 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 68 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 69 |
+
copyright license to reproduce, prepare Derivative Works of,
|
| 70 |
+
publicly display, publicly perform, sublicense, and distribute the
|
| 71 |
+
Work and such Derivative Works in Source or Object form.
|
| 72 |
+
|
| 73 |
+
3. Grant of Patent License. Subject to the terms and conditions of
|
| 74 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 75 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 76 |
+
(except as stated in this section) patent license to make, have made,
|
| 77 |
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
| 78 |
+
where such license applies only to those patent claims licensable
|
| 79 |
+
by such Contributor that are necessarily infringed by their
|
| 80 |
+
Contribution(s) alone or by combination of their Contribution(s)
|
| 81 |
+
with the Work to which such Contribution(s) was submitted. If You
|
| 82 |
+
institute patent litigation against any entity (including a
|
| 83 |
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
| 84 |
+
or a Contribution incorporated within the Work constitutes direct
|
| 85 |
+
or contributory patent infringement, then any patent licenses
|
| 86 |
+
granted to You under this License for that Work shall terminate
|
| 87 |
+
as of the date such litigation is filed.
|
| 88 |
+
|
| 89 |
+
4. Redistribution. You may reproduce and distribute copies of the
|
| 90 |
+
Work or Derivative Works thereof in any medium, with or without
|
| 91 |
+
modifications, and in Source or Object form, provided that You
|
| 92 |
+
meet the following conditions:
|
| 93 |
+
|
| 94 |
+
(a) You must give any other recipients of the Work or
|
| 95 |
+
Derivative Works a copy of this License; and
|
| 96 |
+
|
| 97 |
+
(b) You must cause any modified files to carry prominent notices
|
| 98 |
+
stating that You changed the files; and
|
| 99 |
+
|
| 100 |
+
(c) You must retain, in the Source form of any Derivative Works
|
| 101 |
+
that You distribute, all copyright, patent, trademark, and
|
| 102 |
+
attribution notices from the Source form of the Work,
|
| 103 |
+
excluding those notices that do not pertain to any part of
|
| 104 |
+
the Derivative Works; and
|
| 105 |
+
|
| 106 |
+
(d) If the Work includes a "NOTICE" text file as part of its
|
| 107 |
+
distribution, then any Derivative Works that You distribute must
|
| 108 |
+
include a readable copy of the attribution notices contained
|
| 109 |
+
within such NOTICE file, excluding those notices that do not
|
| 110 |
+
pertain to any part of the Derivative Works, in at least one
|
| 111 |
+
of the following places: within a NOTICE text file distributed
|
| 112 |
+
as part of the Derivative Works; within the Source form or
|
| 113 |
+
documentation, if provided along with the Derivative Works; or,
|
| 114 |
+
within a display generated by the Derivative Works, if and
|
| 115 |
+
wherever such third-party notices normally appear. The contents
|
| 116 |
+
of the NOTICE file are for informational purposes only and
|
| 117 |
+
do not modify the License. You may add Your own attribution
|
| 118 |
+
notices within Derivative Works that You distribute, alongside
|
| 119 |
+
or as an addendum to the NOTICE text from the Work, provided
|
| 120 |
+
that such additional attribution notices cannot be construed
|
| 121 |
+
as modifying the License.
|
| 122 |
+
|
| 123 |
+
You may add Your own copyright statement to Your modifications and
|
| 124 |
+
may provide additional or different license terms and conditions
|
| 125 |
+
for use, reproduction, or distribution of Your modifications, or
|
| 126 |
+
for any such Derivative Works as a whole, provided Your use,
|
| 127 |
+
reproduction, and distribution of the Work otherwise complies with
|
| 128 |
+
the conditions stated in this License.
|
| 129 |
+
|
| 130 |
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
| 131 |
+
any Contribution intentionally submitted for inclusion in the Work
|
| 132 |
+
by You to the Licensor shall be under the terms and conditions of
|
| 133 |
+
this License, without any additional terms or conditions.
|
| 134 |
+
Notwithstanding the above, nothing herein shall supersede or modify
|
| 135 |
+
the terms of any separate license agreement you may have executed
|
| 136 |
+
with Licensor regarding such Contributions.
|
| 137 |
+
|
| 138 |
+
6. Trademarks. This License does not grant permission to use the trade
|
| 139 |
+
names, trademarks, service marks, or product names of the Licensor,
|
| 140 |
+
except as required for reasonable and customary use in describing the
|
| 141 |
+
origin of the Work and reproducing the content of the NOTICE file.
|
| 142 |
+
|
| 143 |
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
| 144 |
+
agreed to in writing, Licensor provides the Work (and each
|
| 145 |
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
| 146 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
| 147 |
+
implied, including, without limitation, any warranties or conditions
|
| 148 |
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
| 149 |
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
| 150 |
+
appropriateness of using or redistributing the Work and assume any
|
| 151 |
+
risks associated with Your exercise of permissions under this License.
|
| 152 |
+
|
| 153 |
+
8. Limitation of Liability. In no event and under no legal theory,
|
| 154 |
+
whether in tort (including negligence), contract, or otherwise,
|
| 155 |
+
unless required by applicable law (such as deliberate and grossly
|
| 156 |
+
negligent acts) or agreed to in writing, shall any Contributor be
|
| 157 |
+
liable to You for damages, including any direct, indirect, special,
|
| 158 |
+
incidental, or consequential damages of any character arising as a
|
| 159 |
+
result of this License or out of the use or inability to use the
|
| 160 |
+
Work (including but not limited to damages for loss of goodwill,
|
| 161 |
+
work stoppage, computer failure or malfunction, or any and all
|
| 162 |
+
other commercial damages or losses), even if such Contributor
|
| 163 |
+
has been advised of the possibility of such damages.
|
| 164 |
+
|
| 165 |
+
9. Accepting Warranty or Additional Liability. While redistributing
|
| 166 |
+
the Work or Derivative Works thereof, You may choose to offer,
|
| 167 |
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
| 168 |
+
or other liability obligations and/or rights consistent with this
|
| 169 |
+
License. However, in accepting such obligations, You may act only
|
| 170 |
+
on Your own behalf and on Your sole responsibility, not on behalf
|
| 171 |
+
of any other Contributor, and only if You agree to indemnify,
|
| 172 |
+
defend, and hold each Contributor harmless for any liability
|
| 173 |
+
incurred by, or claims asserted against, such Contributor by reason
|
| 174 |
+
of your accepting any such warranty or additional liability.
|
| 175 |
+
|
| 176 |
+
END OF TERMS AND CONDITIONS
|
| 177 |
+
|
| 178 |
+
APPENDIX: How to apply the Apache License to your work.
|
| 179 |
+
|
| 180 |
+
To apply the Apache License to your work, attach the following
|
| 181 |
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
| 182 |
+
replaced with your own identifying information. (Don't include
|
| 183 |
+
the brackets!) The text should be enclosed in the appropriate
|
| 184 |
+
comment syntax for the file format. We also recommend that a
|
| 185 |
+
file or class name and description of purpose be included on the
|
| 186 |
+
same "printed page" as the copyright notice for easier
|
| 187 |
+
identification within third-party archives.
|
| 188 |
+
|
| 189 |
+
Copyright 2022 MosaicML Examples authors
|
| 190 |
+
|
| 191 |
+
Licensed under the Apache License, Version 2.0 (the "License");
|
| 192 |
+
you may not use this file except in compliance with the License.
|
| 193 |
+
You may obtain a copy of the License at
|
| 194 |
+
|
| 195 |
+
http://www.apache.org/licenses/LICENSE-2.0
|
| 196 |
+
|
| 197 |
+
Unless required by applicable law or agreed to in writing, software
|
| 198 |
+
distributed under the License is distributed on an "AS IS" BASIS,
|
| 199 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 200 |
+
See the License for the specific language governing permissions and
|
| 201 |
+
limitations under the License.
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d6d2ab516b6fa52f3abad4506a31533f9602dbb35f262ab55180f31e2c9407e7
|
| 3 |
+
size 598461316
|
model_contract.json
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_special_tokens": true,
|
| 3 |
+
"architecture": "ModernBertForSequenceClassification",
|
| 4 |
+
"classifier_bias_shape": [
|
| 5 |
+
9
|
| 6 |
+
],
|
| 7 |
+
"classifier_shape": [
|
| 8 |
+
9,
|
| 9 |
+
768
|
| 10 |
+
],
|
| 11 |
+
"config_sha256": "3f63ece6863d727eae62cec5469f59bc9d280e154922638439cc5ac71047dc56",
|
| 12 |
+
"context_limit_inclusive": 2048,
|
| 13 |
+
"dtype": "float32",
|
| 14 |
+
"export_tokenizer_sha256": "6c8aaa9a542084f2457eab775d4eeb51f92a70c0fd9de28d5edb0ddec3c08d30",
|
| 15 |
+
"frozen_source_tokenizer_sha256": "6c8aaa9a542084f2457eab775d4eeb51f92a70c0fd9de28d5edb0ddec3c08d30",
|
| 16 |
+
"heads": [
|
| 17 |
+
"local_state_change",
|
| 18 |
+
"outbound",
|
| 19 |
+
"egress",
|
| 20 |
+
"remote_state_change",
|
| 21 |
+
"delegated_execution",
|
| 22 |
+
"exposes_secrets",
|
| 23 |
+
"destructive",
|
| 24 |
+
"host_control_change",
|
| 25 |
+
"fetched_or_generated_execution"
|
| 26 |
+
],
|
| 27 |
+
"installed_six_head_runtime_compatible": false,
|
| 28 |
+
"manifest_sha256": "af03539c60a2a1aaa27bd5c21fd3bfa37be805ad27e839d5438b92aed8a70481",
|
| 29 |
+
"model_safetensors_sha256": "d6d2ab516b6fa52f3abad4506a31533f9602dbb35f262ab55180f31e2c9407e7",
|
| 30 |
+
"num_labels": 9,
|
| 31 |
+
"padding": null,
|
| 32 |
+
"policy": {
|
| 33 |
+
"action_contract": "fictional-action-contract/0.4",
|
| 34 |
+
"action_serializer": "action-behavior-evidence-json/0.3",
|
| 35 |
+
"context_limit_inclusive": 2048,
|
| 36 |
+
"heads": [
|
| 37 |
+
"local_state_change",
|
| 38 |
+
"outbound",
|
| 39 |
+
"egress",
|
| 40 |
+
"remote_state_change",
|
| 41 |
+
"delegated_execution",
|
| 42 |
+
"exposes_secrets",
|
| 43 |
+
"destructive",
|
| 44 |
+
"host_control_change",
|
| 45 |
+
"fetched_or_generated_execution"
|
| 46 |
+
],
|
| 47 |
+
"labels_imply_safe": false,
|
| 48 |
+
"shell_contract": "command-only-nine-head/0.2"
|
| 49 |
+
},
|
| 50 |
+
"pooling": "attention-mask-aware-mean",
|
| 51 |
+
"predictor_files_sha256": {
|
| 52 |
+
"action/cal.jsonl": "3e7cb03e8f30c52eaef5f69c8a5abad30410f2d707da7ff2451b51908cbfcbbe",
|
| 53 |
+
"action/diagnostic.jsonl": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
| 54 |
+
"action/fresh-eval.jsonl": "a4825a24aa96250937d9ed22e68c4252943fe57fbee03edf13d7aaecaad7874f",
|
| 55 |
+
"action/train.jsonl": "3500f1e4ab2167326bacfda4b1b9727e2e1d510c04526243a7b2b177c6f270a7",
|
| 56 |
+
"action/tune.jsonl": "8b247049442ec92a5b9880a62f9d39704704b8c9cdbde97579df33e61607900e",
|
| 57 |
+
"shell/cal.jsonl": "774763d333f0a859d93f48eb2658f6172bc9d35f38d2131e90591546243a1f0b",
|
| 58 |
+
"shell/diagnostic.jsonl": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
| 59 |
+
"shell/fresh-eval.jsonl": "464733d0eac7e4d86c32d94c745315297b905a85d5e9a837d96da9930ed0fcda",
|
| 60 |
+
"shell/train.jsonl": "1b6040c33f29f1d65b116545cb2542d3310c84a95aa03e4f42e1c175a7595dc6",
|
| 61 |
+
"shell/tune.jsonl": "94faec7fe7aa5fa61d1cdfd4f38c943d4964da2cc7f5af1a3d41d55fc6443381"
|
| 62 |
+
},
|
| 63 |
+
"quantization": "unquantized; Q8_0-compatible matrices",
|
| 64 |
+
"schema": "acclass-vnext-model/1",
|
| 65 |
+
"threshold_comparison": ">=",
|
| 66 |
+
"thresholds_scope": "shared-per-head",
|
| 67 |
+
"thresholds_sha256": "5b9b664e0dffe02437013480bb99f17de34863a77eae6ec3b84934e1e885d985",
|
| 68 |
+
"training_padding": "power-of-two-right-masked-min32-max2048",
|
| 69 |
+
"truncation": null,
|
| 70 |
+
"weight_layout": "HF-ModernBERT-base/Rust-nine-head"
|
| 71 |
+
}
|
onnx/model_fp16.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dd462606bee33f4c9af518336e17eef37b10d2775106143ec74325a49e2a882f
|
| 3 |
+
size 299424171
|
thresholds.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"local_state_change": 0.5, "outbound": 0.5, "egress": 0.5, "remote_state_change": 0.5, "delegated_execution": 0.5, "exposes_secrets": 0.5, "destructive": 0.5, "host_control_change": 0.5, "fetched_or_generated_execution": 0.5}
|
tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"tokenizer_class": "PreTrainedTokenizerFast",
|
| 3 |
+
"model_max_length": 2048,
|
| 4 |
+
"clean_up_tokenization_spaces": true,
|
| 5 |
+
"cls_token": "[CLS]",
|
| 6 |
+
"sep_token": "[SEP]",
|
| 7 |
+
"pad_token": "[PAD]",
|
| 8 |
+
"mask_token": "[MASK]",
|
| 9 |
+
"unk_token": "[UNK]"
|
| 10 |
+
}
|