Skip to content

Qwen3.8-Flash-Next on any consumer hardware: one-click install for Windows / Linux. Strata inference engine, OpenAI/Anthropic API on localhost, optional image input.

C++

Merge branch 'f-1402-s' into f-1402

Niko122157747c1aa90a
diff --cc serve/server.py
index 741f561de,fb6b2c289..d3b31c90a
--- a/serve/server.py
+++ b/serve/server.py
@@@ -611,7 -629,24 +630,23 @@@ class StrataEngine
self.proc = popen("the Strata engine", [exe, "--serve", *args], cwd=cwd, stdin=subprocess.PIPE,
stdout=subprocess.PIPE, stderr=self.log, text=True, encoding="utf-8", bufsize=1, env=env)
contain(self.proc) # ends with the server, however it ends (Windows)
- for line in self.proc.stdout:
- self.max_context = 0
+ # the READY read has a timeout (#1317): the lines come from a thread, up to READY, so the rest of the stream
+ # stays for _pump (one reader at a time)
+ ready_q: queue.Queue = queue.Queue()
+ threading.Thread(target=self._ready_pump, args=(self.proc, ready_q), daemon=True).start()
+ ready_deadline = None if ENGINE_READY_S is None else time.monotonic() + ENGINE_READY_S
+ timed_out = False
+ while True:
+ left = None if ready_deadline is None else ready_deadline - time.monotonic()
+ if left is not None and left <= 0:
+ timed_out = True
+ break
+ try:
+ line = ready_q.get(timeout=left)
+ except queue.Empty:
+ continue
+ if line is None:
+ break
if line.startswith("INFO "):
for kv in line.split()[1:]:
k, _, v = kv.partition("=")