Zero-Shot Classification
Transformers
Safetensors
qwen3_5
feature-extraction
security
code-review
ai-agents
decision-model
d3
system-one
pre-release
custom_code
Instructions to use stonefish-labs/d3-mini-agentcode with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use stonefish-labs/d3-mini-agentcode with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("zero-shot-classification", model="stonefish-labs/d3-mini-agentcode", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModel processor = AutoProcessor.from_pretrained("stonefish-labs/d3-mini-agentcode", trust_remote_code=True) model = AutoModel.from_pretrained("stonefish-labs/d3-mini-agentcode", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Add the write-up link and a banner to the card
Browse files- .gitattributes +1 -0
- MODEL_MANIFEST.json +6 -4
- README.md +5 -0
- SHA256SUMS +2 -1
- assets/banner.jpg +3 -0
.gitattributes
CHANGED
|
@@ -34,3 +34,4 @@ saved_model/**/* 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 |
tokenizer.json 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 |
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
assets/banner.jpg filter=lfs diff=lfs merge=lfs -text
|
MODEL_MANIFEST.json
CHANGED
|
@@ -40,16 +40,17 @@
|
|
| 40 |
"LICENSE": "c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4",
|
| 41 |
"MERGE-REPORT.json": "a42ca8b488e0b98b1a690937784e8da0fe417fd2218e7595129927221f4d9244",
|
| 42 |
"NOTICE": "e74014fab972cffe76391a608e8a5cf54baeaf7d16cd8a77545edc67ffd25225",
|
| 43 |
-
"README.md": "
|
| 44 |
"REBUILD.md": "3b1fd15114b4cad8eb45cee219e2a248a11d3cfb359181346d14eab9c98df7a9",
|
| 45 |
"RESULTS.md": "096b58ff385f3f149780de90e14516f5e9fdef97acb316dffc4a7b06314231b3",
|
| 46 |
-
"SHA256SUMS": "
|
| 47 |
"SOURCES.md": "3bd6eb1b1d0c5b0b18ff8ee8f2076512f514c3367e943610515b82e43e852144",
|
| 48 |
"adapter/adapter_config.json": "ff2a5427cbcf0e7a0a61940920d06f0e1fc116565258c3eca2501b0d10933250",
|
| 49 |
"adapter/adapter_model.safetensors": "3bd401009801b39f29148427e884a8230a85ddb3c20a54ea834372889998c895",
|
| 50 |
"adapter/merge.py": "bf0999886d5b6ac6764c7a9d688c890579062a04254e0054bb230681fb464a7e",
|
| 51 |
"adapter/readout.safetensors": "bce897f1b66c449f82fba72ab1a5d8f42860886b3470d40cbfcd0a2618cd3db4",
|
| 52 |
"adapter/training_args.json": "a21335b47e3de1299bb36bd7c6abf11aa11423a20aa5fcbc369057108b10b144",
|
|
|
|
| 53 |
"chat_template.jinja": "a4aee8afcf2e0711942cf848899be66016f8d14a889ff9ede07bca099c28f715",
|
| 54 |
"config.json": "8f5f404a71ecc53c4ff26fc42cb4c778ffacfb4c9623f5e2d51245166d6b5057",
|
| 55 |
"d3_engine.py": "086238942762df45047a32cd9a8e2bedd9b63167eb40be260c776de567979f53",
|
|
@@ -130,16 +131,17 @@
|
|
| 130 |
"LICENSE": 11357,
|
| 131 |
"MERGE-REPORT.json": 86,
|
| 132 |
"NOTICE": 279,
|
| 133 |
-
"README.md":
|
| 134 |
"REBUILD.md": 1924,
|
| 135 |
"RESULTS.md": 4669,
|
| 136 |
-
"SHA256SUMS":
|
| 137 |
"SOURCES.md": 3136,
|
| 138 |
"adapter/adapter_config.json": 1329,
|
| 139 |
"adapter/adapter_model.safetensors": 121954608,
|
| 140 |
"adapter/merge.py": 10334,
|
| 141 |
"adapter/readout.safetensors": 2611280,
|
| 142 |
"adapter/training_args.json": 985,
|
|
|
|
| 143 |
"chat_template.jinja": 7756,
|
| 144 |
"config.json": 3090,
|
| 145 |
"d3_engine.py": 4413,
|
|
|
|
| 40 |
"LICENSE": "c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4",
|
| 41 |
"MERGE-REPORT.json": "a42ca8b488e0b98b1a690937784e8da0fe417fd2218e7595129927221f4d9244",
|
| 42 |
"NOTICE": "e74014fab972cffe76391a608e8a5cf54baeaf7d16cd8a77545edc67ffd25225",
|
| 43 |
+
"README.md": "e991987170a18dda2a68fe6a25793d3d18250eb47e0315c32699dd2ca7bb7c69",
|
| 44 |
"REBUILD.md": "3b1fd15114b4cad8eb45cee219e2a248a11d3cfb359181346d14eab9c98df7a9",
|
| 45 |
"RESULTS.md": "096b58ff385f3f149780de90e14516f5e9fdef97acb316dffc4a7b06314231b3",
|
| 46 |
+
"SHA256SUMS": "f791bda2f116f379302351fd46d29d5938aedf0cac63db8239341c6daf4b8926",
|
| 47 |
"SOURCES.md": "3bd6eb1b1d0c5b0b18ff8ee8f2076512f514c3367e943610515b82e43e852144",
|
| 48 |
"adapter/adapter_config.json": "ff2a5427cbcf0e7a0a61940920d06f0e1fc116565258c3eca2501b0d10933250",
|
| 49 |
"adapter/adapter_model.safetensors": "3bd401009801b39f29148427e884a8230a85ddb3c20a54ea834372889998c895",
|
| 50 |
"adapter/merge.py": "bf0999886d5b6ac6764c7a9d688c890579062a04254e0054bb230681fb464a7e",
|
| 51 |
"adapter/readout.safetensors": "bce897f1b66c449f82fba72ab1a5d8f42860886b3470d40cbfcd0a2618cd3db4",
|
| 52 |
"adapter/training_args.json": "a21335b47e3de1299bb36bd7c6abf11aa11423a20aa5fcbc369057108b10b144",
|
| 53 |
+
"assets/banner.jpg": "397a3e6c75acb76b71dcfa86dcea2ac0661f73fec799189df55e4de112534049",
|
| 54 |
"chat_template.jinja": "a4aee8afcf2e0711942cf848899be66016f8d14a889ff9ede07bca099c28f715",
|
| 55 |
"config.json": "8f5f404a71ecc53c4ff26fc42cb4c778ffacfb4c9623f5e2d51245166d6b5057",
|
| 56 |
"d3_engine.py": "086238942762df45047a32cd9a8e2bedd9b63167eb40be260c776de567979f53",
|
|
|
|
| 131 |
"LICENSE": 11357,
|
| 132 |
"MERGE-REPORT.json": 86,
|
| 133 |
"NOTICE": 279,
|
| 134 |
+
"README.md": 11437,
|
| 135 |
"REBUILD.md": 1924,
|
| 136 |
"RESULTS.md": 4669,
|
| 137 |
+
"SHA256SUMS": 8922,
|
| 138 |
"SOURCES.md": 3136,
|
| 139 |
"adapter/adapter_config.json": 1329,
|
| 140 |
"adapter/adapter_model.safetensors": 121954608,
|
| 141 |
"adapter/merge.py": 10334,
|
| 142 |
"adapter/readout.safetensors": 2611280,
|
| 143 |
"adapter/training_args.json": 985,
|
| 144 |
+
"assets/banner.jpg": 226293,
|
| 145 |
"chat_template.jinja": 7756,
|
| 146 |
"config.json": 3090,
|
| 147 |
"d3_engine.py": 4413,
|
README.md
CHANGED
|
@@ -16,6 +16,8 @@ tags:
|
|
| 16 |
|
| 17 |
# d3-mini-agentcode (pre-release)
|
| 18 |
|
|
|
|
|
|
|
| 19 |
**Pre-release.** A revised version is planned. It would be trained on positives from several writers, realistic task
|
| 20 |
wording and more languages; see "Limitations" for what it targets.
|
| 21 |
|
|
@@ -24,6 +26,9 @@ written or run by AI coding agents**. It reads the agent's task and the change (
|
|
| 24 |
answers whether the change does something security-relevant the task didn't call for, or something deliberately
|
| 25 |
harmful. It's a cheap first-line filter that ranks changes for review.
|
| 26 |
|
|
|
|
|
|
|
|
|
|
| 27 |
## Intended use
|
| 28 |
- **An agent-code and code-mode gate:** score every agent diff or executed snippet; send flagged items to a human or a
|
| 29 |
stronger model.
|
|
|
|
| 16 |
|
| 17 |
# d3-mini-agentcode (pre-release)
|
| 18 |
|
| 19 |
+

|
| 20 |
+
|
| 21 |
**Pre-release.** A revised version is planned. It would be trained on positives from several writers, realistic task
|
| 22 |
wording and more languages; see "Limitations" for what it targets.
|
| 23 |
|
|
|
|
| 26 |
answers whether the change does something security-relevant the task didn't call for, or something deliberately
|
| 27 |
harmful. It's a cheap first-line filter that ranks changes for review.
|
| 28 |
|
| 29 |
+
**Write-up:** [Small Models, Big Haystack](https://batteryshark.github.io/2026/11/05/small-models-big-haystack.html)
|
| 30 |
+
covers how this model was built and tested, and how it compares with off-the-shelf d3 models and LLMs.
|
| 31 |
+
|
| 32 |
## Intended use
|
| 33 |
- **An agent-code and code-mode gate:** score every agent diff or executed snippet; send flagged items to a human or a
|
| 34 |
stronger model.
|
SHA256SUMS
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4 ./LICENSE
|
| 2 |
a42ca8b488e0b98b1a690937784e8da0fe417fd2218e7595129927221f4d9244 ./MERGE-REPORT.json
|
| 3 |
e74014fab972cffe76391a608e8a5cf54baeaf7d16cd8a77545edc67ffd25225 ./NOTICE
|
| 4 |
-
|
| 5 |
3b1fd15114b4cad8eb45cee219e2a248a11d3cfb359181346d14eab9c98df7a9 ./REBUILD.md
|
| 6 |
096b58ff385f3f149780de90e14516f5e9fdef97acb316dffc4a7b06314231b3 ./RESULTS.md
|
| 7 |
3bd6eb1b1d0c5b0b18ff8ee8f2076512f514c3367e943610515b82e43e852144 ./SOURCES.md
|
|
@@ -10,6 +10,7 @@ ff2a5427cbcf0e7a0a61940920d06f0e1fc116565258c3eca2501b0d10933250 ./adapter/adap
|
|
| 10 |
bf0999886d5b6ac6764c7a9d688c890579062a04254e0054bb230681fb464a7e ./adapter/merge.py
|
| 11 |
bce897f1b66c449f82fba72ab1a5d8f42860886b3470d40cbfcd0a2618cd3db4 ./adapter/readout.safetensors
|
| 12 |
a21335b47e3de1299bb36bd7c6abf11aa11423a20aa5fcbc369057108b10b144 ./adapter/training_args.json
|
|
|
|
| 13 |
a4aee8afcf2e0711942cf848899be66016f8d14a889ff9ede07bca099c28f715 ./chat_template.jinja
|
| 14 |
8f5f404a71ecc53c4ff26fc42cb4c778ffacfb4c9623f5e2d51245166d6b5057 ./config.json
|
| 15 |
086238942762df45047a32cd9a8e2bedd9b63167eb40be260c776de567979f53 ./d3_engine.py
|
|
|
|
| 1 |
c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4 ./LICENSE
|
| 2 |
a42ca8b488e0b98b1a690937784e8da0fe417fd2218e7595129927221f4d9244 ./MERGE-REPORT.json
|
| 3 |
e74014fab972cffe76391a608e8a5cf54baeaf7d16cd8a77545edc67ffd25225 ./NOTICE
|
| 4 |
+
e991987170a18dda2a68fe6a25793d3d18250eb47e0315c32699dd2ca7bb7c69 ./README.md
|
| 5 |
3b1fd15114b4cad8eb45cee219e2a248a11d3cfb359181346d14eab9c98df7a9 ./REBUILD.md
|
| 6 |
096b58ff385f3f149780de90e14516f5e9fdef97acb316dffc4a7b06314231b3 ./RESULTS.md
|
| 7 |
3bd6eb1b1d0c5b0b18ff8ee8f2076512f514c3367e943610515b82e43e852144 ./SOURCES.md
|
|
|
|
| 10 |
bf0999886d5b6ac6764c7a9d688c890579062a04254e0054bb230681fb464a7e ./adapter/merge.py
|
| 11 |
bce897f1b66c449f82fba72ab1a5d8f42860886b3470d40cbfcd0a2618cd3db4 ./adapter/readout.safetensors
|
| 12 |
a21335b47e3de1299bb36bd7c6abf11aa11423a20aa5fcbc369057108b10b144 ./adapter/training_args.json
|
| 13 |
+
397a3e6c75acb76b71dcfa86dcea2ac0661f73fec799189df55e4de112534049 ./assets/banner.jpg
|
| 14 |
a4aee8afcf2e0711942cf848899be66016f8d14a889ff9ede07bca099c28f715 ./chat_template.jinja
|
| 15 |
8f5f404a71ecc53c4ff26fc42cb4c778ffacfb4c9623f5e2d51245166d6b5057 ./config.json
|
| 16 |
086238942762df45047a32cd9a8e2bedd9b63167eb40be260c776de567979f53 ./d3_engine.py
|
assets/banner.jpg
ADDED
|
Git LFS Details
|