MiniMax-H3-OrbitQuant-W4A4 / scripts /verification_policy.py
WaveCut's picture
Publish validated MiniMax H3 OrbitQuant W4 release
fa2d87b
Raw
History Blame Contribute Delete
647 Bytes
from __future__ import annotations
def inventory_failure(
component_mode: str, *, orbit_count: int, adaln_count: int, cache_count: int
) -> str | None:
if cache_count:
return "full dequantized caches present after clean load"
low_bit_count = orbit_count + adaln_count
if component_mode == "w4a4" and low_bit_count == 0:
return "no low-bit modules restored"
if component_mode == "source_copy" and low_bit_count:
return "unexpected low-bit modules in source component copy"
if component_mode not in {"w4a4", "source_copy"}:
return f"unknown component mode: {component_mode}"
return None