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-139b-old' into f-139-rel
Niko1221bd34d0d87ef6
diff --cc setup.pyindex 981cdfaf5,66e6a4bd7..a1506825d--- a/setup.py+++ b/setup.py@@@ -2108,17 -2171,10 +2215,18 @@@ def source_hash(parts) -> strreturn h.hexdigest()[:16]+def isa_floor_defs(floor: str, bdir: Path, meta: dict) -> list:+ """The experimental older-CPU build's CMake definition (STRATA_ISA_FLOOR, CMakeLists.txt), none for the normal+ build. A build folder configured for another floor is configured afresh: ggml's CPU options are cached there."""+ if (meta.get("isa_floor") or "") != floor and (bdir / "CMakeCache.txt").exists():+ (bdir / "CMakeCache.txt").unlink()+ return [f"-DSTRATA_ISA_FLOOR={floor}"] if floor else []++- def engine_defs(archs) -> list:- """Extra CMake definitions for the engine: the experimental Pascal/Volta build (#295) for cards below sm_75."""- return ["-DSTRATA_EXPERIMENTAL_SM60=ON"] if min(int(x) for x in archs) < 75 else []+ def engine_defs(archs, toolkit=13) -> list:+ """Extra CMake definitions for the engine: the experimental Pascal/Volta build (#295) for cards below sm_75, and+ for every CUDA 12 engine (the same build as the ready-made CUDA 12 one: it admits the older cards)."""+ return ["-DSTRATA_EXPERIMENTAL_SM60=ON"] if min(int(x) for x in archs) < 75 or int(toolkit) == 12 else []def prebuilt_vision(meta: dict, gpu: dict, vision: str) -> str:@@@ -2166,12 -2226,11 +2280,12 @@@ def build_engine(gpu, vision, yes, llam"10-20 minutes, once) ..." if new_arch else" The engine's source changed: compiling it again (only what changed, a few minutes) ..."if local and (eng / EXE).exists() else " Compiling the Strata engine for your GPU (10-20 minutes, once) ...")- cmake_build(ROOT, ROOT / "build", "strata",+ cmake_build(ROOT, bdir, "strata",["-DSTRATA_ENABLE_CUDA=ON", "-DSTRATA_BUILD_TESTS=OFF", f"-DCMAKE_CUDA_ARCHITECTURES={cuda_archs}",- f"-DCMAKE_CUDA_COMPILER={nvcc}", f"-DSTRATA_GGML_DIR={llama}", *engine_defs(archs),- *isa_floor_defs(floor, ROOT / "build", meta)],- vcvars, "build-strata.bat")- shutil.copy2(ROOT / "build" / EXE, eng / EXE)- f"-DCMAKE_CUDA_COMPILER={nvcc}", f"-DSTRATA_GGML_DIR={llama}", *engine_defs(archs, toolkit)],++ f"-DCMAKE_CUDA_COMPILER={nvcc}", f"-DSTRATA_GGML_DIR={llama}", *engine_defs(archs, toolkit),++ *isa_floor_defs(floor, bdir, meta)],+ vcvars, "build-strata-cuda12.bat" if t12 else "build-strata.bat")+ shutil.copy2(bdir / EXE, eng / EXE)if not vision_ok:say(" Compiling the image encoder" + (" with CUDA (10-20 minutes, once) ..." if vision == "gpu" else " ..."))defs = [f"-DLLAMA_DIR={llama}", f"-DSTRATA_VISION_CUDA={'ON' if vision == 'gpu' else 'OFF'}"]@@@ -2182,9 -2242,8 +2297,9 @@@bindir = Path(nvcc).parent # the toolkit's own libraries (bin, bin/x64, lib64)dirs = [str(d) for d in (bindir, bindir / "x64", bindir.parent / "lib64") if d.is_dir()]stamp.write_text(json.dumps({"source": "local", "version": source_version(), "archs": archs,- "vision": vision,+ "vision": vision, **({"toolkit": 12} if t12 else {}),- "cuda_dirs": dirs, "src": src, "vision_src": vsrc if want_vision else None}, indent=1))+ "cuda_dirs": dirs, "src": src, "vision_src": vsrc if want_vision else None,+ **({"isa_floor": floor} if floor else {})}, indent=1))ok(f"engine compiled: {eng / EXE}")return eng