mirror of
https://github.com/elder-plinius/OBLITERATUS.git
synced 2026-12-05 10:34:23 +01:00
Scheduled Conditional tests have failed since late August on two hosted gates, which also blocks release certification: - model-download-runtime: the operator-only Qwen3.8-27B BF16 regression lived in the gate file and always skips on hosted runners; the gate runner rejects any skip. Move it to tests/conditional/test_qwen38_runtime.py, outside every hosted gate. - operator-ui: `uv sync --all-extras` now pulls the qwen-hybrid extra, whose causal-conv1d sdist builds only against a CUDA toolkit. Exclude qwen-hybrid there and in the tag-only supply-chain job, which runs the same sync and would fail the next release. Policy tests pin both invariants. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
43 lines
1.4 KiB
Python
43 lines
1.4 KiB
Python
"""Operator-gated Qwen3.8-27B BF16 regression on a >=80 GiB CUDA device.
|
|
|
|
Kept out of the hosted ``model-download-runtime`` gate: that gate rejects any
|
|
skipped test, and this one can only run on large operator hardware.
|
|
"""
|
|
|
|
from __future__ import annotations
|
|
|
|
import os
|
|
|
|
import pytest
|
|
|
|
|
|
pytestmark = [pytest.mark.network, pytest.mark.download]
|
|
QWEN38_MODEL = "Qwen/Qwen3.8-27B"
|
|
|
|
|
|
@pytest.mark.gpu
|
|
def test_qwen38_bf16_pristine_baseline_validates_projection_contract(tmp_path):
|
|
"""Operator-gated 27B regression: healthy stock model and exact manifest."""
|
|
if os.environ.get("OBLITERATUS_QWEN38_E2E") != "1":
|
|
pytest.skip("set OBLITERATUS_QWEN38_E2E=1 on a >=80 GiB GPU runner")
|
|
|
|
from obliteratus.abliterate import AbliterationPipeline
|
|
|
|
pipeline = AbliterationPipeline(
|
|
QWEN38_MODEL,
|
|
output_dir=str(tmp_path / "qwen38-output"),
|
|
dtype="bfloat16",
|
|
quantization=None,
|
|
)
|
|
pipeline._summon()
|
|
pipeline._capture_stock_baseline()
|
|
assert pipeline._stock_baseline["perplexity"] > 0
|
|
assert pipeline._stock_baseline["coherence"] > 0
|
|
pipeline._validate_architecture_surgery_support()
|
|
assert len(pipeline._qwen35_projection_manifest) == 64
|
|
assert sum(
|
|
target.mixer_attribute == "linear_attn"
|
|
for target in pipeline._qwen35_projection_manifest
|
|
) == 48
|
|
assert pipeline._excise_modified_count is None
|