Spaces:
Running on Zero
Running on Zero
Commit History
3 days ago
-
fix: the memory check stops waiting when less than a millisecond of its bound is left, so a clock that barely moves cannot keep it reading
Unverified signatureFound by the refusal-at-each-step tests: their fake clock had reached a few seconds, and once the time left in LTX25_MEMORY_SETTLE_SECONDS was smaller than the clock's float spacing, sleep(time left) no longer moved it and reading again never ended (a busy loop at 100% CPU). The real monotonic clock always moves, so a live run ended anyway, but the loops asked for sleeps of 1e-16 s on the way. Both waits, the settle and the reading again, now stop when less than 1 ms is left. Test: on a clock that moves in whole milliseconds with a 0.2004 s bound, the judgement ends after sleeping 0.05, 0.1 and 0.0504 s; before, it kept waiting (the test fails after 10,000 sleeps rather than hang).a5caa41 -
fix: after the local runner frees memory, the memory check judges the gauge once it has stopped falling, and a check that fails reads it again before refusing
Unverified signatureThe session's first run (mode 05, 704x480, 5 s, staged, Q8 GGUF) was refused at "load transformer": committed 67.3 + need 25.1 = 92.4 GB > 90 GB, read 10-400 ms after the text encoder was released; eight seconds later the gauge read 38.8 GB. Freed MPS memory is wired and the kernel un-wires it over 0.1-0.35 s (the lead's release probe: 62.3, 59.3, 46.3, 38.3 GB at 0.1 s steps, then flat). File pages given back by release_file_cache leave the gauge at once (measured with a 2 GB file, three passes: the first reading after the release was already at the base level), so only device frees count as a release. - memory.preflight, on the live gauge with a limit: released=True first reads every 50 ms until two consecutive readings are within 0.25 GB and judges that reading; a FAIL is read again every 0.1 s and passes as soon as a reading fits, else it is refused on the last reading. Both waits share LTX25_MEMORY_SETTLE_SECONDS (default 2.0, 0 to 60; 0 is the single reading of before;…ba2d582