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++
launch: Pascal/Volta cards are admitted when they are the only NVIDIA cards, as setup does (V100 showed 'no usable graphics card' and no Cards step)
Niko12216c4dbe336282
diff --git a/strata_cli/launch/catalog.py b/strata_cli/launch/catalog.pyindex f69bb0c77..91e0bb6ba 100644--- a/strata_cli/launch/catalog.py+++ b/strata_cli/launch/catalog.py@@ -214,12 +214,32 @@ class Catalog:hw.setdefault("disk_free_gb", self.strata.disk_free(self.strata.data_dir()))return hwhw = dict(self.strata.hardware(fresh=fresh))+ hw["gpus"] = self._admit_old_nvidia(list(hw.get("gpus") or []))if not hw.get("gpus") and not str(hw.get("os", "")).startswith("Windows"):arc = intel_arc_cards()if arc:hw["gpus"] = arc # the shared hardware reader knows NVIDIA and AMD only; an Arc is added herereturn hw+ @staticmethod+ def _admit_old_nvidia(gpus: list[dict]) -> list[dict]:+ """Pascal / Volta cards (P100, P40, V100: compute capability 6.0-7.0) run on the experimental CUDA 12 engine. setup.py admits them when they+ are the only kind of graphics card in the computer (`old_gpus_opt_in`: "it is the only kind of NVIDIA GPU in this PC"); the shared hardware+ reader does not, so the screens said "no usable graphics card found" and left out the Cards step on a computer with several V100s.+ A newer NVIDIA card or a usable AMD card keeps the old cards out of the way, exactly as in setup."""+ def arch(g: dict) -> int:+ try:+ return int(g.get("arch"))+ except (TypeError, ValueError):+ return 0+ old = [g for g in gpus if g.get("vendor") == "nvidia" and 60 <= arch(g) <= 70 and not g.get("usable", True)]+ if not old:+ return gpus+ if any(g.get("usable", True) for g in gpus):+ return gpus+ return [({**g, "usable": True, "problem": None,+ "note": "experimental: the CUDA 12 engine (docs/OLDER_GPUS.md)"} if g in old else g) for g in gpus]+def computer(self, fresh: bool = False) -> Computer:hw = self.hardware(fresh)return Computer(ram_gb=hw.get("ram_gb"), gpus=list(hw.get("gpus") or []), disk_free_gb=hw.get("disk_free_gb"),diff --git a/tests/terminal/test_launch_old_gpus.py b/tests/terminal/test_launch_old_gpus.pynew file mode 100644index 000000000..f54203fbf--- /dev/null+++ b/tests/terminal/test_launch_old_gpus.py@@ -0,0 +1,56 @@+"""`strata launch` on a computer whose only NVIDIA cards are Pascal / Volta (P100, V100): setup.py admits them (the experimental CUDA 12 engine);+the screens must not say "no usable graphics card found", and several of them must offer the Cards step."""++from __future__ import annotations++import unittest+from unittest import mock++from strata_cli.launch.catalog import Catalog+from tests.terminal.launch_support import HW_12, Home, catalog+++def v100(index: int, vram: float = 16.0) -> dict:+ return {"index": index, "name": "Tesla V100-SXM2-16GB", "arch": "70", "vram_gb": vram, "vendor": "nvidia", "usable": False,+ "problem": "not supported - older than the RTX 20 series (compute capability 7.0)"}+++RTX = {"index": 0, "name": "NVIDIA GeForce RTX 3060", "arch": "86", "vram_gb": 12.0, "vendor": "nvidia", "usable": True, "problem": None}+++class OldNvidiaCards(unittest.TestCase):+ def test_only_volta_cards_are_admitted(self):+ got = Catalog._admit_old_nvidia([v100(0), v100(1)])+ self.assertEqual([g["usable"] for g in got], [True, True])+ self.assertTrue(all(g["problem"] is None for g in got))++ def test_a_newer_card_keeps_the_old_one_out(self):+ got = Catalog._admit_old_nvidia([{**RTX}, v100(1)])+ self.assertEqual([g["usable"] for g in got], [True, False])++ def test_an_amd_card_keeps_the_old_one_out(self):+ amd = {"index": 0, "name": "AMD Radeon RX 9070 XT", "vendor": "amd", "usable": True, "vram_gb": 16.0}+ got = Catalog._admit_old_nvidia([amd, v100(0)])+ self.assertEqual([g["usable"] for g in got], [True, False])++ def test_other_cards_are_not_touched(self):+ gtx = {"index": 0, "name": "GeForce GT 1030", "arch": "61", "vram_gb": 2.0, "vendor": "nvidia", "usable": False}+ self.assertEqual(Catalog._admit_old_nvidia([gtx])[0]["usable"], True) # Pascal is admitted too (setup does the same)+ kepler = {"index": 0, "name": "Tesla K80", "arch": "37", "vram_gb": 12.0, "vendor": "nvidia", "usable": False}+ self.assertEqual(Catalog._admit_old_nvidia([kepler])[0]["usable"], False)+ self.assertEqual(Catalog._admit_old_nvidia([]), [])++ def test_hardware_and_computer_show_the_cards(self):+ with Home():+ cat = catalog()+ cat._hardware_override = None+ hw = {**HW_12, "gpus": [v100(0), v100(1)]}+ with mock.patch.object(type(cat.strata), "hardware", return_value=hw):+ comp = cat.computer(fresh=True)+ self.assertEqual(len(comp.usable_gpus), 2)+ self.assertIn("x2", comp.line())+ self.assertNotIn("no usable graphics card", comp.line())+++if __name__ == "__main__":+ unittest.main()