Skip to content

Run frontier MoE models on hardware you already own β€” pure C, zero deps, experts streamed from disk. Tiny engine, immense model. 🐦

C

docs(plan): clarify Windows unified-memory discovery

Kenneth-Javier Ortigozadd6c22d5c165
diff --git a/c/resource_plan.py b/c/resource_plan.py
index 349a4040..7a599bfd 100644
--- a/c/resource_plan.py
+++ b/c/resource_plan.py
@@ -355,11 +355,15 @@ def _parse_hipinfo(text):
because the zeros would read as measurements.
``memInfo.free`` is deliberately NOT carried into ``free_bytes``. hipInfo
- does report it, and on the validated gfx1151 host it reported 89.24 GB
- "100% free" while Windows itself had 59.3 GiB of physical memory actually
- available -- the same pages, counted twice, ~30 GB apart. Qualifying that
- relationship is a later slice; until then the value is observed and
- discarded, and ``free_bytes`` stays None. See plans_placement().
+ does report it, but on integrated hardware it has not been qualified as a
+ budget. On the validated gfx1151 host, four controlled rebooted sessions
+ varying the firmware shared-memory limit reported the same 76.79 GiB total
+ at the ~6, ~32 and ~64 GB settings -- about 12.8x the configured limit at
+ the minimum -- and 93.00 GiB only at the ~123 GB maximum, with
+ Windows-visible memory unchanged throughout. What that figure permits, and
+ at what cost to the host, is a later slice; until then the value is
+ observed and discarded, and ``free_bytes`` stays None. See
+ plans_placement().
"""
blocks = []
current = None
@@ -463,8 +467,9 @@ def plans_placement(gpu):
discrete card's free VRAM *is* the budget. It is ``None`` for a device that
exists and is worth reporting but whose free memory has not been qualified
as a Colibri budget -- today, a Windows AMD part found through hipInfo,
- where the runtime's free figure describes the same physical pages the host
- RAM tier is already counting.
+ where the GPU and the host draw on one physical pool and the relationship
+ between the runtime's free figure and host-available memory has not been
+ measured.
``None`` is deliberately distinct from ``0``. Zero is a measurement ("the
card is full") and keeps every behaviour it has always had. ``None`` says
diff --git a/docs/windows.md b/docs/windows.md
index 7484aa2b..5410a0d1 100644
--- a/docs/windows.md
+++ b/docs/windows.md
@@ -418,22 +418,34 @@ measurement.
`memInfo.total` and `memInfo.free`. Colibri records the identity, marks
`isIntegrated: 1` as unified memory, and takes the total.
-It deliberately does **not** use `memInfo.free` as a placement budget. On the
-validated gfx1151 host, `hipInfo` reported:
-
-```
-memInfo.total: 89.39 GB
-memInfo.free: 89.24 GB (100%)
-```
-
-while Windows itself had **59.3 GiB** of physical memory actually available.
-Those are the same physical pages counted twice, about 30 GB apart, on a part
-where the GPU and the host share one pool. Spending the HIP figure as a VRAM
-budget would authorise an expert tier the machine cannot back β€” and the RAM
-tier is being sized from that same memory at the same time.
-
-So such a device is carried as **identity only**: free memory is *unknown for
-planning*, which is not the same claim as "zero bytes are free". `coli plan`
+It deliberately does **not** use `memInfo.free` as a placement budget, because
+on this hardware that figure has not been qualified as one.
+
+The Armoury Crate firmware setting on the validated host exposes a
+*shared-memory allocation* limit. Four controlled observations, each in its own
+rebooted session with everything else held constant, gave:
+
+| Armoury shared-memory limit | `memInfo.total` | `memInfo.free` | Windows visible |
+|---|---|---|---|
+| ~6 GB (UI minimum) | 76.79 GiB | 76.63 GiB | 127.15 GiB |
+| ~32 GB | 76.79 GiB | 76.63 GiB | 127.15 GiB |
+| ~64 GB | 76.79 GiB | 76.63 GiB | 127.15 GiB |
+| ~123 GB (UI maximum) | 93.00 GiB | 92.84 GiB | 127.15 GiB |
+
+Three settings spanning a twentyfold range produced the same reading; only the
+maximum differed. At the ~6 GB minimum the reported total was roughly **12.8Γ—
+the configured limit**. Windows-visible physical memory was unchanged in all
+four runs, as was the 0.50 GiB dedicated frame buffer the driver reports.
+
+So the reported figure is not a simple function of the setting, and no
+slider-to-HIP-memory mapping is assumed here. Nor is it dedicated VRAM: on an
+integrated part the GPU and the host draw on one physical pool, and how much of
+what HIP advertises can actually be spent β€” and at what cost to the host β€” has
+not been measured. Sizing an expert tier from it would be a guess.
+
+Such a device is therefore carried as **identity only**: free memory is
+*unknown for planning*, which is not the same claim as "zero bytes are free".
+`coli plan`
shows it, marked `(identity only)`, with a warning naming it, and:
- the VRAM tier stays at 0
@@ -447,8 +459,8 @@ fabricated in place of a measurement.
None of this prevents you from running on the GPU. Every environment variable
in this document still works exactly as documented β€” this governs only what
Colibri will turn on *by itself*. Qualifying a safe automatic budget on shared
-memory needs measurement on real hardware, and that is deliberately left to a
-later change rather than guessed at here.
+memory needs allocation measurements on real hardware, and that is deliberately
+left to a later change rather than guessed at here.
A discrete Windows AMD card is marked `unified_memory: false` from
`isIntegrated: 0`, but is also carried as identity-only for now: there is no