Repository navigation
Conversation
|
CI for head 93cce38 was cancelled before any steps ran. Both rerun attempts were denied because this account lacks the required repository rights. Could you rerun No GPU (42998735844) and Zig format (42998735775)? The PR remains draft for live Mac startup validation. All 13 memory tests pass on Windows and Linux, and the macOS cross-compilation checks pass. |
|
@garvrao80 both are rerunning now (No GPU and Zig format on
|
|
Mac host validation is complete for head 93cce38: all 17 tests and 13 build steps passed on macOS arm64. The actual startup/encoding object compiled, and the live memory probe passed. Run and logs: https://github.com/garvrao80/TensorFold/actions/runs/43085028298 Could a maintainer with a suitable Mac check a full Qwen3.8-27B model startup, including the warning output when applicable? The hosted runner has 7 GiB RAM, so the PR remains draft for that check. The Zig format rerun was cancelled before any steps ran again. Could that also be rerun? |
|
Thanks @garvrao80, and thanks for the hosted Mac run. All seven No GPU jobs pass on Two things before we check it on a full model:
Once those are in, we'll run a full Qwen3.8-27B start on a Mac: one at default settings on a quiet machine, where the warning should stay silent, and one with memory held by another process, where it should print. That's the check this draft is waiting on, so you don't need a Mac for it. On Zig format: both runs were cancelled before any step ran, so there's no result yet rather than a failure. The four changed files pass
|
|
Thanks, @ashhart, for clarifying available-memory accounting and the pressure-only message, and @garvrao80 for the Mac host receipt. I can review the revised page-count helper and warning-format tests once those changes are up; the full-model run stays with the maintainers. @garvrao80, would you accept review proposal 6800143356 for that bounded follow-up? |
|
Thanks, @ashhart, for the page-accounting and pressure-only wording checks, Verified outcome
Receipt
The pinned source merges cleanly with main |
|
Thank you @garvrao80, and thanks to @jishnuvenugopal for the bounded host review. Both asks are resolved: the reservation now counts reclaimable macOS pages, and the warning only prints an estimate below the current setting, otherwise saying the settings fit and the pressure is the issue. What remains is ours: a short rebase, because main added the Linux pressure import at the top of
|
d5e4b4e to
175d6c9
Compare
What this changes
Qwen3.8-27B Metal startup can pass its fixed working-set budget while other processes hold memory. Before allocating the streams and prompt scratch, startup warns if the reservation exceeds available memory or macOS reports elevated pressure. The warning estimates smaller
--contextand--parallelsettings using the existing startup cost calculation.Available memory is free plus reclaimable inactive pages from
HOST_VM_INFO64. Free pages already include speculative pages. The checkedavailableByteshelper sums the counts before converting them to bytes. A pressure-only warning says the current settings fit available memory, and estimates appear only when below the requested settings.servehas no memory admission, so a 262k-context start on a swapping Mac reserves 67 GB in seconds and the kernel watchdog panics #2761. This implements the Qwen3.8-27B startup warning.main, merge base7cc27094b1f18ea575695fe07cba0071b57f07f2. This revision addsd5e4b4e7con published head93cce3888.223da7659.Checks on this head
d5e4b4e7c855f55edfbe1a1d344c42eae8f2cae6.zig build -Dfixed-cpu test-qwen27-memory-host -j2 --test-timeout 5m --summary allpassed 15/15 on Windows x86-64. The same 15 tests passed directly on Linux x86-64 with Zig 0.17.0. Zero failures or skips.93cce3888with 13 passes and one failure. On this revision it passes. A planted control that ignores inactive pages fails the fixed-count helper regression with exit 1.zig build test-qwen27-memory-host test-qwen27-startup-host check-qwen27-speed-host -j2 --test-timeout 5m --summary allpassed all 13 build steps and 19 tests (15 memory tests plus two startup tests in each of two environment settings). The actual startup/encoding object compiled. The live reader probe returnedavailable_bytes=3553869824 pressure=1.zig fmt --check build.zig zigandgit diff --checkpassed locally. The upstream format job passed on this head.The direct Linux test command is
Receipt
Checklist