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++

setup: a card that cannot be used names both ways that work (--gpus 0,2, or one card: --gpu 0 or --gpu 2)

Niko1221bba62249d526
diff --git a/setup.py b/setup.py
index de1f51a5a..0b806af00 100644
--- a/setup.py
+++ b/setup.py
@@ -345,9 +345,10 @@ def check_gpus(sel, found, what="") -> None:
gpu_table(found)
can = together_ok(found)
single = [x for x in found if gpu_problem(x) is None]
- hint = ("use them together with --gpus " + ",".join(str(x["index"]) for x in can) if can else
- "use one GPU with --gpu " + str(single[0]["index"]) if single else
- "Strata needs an NVIDIA RTX 30 series or newer card")
+ ones = " or ".join(f"--gpu {x['index']}" for x in single)
+ both = "--gpus " + ",".join(str(x["index"]) for x in can) if can else ""
+ hint = ((f"use these together: {both}" + (f" (or one card: {ones})" if not together else "")) if can else
+ f"use one card: {ones}" if single else "Strata needs an NVIDIA RTX 30 series or newer card")
fail(f"GPU {i}{'' if g is None else ' (' + g['name'] + ')'} {what}cannot be used: {p}", hint)