Downloads · 30 days
0
DmitryDB/Ministral-3-3B-Instruct-2512-Heretic-Adaptive-v1
Ministral-3-3B-Instruct-2512-Heretic-Adaptive-v1 is a image-text-to-text model from DmitryDB. Use it for the image-text-to-text task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as apache-2.0.
This repository contains two BF16 derivatives of mistralai/Ministral-3-3B-Instruct-2512, created with dborzoff/heretic. The adaptive fork preserves Heretic's projection-based weight editing while adding broader search…
Downloads · 30 days
0
Access
Public
Updated Aug 3, 2026
Repo size
15.4 GB
Likes
0
Public
Click a slice to open those files.
.safetensors15.4 GB · 100%
From the Hugging Face model README
This repository contains two BF16 derivatives of
mistralai/Ministral-3-3B-Instruct-2512,
created with
dborzoff/heretic. The adaptive fork
preserves Heretic's projection-based weight editing while adding broader
search, exact trial restoration, multi-fidelity perplexity measurement, and
reproducible experiment artifacts.
The two variants represent different operating points rather than a single universal winner:
balanced/ is the recommended default when preserving the base model is
the priority. Its exact post-export perplexity change was +0.00380%.max/ is the more aggressive variant. It produced fewer policy refusals
and evasive answers, with an exact perplexity change of +0.04696%.Both variants are full BF16 Transformers checkpoints stored in subfolders of this repository.

The semantic evaluation was performed blind on 136 multilingual prompts. Each system received the same prompts and generation limit of up to 2,048 new tokens. Perplexity was then measured independently on 400 windows of 512 tokens using the fully exported checkpoints.
| System | Delivered | Policy refusal | Evasion | Refusal + evasion | Incoherent failure | Exact PPL change |
|---|---|---|---|---|---|---|
| Base model | 43/136 | 47/136 | 45/136 | 92/136 | 1/136 | 0% |
balanced/ (trial 488) | 85/136 | 7/136 | 42/136 | 49/136 | 2/136 | +0.00380% |
max/ (trial 260) | 101/136 | 2/136 | 32/136 | 34/136 | 1/136 | +0.04696% |
Definitions used in the table:
The full text-free labels, aggregate summaries, and exact perplexity report are
published in evaluation/. They contain identifiers, labels,
confidence values, and metrics, but no prompt or response text.
| Priority | Variant | Reason |
|---|---|---|
| Minimum measured model drift | balanced/ | Exact PPL change was close to measurement noise while substantially reducing residual refusal/evasion. |
| Strongest measured refusal reduction | max/ | Lowest residual refusal/evasion among the exported finalists. |
| Production deployment | Neither without validation | These results cover one benchmark and do not establish safety or capability for a particular application. |
The difference in exact perplexity between the two edited variants is small, but it is not the only quality signal. The semantic evaluation shows a real trade-off, so downstream capability tests should determine the final choice.
import torch
from transformers import AutoModelForImageTextToText, AutoProcessor
repo = "DmitryDB/Ministral-3-3B-Instruct-2512-Heretic-Adaptive-v1"
variant = "balanced" # Change to "max" for the more aggressive variant.
processor = AutoProcessor.from_pretrained(repo, subfolder=variant)
model = AutoModelForImageTextToText.from_pretrained(
repo,
subfolder=variant,
torch_dtype=torch.bfloat16,
device_map="auto",
)
Each subfolder includes its own configuration, processor/tokenizer files, and
weight index. The model class remains AutoModelForImageTextToText, matching
the base checkpoint.
The published variants were selected from one 600-trial Optuna journal. The search was deliberately split into broad exploration followed by shared adaptive refinement:

The animation uses real journal measurements. During search, each point is positioned by a keyword refusal proxy and a short perplexity surrogate. The static figure above uses the slower post-export semantic evaluation and exact 400-by-512 perplexity measurement. These are intentionally different stages: the inexpensive proxy guides exploration, while the final measurements choose and document the released checkpoints.
The dry numeric plot data for all 600 trials is available as
evaluation/search_trials.json. It contains
no prompts or model responses.
Compared with the upstream Heretic workflow used as the starting point, this study adds or repairs:
The method still edits output projection weights along estimated refusal directions. Adaptive search changes where and how strongly those edits are applied; it does not retrain the base model or add an inference-time adapter.
For implementation details, configuration controls, tests, and known gaps, see
the repository's
FORK.md.
| Path | Contents |
|---|---|
balanced/ | Full BF16 checkpoint restored from trial 488. |
max/ | Full BF16 checkpoint restored from trial 260. |
evaluation/semantic_labels.jsonl | Blind text-free row-level semantic labels. |
evaluation/semantic_summary.json | Aggregate semantic counts for the base model and both variants. |
evaluation/perplexity_400x512.json | Exact post-export perplexity comparison. |
evaluation/search_trials.json | Dry numeric history used by the published visualizations. |
study/selected_trials.json | Selected trial metadata. |
study/journal.sha256 | Hash of the source search journal. |
The checkpoints were rebuilt from their exact trial records, exported as full weights, reloaded, and then measured. The final semantic comparison was blind: the evaluator did not receive the model names, trial numbers, journal metrics, or perplexity values.
This release is intended for research into refusal behavior, weight editing, evaluation methodology, and the quality cost of model modification. Users are responsible for evaluating the selected variant in their own environment and for applying suitable access controls and safeguards.
The base model and these derivative weights are distributed under Apache-2.0.