Skip to content

Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.

fix(realtime): tier thresholds allow for real-world VRAM reporting

rubenluetke10-beep7284b8f8f911
diff --git a/jarvis/realtime/local_server/tiers.py b/jarvis/realtime/local_server/tiers.py
index 83db358c4c..5f061150e4 100644
--- a/jarvis/realtime/local_server/tiers.py
+++ b/jarvis/realtime/local_server/tiers.py
@@ -44,6 +44,12 @@ class Tier:
#: Ordered bottom-up; :func:`pick_tier` returns the highest fitting tier.
+#:
+#: Thresholds sit slightly UNDER the marketing sizes on purpose: a "16 GB"
+#: card reports ~15.9 GiB usable (measured live on the dev box, nvidia-smi
+#: 16303 MiB), and calling it a 12 GB machine would be exactly the kind of
+#: dishonesty the probe exists to avoid. The floor itself (12.0) is NOT
+#: relaxed — the mandate's minimum is a hard line, not a label.
TIERS: tuple[Tier, ...] = (
Tier(
key="t0-12gb",
@@ -58,7 +64,7 @@ TIERS: tuple[Tier, ...] = (
Tier(
key="t1-16gb",
label="16 GB",
- min_usable_gb=16.0,
+ min_usable_gb=15.5,
brain_model="qwen2.5:7b",
target_class="~30B-class brain (pending bake-off)",
measured=False,
@@ -68,7 +74,7 @@ TIERS: tuple[Tier, ...] = (
Tier(
key="t2-32gb",
label="32 GB",
- min_usable_gb=32.0,
+ min_usable_gb=31.0,
brain_model="qwen2.5:7b",
target_class="~70B-class brain, quantized (pending bake-off)",
measured=False,
@@ -78,7 +84,7 @@ TIERS: tuple[Tier, ...] = (
Tier(
key="t3-64gb",
label="64 GB",
- min_usable_gb=64.0,
+ min_usable_gb=62.0,
brain_model="qwen2.5:7b",
target_class="~70B-class brain, full precision / large MoE (pending bake-off)",
measured=False,
@@ -88,7 +94,7 @@ TIERS: tuple[Tier, ...] = (
Tier(
key="t4-128gb",
label="128 GB+",
- min_usable_gb=128.0,
+ min_usable_gb=124.0,
brain_model="qwen2.5:7b",
target_class="frontier open-weights class, ~120B+ MoE (pending bake-off)",
measured=False,
diff --git a/tests/unit/realtime/local_server/test_engine.py b/tests/unit/realtime/local_server/test_engine.py
index 93437c3479..95377a5f11 100644
--- a/tests/unit/realtime/local_server/test_engine.py
+++ b/tests/unit/realtime/local_server/test_engine.py
@@ -15,8 +15,13 @@ class TestTierLadder:
def test_floor_and_boundaries(self) -> None:
assert tiers.pick_tier(12.0) is not None
assert tiers.pick_tier(12.0).key == "t0-12gb"
+ # Real cards report slightly under their marketing size (a 16 GB
+ # RTX measures ~15.9 GiB), so thresholds carry an engineering
+ # allowance — the marketing-16GB card must land in the 16 GB tier.
+ assert tiers.pick_tier(15.9).key == "t1-16gb"
assert tiers.pick_tier(16.0).key == "t1-16gb"
- assert tiers.pick_tier(31.9).key == "t1-16gb"
+ assert tiers.pick_tier(30.5).key == "t1-16gb"
+ assert tiers.pick_tier(31.5).key == "t2-32gb"
assert tiers.pick_tier(700.0).key == "t4-128gb"
def test_only_measured_tiers_may_claim_measured(self) -> None: