"""Small-row analysis: the route race with the SERVED int8 build selected (27B K4 mul1,
drafter K6 mcg, head K6 mul1), so `i8` is the leg a boot serves. Args pass to the race."""
import argparse, os, sys
sys.path.insert(0, os.getcwd())
os.environ["I8_SERVED_BUILD"] = "1"
import arbi_serve._prebake_loader  # noqa
from arbi_serve.weight_quant.exl3 import int8_kernel as ik
from arbi_serve.weight_quant.exl3 import int8_served_set as ss
ik._SERVED_PLAN = ss.build_plan(argparse.Namespace(
    exl3=[os.environ.get("SR_PACK", "4:mul1+6:mcg+6:mul1")], exl3_checkpoint=None,
    gguf=["Q8_KS:none"], gguf_manifest=None))
print("build:", ik._extension_name(), flush=True)
from tools import exl3_gemv_mma_race as R
R.main()
