"""strata_control/retired.py: DeepSeek configs, names, folders and files are recognised locally and at once; the words name the folder and its size; a Qwen config never matches; nothing raises on unreadable input.""" from __future__ import annotations import json import struct import sys import tempfile import time import unittest from pathlib import Path ROOT = Path(__file__).resolve().parents[2] sys.path.insert(0, str(ROOT)) from strata_control import retired # noqa: E402 def gguf(path: Path, arch: str, extra_kv_first: bool = False) -> Path: """A GGUF header with general.architecture (optionally behind a u32 key) and no tensors.""" def kv_str(k: str, v: str) -> bytes: kb, vb = k.encode(), v.encode() return struct.pack("