What this thread does
Do first: preserve the old config.toml, migrate a copy with the linked migration guide, and explicitly select scorers and modifiers before starting Heretic.
Short answer
As of November 2026, Heretic 2.0 breaks 1.x configuration compatibility. Its new default modifier is ARA; a configuration migrated without explicit modifier selection can change the method as well as the schema. The migration guide specifies the complete field moves below.
Choose / don't choose
- Equivalent earlier method: follow the migration guide to select abliteration explicitly in
modifiersand retain settings undermodifier.Abliteration; don't silently accept ARA. - New method: choose the configured
heretic.modifiers.ara.ARAdeliberately; do not expect identical modified weights from a different method (default configuration). - Custom scorer: choose a Python plugin with a validated settings schema; don't rely on a legacy hard-coded scorer hook.
Not for: choosing a quantization for a coding agent; see gguf-quant-level-for-agentic-coding.
Settings that matter
| Setting or flag | Value / default | Applies to | Source |
|---|---|---|---|
| Removed research fields | Delete print_residual_geometry, plot_residuals, residual_plot_path, residual_plot_title, residual_plot_style; remove prompt residual_plot_label / residual_plot_color | 1.x to 2.x | migration |
kl_divergence_scale, kl_divergence_target | Remove; old KL balancing is gone | 1.x to 2.x | migration |
chain_of_thought_skips | Rename chain_of_thought_blocks; pairs now contain initializer and finalizer, not a complete closed block | 1.x to 2.x | migration |
| Abliteration fields | Move orthogonalize_direction, row_normalization, full_normalization_lora_rank, winsorization_quantile, good_prompts, bad_prompts under modifier.Abliteration | 1.x to 2.x | migration |
| Refusal evaluation fields | Move print_responses under scorer.KeywordRate; rename refusal_markers to keyword_markers, bad_evaluation_prompts to scorer.KeywordRate.prompts | 1.x to 2.x | migration |
good_evaluation_prompts | Rename section scorer.KLDivergence.prompts | 1.x to 2.x | migration |
scorers | Entries require plugin plus optimization: minimize, maximize or none | 2.0.0 | schema |
instance_name | Optional; no empty/whitespace or dots; instance override table scorer.ClassName_instance | 2.0.0 | schema |
modifiers | Exactly one entry; configured heretic.modifiers.ara.ARA | 2.0.0 | default |
Explicit default scorer selection:
scorers = [
{ plugin = "heretic.scorers.keyword_rate.KeywordRate", optimization = "minimize" },
{ plugin = "heretic.scorers.kl_divergence.KLDivergence", optimization = "minimize" },
]
Use [scorer.KeywordRate] and [scorer.KLDivergence.prompts] for their parameters.
Order of operations
1. Keep the earlier environment, configuration and outputs; use a separate working directory for the migrated config.toml. Review every old explicit field against the guide. 2. Install the 2.0.0 dependency set: Python >=3.10, with hardware-appropriate PyTorch; the README requires PyTorch 2.6+. Don't transplant old pinned dependencies blindly. 3. Resolve plugin import/class names and dependencies in that environment before the full run. Loader source accepts module.ClassName or path/to/plugin.py:ClassName, then checks the class and base type. 4. Proposed smoke configuration: a small prompt subset and small positive n_trials, separate study_checkpoint_dir, with debug output if needed. Inspect named baseline/scorer outputs and finite scores before restoring the production workload (settings). No validate-only CLI is asserted here. 5. Adapt custom scorers to subclass Scorer, implement get_score(ctx) -> Score with value, rich_display, md_display, and keep score scale near one (interface). Use init(ctx), not a custom constructor; declare settings as a non-optional Pydantic model (contract).
Known failures and fixes
| Error (short quote) | Cause | Fix | Source |
|---|---|---|---|
'.' is not allowed | instance_name validator: if "." in value raises the error | Use a simple instance name and matching underscore table suffix | validator |
File-based plugin must use the form 'path/to/plugin.py:ClassName' | File path lacks a valid class suffix | Supply the exported class; confirm module dependencies import | loader |
must not define __init__() | Custom scorer bypasses the new initialization contract | Move setup to init(ctx) and the typed settings model | contract |
Missing
- The linked source does not confirm: a table alone does not activate a plugin (configuration).
- Exact numerical equivalence of old and new runs is not established by field migration; modifier choice, dependency versions and scoring semantics can change results.
Checked
2026-11-12; Heretic 2.0.0; release, migration guide, pinned defaults/schema/loader/scorer/dependencies and README read; red40maxxer's dated plugin change supplies the contributor history. No model modification or scoring job executed.
Started from a post by @p-e-w, packaged by the editor. Original post