GLiDE-GGUF / native /runtime /tests /test_optimized_control.py
Agentware's picture
Publish GLiDE mixed-precision GGUF with dedicated runtime and evaluation results
10b39cc verified
Raw History Blame Contribute Delete
576 Bytes
"""Even optimized interpreters must not weaken the CUDA synthetic admission tool."""
from pathlib import Path
import subprocess
import sys
script = Path(__file__).with_name("test_fa_production_control.py")
result = subprocess.run([sys.executable, "-O", str(script), "--help"], text=True, capture_output=True, timeout=30)
if result.returncode == 0 or "refuses optimized Python" not in result.stderr:
raise RuntimeError("Optimized admission control failed to reject before any work")
print("Optimized control rejects before arguments, fixture generation, or runner launch")