fix(obliterate): append record_reference after the existing positional parameters

Inserting the new option mid-signature shifted the positional tail that
tests/test_checkpoint_callback.py pins for upstream compatibility.
Append it after export_progress so every existing position is unchanged.
This commit is contained in:
Joseph Magly committed 2026-11-18 12:15:21 -05:00
1 parent 3359177d25
commit 9dcd774bc2
1 file changed
+1 -1
+1 -1
View File
@@ -1124,7 +1124,6 @@ class AbliterationPipeline:
# Verify stage sample size
verify_sample_size: int | None = None,
refusal_max_tokens: int | None = None,
record_reference: bool = False,
max_perplexity_increase: float = 3.0,
min_coherence_retention: float = 0.5,
max_degenerate_fraction: float = 0.2,
@@ -1159,6 +1158,7 @@ class AbliterationPipeline:
execution_budget: ExecutionBudget | None = None,
export_continuation=None,
export_progress=None,
record_reference: bool = False,
):
if snapshot_enabled is not None and type(snapshot_enabled) is not bool:
raise ValueError("snapshot_enabled must be a boolean or None")