Downloads · 30 days
13
54% of all-time downloads
binarly/generic-secret-triage-r32-c8
generic-secret-triage-r32-c8 is a text generation model from binarly. Use it when you need the model to write or continue text. It is set up for peft.
PEFT QDoRA adapter (r=32, alpha=32) for google/gemma-4-E4B-it, which determines whether a generic secret is a real credential or a false positive. It triages findings produced by the Binarly Transparency Platform over…
Downloads · 30 days
13
54% of all-time downloads
All-time downloads
24
Public
Repo size
182 MB
Likes
0
Public
Click a slice to open those files.
.safetensors149 MB · 82%
From the Hugging Face model README
PEFT QDoRA adapter (r=32, alpha=32) for
google/gemma-4-E4B-it, which
determines whether a generic secret is a real credential or a false positive.
It triages findings produced by the
Binarly Transparency Platform over scanned Docker
image file systems. Only the language tower is adapted and no base weights are
included, so the base model must be loaded underneath it.
The scan used to produce the dataset, how the adapter was trained and its accuracy on the test data are described in the Containers Don't Keep Secrets: Scanning Docker Hub for Leaked Credentials and Private Keys blog post.
Throughout the training process, one prompt shape and one output schema were used. Deviating from these may affect accuracy, so treat the three pieces below as fixed.
System message. system-prompt.txt — the exact bytes
matter. It contains the decision rules used to generate the training labels.
Editing them can change the scores; re-validate if you do so.
User message. One finding as tagged sections, closing with the question exactly as written here:
<finding>
<file>
path: opt/app/config/settings.py
name: settings.py
kind: source
magic_string: Python script, ASCII text executable
</file>
<secret>
value: 3f8a1c94e2b7d05f6a1e8c3b9d4f7028
entropy_per_char: 3.953
</secret>
<secret_match>
SECRET_KEY = "3f8a1c94e2b7d05f6a1e8c3b9d4f7028"
</secret_match>
<secret_context>
DEBUG = False
SECRET_KEY = "3f8a1c94e2b7d05f6a1e8c3b9d4f7028"
</secret_context>
</finding>
Is this a real secret or a false positive?
Assistant output. Strict JSON, one key, no prose and no code fence —
{"verdict": "..."}, where verdict is exactly one of:
true_positive — a real credential, key, token, or password.false_positive — an identifier, hash, public key, or a value appearing in
documentation or an example section.temperature = 0 (do_sample = False). The verdict is
based on a single token. Sampling only increases the chance of producing an
incorrect result.PARAMETER num_ctx 8192, as the bundled Modelfile does.This is a standard PEFT DoRA adapter whose target modules match the base
language tower, so it loads with any stack that supports PEFT DoRA over
google/gemma-4-E4B-it:
Gemma4ForConditionalGeneration, so load the full
base and apply the adapter on top. Gemma 4's vision and audio encoders use
Gemma4ClippableLinear layers, which PEFT will not adapt.unsloth/gemma-4-e4b-it-unsloth-bnb-4bit base. The
adapter loads onto either that or the 16-bit google/gemma-4-E4B-it.from unsloth import FastVisionModel
m, tok = FastVisionModel.from_pretrained(
"generic-secret-triage-r32-c8",
load_in_4bit=False,
)
m.save_pretrained_gguf("out", tok, quantization_method="q4_k_m")
Update the Modelfile to point to the generated GGUF located in the out_gguf/
directory, then run ollama create generic-secret-triage -f Modelfile.
Requires Ollama v0.20.0 or newer.
google/gemma-4-E4B-it, trained through
unsloth/gemma-4-e4b-it-unsloth-bnb-4bit (4-bit, frozen) on a single
NVIDIA L4.