mirror of
https://github.com/elder-plinius/OBLITERATUS.git
synced 2026-12-05 10:34:23 +01:00
27 lines
1.1 KiB
Python
27 lines
1.1 KiB
Python
"""Operator-selected real OLMoE acceptance; downloads weights on a CUDA host."""
|
|
|
|
import json
|
|
import os
|
|
|
|
import pytest
|
|
|
|
pytestmark = [pytest.mark.gpu, pytest.mark.download, pytest.mark.integration]
|
|
|
|
|
|
def test_olmoe_concept_acceptance():
|
|
destination = os.environ.get("OBLITERATUS_MOE_VALIDATION_OUTPUT")
|
|
if not destination:
|
|
pytest.skip("Set OBLITERATUS_MOE_VALIDATION_OUTPUT to an empty evidence directory")
|
|
from scripts.validate_moe_concepts import parse_args, run_validation
|
|
|
|
output = run_validation(parse_args(["--gpu", "--output-dir", destination]))
|
|
manifest = json.loads((output / "gpu_run.json").read_text())
|
|
assert manifest["status"] == "completed"
|
|
assert manifest["gate_verdict"] in {"pass", "warn", "fail"}
|
|
assert manifest["edited_parameters"]
|
|
assert (output / "validation.json").exists()
|
|
assert (output / "evaluation.json").exists()
|
|
drift = json.loads((output / "routing_metrics.json").read_text())
|
|
assert drift and all(values["tokens"] > 0 for values in drift.values())
|
|
assert json.loads((output / "expert_load.json").read_text())["evaluation"]
|