GLM-5.3-Flash EXL3 on 2x DGX Spark with TensorFold
Python
tools: chunked-body and stream-admission tests follow the renumbering and read_body's messages
MiaAI-Laba6759ad87109
diff --git a/tools/test_chunked_bodies.py b/tools/test_chunked_bodies.pyindex 570d62f..0120f71 100644--- a/tools/test_chunked_bodies.py+++ b/tools/test_chunked_bodies.py@@ -139,7 +139,7 @@ def main():s.sendall(request("/v1/chat/completions", b"", chunks=bad))s.shutdown(socket.SHUT_WR) if bad.endswith(b"abc") else Nonestatus, headers, body = read_response(f)- assert status == 400 and "malformed chunked" in body.decode(), (bad, status, body)+ assert status == 400 and any(w in body.decode() for w in ("chunk", "incomplete")), (bad, status, body)assert headers.get("connection") == "close", headerss.close()# 5. a body past the limit is refused as soon as its chunks say so, and the connection closeddiff --git a/tools/test_stream_admission.py b/tools/test_stream_admission.pyindex 1e56db6..dc16486 100644--- a/tools/test_stream_admission.py+++ b/tools/test_stream_admission.py@@ -1,7 +1,7 @@"""CPU-only: a full server answers a STREAMED request 429 + Retry-After, not 200 and an error event (issue #50).python3 -B tools/test_stream_admission.py --source-root /path/to/patched/src-Use --expect-stock on a source without patch 0094 (patches 0081-0083 only) to see the 200 with the error inside the stream.+Use --expect-stock on a source without patch 0095 (patches 0081-0083 only) to see the 200 with the error inside the stream.Runs the real CUDA-server handler on a loopback port with a stub app whose scheduler refuses like ``Scheduler._check_admission``when its cap is reached; ``App.admit`` itself is taken from the source file and run on a fake engine. No torch or GPU."""