Datasets:
Camera correction: A14B rehired as scheduled; TI2V-5B is the resident camera
Browse files- blue_morpho/hiring.py +30 -7
blue_morpho/hiring.py
CHANGED
|
@@ -68,6 +68,8 @@ class Candidate:
|
|
| 68 |
waived_by: str = "" # H2: who signed off a bespoke licence, if anyone
|
| 69 |
full_gb: float = 0.0 # H9: size at full precision, if it differs from the resident form
|
| 70 |
precision: str = "bf16" # H9: what is actually loaded
|
|
|
|
|
|
|
| 71 |
|
| 72 |
@property
|
| 73 |
def evidence(self) -> str:
|
|
@@ -102,10 +104,18 @@ def vet(candidate: Candidate, budget_gb: float = VRAM_TOTAL_GB) -> tuple[str, st
|
|
| 102 |
|
| 103 |
if candidate.weight_gb <= 0:
|
| 104 |
return "refuse", "weight size unmeasured (H1)"
|
| 105 |
-
|
| 106 |
-
|
|
|
|
|
|
|
|
|
|
| 107 |
f"headroom in a {budget_gb:.1f} GB card (H3)")
|
| 108 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 109 |
|
| 110 |
|
| 111 |
# ---------------------------------------------------------------------------------------------
|
|
@@ -149,9 +159,18 @@ HIRES: tuple[Candidate, ...] = (
|
|
| 149 |
"13B/2B, dev/distilled and fp8/bf16: no runtime loads all of it. LTXV Open Weights "
|
| 150 |
"License 0.X, royalty-free, no NC clause, no revenue threshold - re-read on every "
|
| 151 |
"version bump."),
|
| 152 |
-
Candidate("Wan-AI/Wan2.2-T2V-A14B-Diffusers", "cinematographer (hero shots)", grade=1,
|
| 153 |
-
weight_gb=
|
| 154 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 155 |
)
|
| 156 |
|
| 157 |
REJECTS: tuple[tuple[str, str], ...] = (
|
|
@@ -205,9 +224,13 @@ CALL_SHEET: dict[str, list[tuple[str, float]]] = {
|
|
| 205 |
("Qwen3-VL-8B - video assist", 17.5),
|
| 206 |
],
|
| 207 |
"shoot": [
|
| 208 |
-
("Wan2.2-
|
| 209 |
("Qwen3-VL-8B - video assist", 17.5),
|
| 210 |
],
|
|
|
|
|
|
|
|
|
|
|
|
|
| 211 |
"shoot (fast iteration)": [
|
| 212 |
("LTX-Video 13B bf16 - cinematographer", 28.6),
|
| 213 |
("Qwen3-VL-8B - video assist", 17.5),
|
|
|
|
| 68 |
waived_by: str = "" # H2: who signed off a bespoke licence, if anyone
|
| 69 |
full_gb: float = 0.0 # H9: size at full precision, if it differs from the resident form
|
| 70 |
precision: str = "bf16" # H9: what is actually loaded
|
| 71 |
+
resident_gb: float = 0.0 # what it holds on the card (0 = same as weight_gb)
|
| 72 |
+
residency: str = "resident" # resident | scheduled (offloads) | guest (probation)
|
| 73 |
|
| 74 |
@property
|
| 75 |
def evidence(self) -> str:
|
|
|
|
| 104 |
|
| 105 |
if candidate.weight_gb <= 0:
|
| 106 |
return "refuse", "weight size unmeasured (H1)"
|
| 107 |
+
# H3 is about what is held ON THE CARD, not what is on disk. A scheduled model may keep most of
|
| 108 |
+
# itself in host RAM and hold only its working expert - but it must say so.
|
| 109 |
+
on_card = candidate.resident_gb or candidate.weight_gb
|
| 110 |
+
if on_card > budget_gb - HEADROOM_GB:
|
| 111 |
+
return "refuse", (f"{on_card:.1f} GB on card leaves less than {HEADROOM_GB:.0f} GB "
|
| 112 |
f"headroom in a {budget_gb:.1f} GB card (H3)")
|
| 113 |
+
if candidate.residency != "resident" and on_card >= candidate.weight_gb:
|
| 114 |
+
return "refuse", (f"declared '{candidate.residency}' but holds everything on the card "
|
| 115 |
+
f"({on_card:.1f} GB) - declare the offload or hire it as a resident")
|
| 116 |
+
suffix = "" if on_card == candidate.weight_gb else (
|
| 117 |
+
f" [on card {on_card:.1f} of {candidate.weight_gb:.1f} GB, rest offloaded]")
|
| 118 |
+
return verdict, reason + suffix
|
| 119 |
|
| 120 |
|
| 121 |
# ---------------------------------------------------------------------------------------------
|
|
|
|
| 159 |
"13B/2B, dev/distilled and fp8/bf16: no runtime loads all of it. LTXV Open Weights "
|
| 160 |
"License 0.X, royalty-free, no NC clause, no revenue threshold - re-read on every "
|
| 161 |
"version bump."),
|
| 162 |
+
Candidate("Wan-AI/Wan2.2-T2V-A14B-Diffusers", "cinematographer (hero shots, scheduled)", grade=1,
|
| 163 |
+
weight_gb=114.3, resident_gb=57.2, residency="scheduled",
|
| 164 |
+
licence="apache-2.0", downloads=198_971,
|
| 165 |
+
note="FAILED H3 on first hire: it ships transformer AND transformer_2 (57.15 GB each, "
|
| 166 |
+
"a two-expert high-noise/low-noise pipeline) = 114.3 GB, which does not fit a "
|
| 167 |
+
"95.6 GB card. Re-hired as SCHEDULED: one expert resident, the other in the host's "
|
| 168 |
+
"160 GB RAM. Caught before the 126 GB download (H1)."),
|
| 169 |
+
Candidate("Wan-AI/Wan2.2-TI2V-5B-Diffusers", "cinematographer (resident camera)", grade=2,
|
| 170 |
+
weight_gb=34.2, licence="apache-2.0", downloads=2_000, likes=40,
|
| 171 |
+
note="34.2 GB TOTAL (one transformer, 20.7 GB) - the only Wan that is genuinely resident. "
|
| 172 |
+
"TI2V = text OR image to video, so it also closes audit finding A2: shoot from a "
|
| 173 |
+
"locked character keyframe instead of hoping the prose converges."),
|
| 174 |
)
|
| 175 |
|
| 176 |
REJECTS: tuple[tuple[str, str], ...] = (
|
|
|
|
| 224 |
("Qwen3-VL-8B - video assist", 17.5),
|
| 225 |
],
|
| 226 |
"shoot": [
|
| 227 |
+
("Wan2.2-TI2V-5B - resident camera", 34.2),
|
| 228 |
("Qwen3-VL-8B - video assist", 17.5),
|
| 229 |
],
|
| 230 |
+
"hero render (scheduled, needs offload)": [
|
| 231 |
+
("Wan2.2-T2V-A14B - one expert on card", 57.2),
|
| 232 |
+
(" (the second expert streams from host RAM)", 0.0),
|
| 233 |
+
],
|
| 234 |
"shoot (fast iteration)": [
|
| 235 |
("LTX-Video 13B bf16 - cinematographer", 28.6),
|
| 236 |
("Qwen3-VL-8B - video assist", 17.5),
|