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++
Models folder: a whole drive becomes D:\Strata (and D:\Strata\Models), the person's folder is written into the settings file Control reads (so the installer accepts it whatever it is called), no link where the disk cannot hold one, plain words for a folder that is gone or not writable; the Terminal remembers a chosen --data-dir; docs: moving models to another disk and what stays on C:
Niko122114be49605f9d
diff --git a/docs/DOCKER.md b/docs/DOCKER.mdindex c87dafe7c..dc8ce6161 100644--- a/docs/DOCKER.md+++ b/docs/DOCKER.md@@ -134,6 +134,9 @@ variable; the model and tuning stay in `/data`. Anything else: `docker exec straWhat is in the volume `/data`: `Strata-data/` (model files, the prepared pack), `state/` (presets, tuning, the key), `install/`(run settings and logs), `home/`. The engine and the Terminal are in the image, so updating the image never touches your files.+To keep it all on a big disk, mount a folder there instead of the named volume: `-v /mnt/big/strata:/data` (the folder must be writable by the+container's user). Nothing large is written anywhere else in the container.+### Files you already haveMount the folder with the model's GGUF files read-only and name it: `-v /srv/gguf/IQ3_XXS:/models:ro -e MODEL_PATH=/modelsdiff --git a/docs/INSTALL.md b/docs/INSTALL.mdindex 80db9797e..d860d0429 100644--- a/docs/INSTALL.md+++ b/docs/INSTALL.md@@ -305,6 +305,26 @@ says so and starts the engine you had.GitHub at the commit `LLAMA_CPP_COMMIT` in `setup.py` names. Put that commit's tree in `third_party/llama.cpp`yourself (from a mirror or another PC) and setup uses it instead (#585).+### Keeping the models on another disk++The model files are the only big part (70 to 190 GB). Put them where there is room; the app and the Terminal use the same folder.++- **In the app:** the first screen shows the model folder with a button to change it, and Settings > Storage changes it+ later. Pick a folder you can save files in; a whole drive (`D:\`) becomes `D:\Strata`, which Strata makes and says so.+ Models you already have in the old folder stay there and keep working; nothing is moved or deleted for you.+- **In the Terminal:** `strata launch --data-dir D:\Strata` once. The folder is remembered for the next `strata launch`+ and `strata models list`. Until you give it one, the Terminal uses the folder the app chose; the app keeps its own setting+ (Settings > Storage) and does not read the Terminal's. `--move-data` moves the models you already have into it; without it they stay where they+ are and the new folder gets the new downloads. Use your own files in place with `strata launch --model-path FOLDER` (a+ folder of shards, a folder above it, or one `.gguf` file); a folder that holds several sizes needs the one `.gguf` file.+- **Drives that are not NTFS** (exFAT, FAT32, a network share) work: Strata writes straight into `<folder>\models` and makes no+ link there.+- **What stays on C:** the engine (`%LOCALAPPDATA%\Strata\components`, 1 to 2 GB per version; `STRATA_COMPONENTS_DIR` moves it),+ the app itself (the installer asks), your settings, chat history, tuning results and logs (`%LOCALAPPDATA%\Strata`,+ `%APPDATA%\Strata`; a few MB). Nothing else large: downloads, the prepared model data (`packs`) and the draft layer (`mtp`) are+ written in the model folder, and so are the half-finished files of an interrupted download.+- **Docker:** `-v /mnt/big/strata:/data` (a folder on the big disk) instead of the volume `strata-data`; everything above lives in it.+## Setup's questionsThese are the questions of the installer from source (`START-HERE.bat`, `./setup.sh`). The app's first screen anddiff --git a/strata_cli/launch/runner.py b/strata_cli/launch/runner.pyindex bec861f72..709675b84 100644--- a/strata_cli/launch/runner.py+++ b/strata_cli/launch/runner.py@@ -542,6 +542,8 @@ class Runner:args += ["--data-dir", str(data)]if self.move_data and s.data_dir: # only when the person said so: setup moves nothing otherwiseargs.append("--move-data")+ if s.data_dir: # a folder the person chose is remembered for the next start and for the app+ args.append("--set-default-data-dir")if s.model_path:p = Path(s.model_path)args += ["--gguf-dir", str(p if p.is_dir() else p.parent)]@@ -549,8 +551,9 @@ class Runner:args += ["--gpus", ",".join(str(g) for g in s.gpus)] if len(s.gpus) > 1 else ["--gpu", str(s.gpus[0])]if sys.platform == "darwin":# a Mac's setup (Control mode, strata_control/mac_fit.py) takes fewer options (no --kv, --gpu, speed projection)- keep = {"--yes", "--no-start", "--family", "--model", "--context", "--vision", "--data-dir", "--gguf-dir", "--move-data"}- flags = ("--yes", "--no-start", "--move-data")+ keep = {"--yes", "--no-start", "--family", "--model", "--context", "--vision", "--data-dir", "--gguf-dir", "--move-data",+ "--set-default-data-dir"}+ flags = ("--yes", "--no-start", "--move-data", "--set-default-data-dir")out, i = [], 0while i < len(args):if args[i] in keep:diff --git a/tests/terminal/test_launch.py b/tests/terminal/test_launch.pyindex bf2b4a0ad..a6255e8d8 100644--- a/tests/terminal/test_launch.py+++ b/tests/terminal/test_launch.py@@ -407,11 +407,13 @@ class SetupArgs(unittest.TestCase):["--gpu", "1"]):self.assertIn(pair[0], a)self.assertEqual(a[a.index(pair[0]) + 1], pair[1])+ self.assertIn("--set-default-data-dir", a) # a folder the person chose is the remembered one (the app and the next start use it)def test_a_mac_gets_only_the_options_its_setup_knows(self):with mock.patch.object(sys, "platform", "darwin"):a = self.runner(data_dir="/d", gpus=[0])- self.assertEqual(a, ["--yes", "--no-start", "--family", "qwen", "--model", "IQ3_XXS", "--context", "32768", "--vision", "no", "--data-dir", "/d"])+ self.assertEqual(a, ["--yes", "--no-start", "--family", "qwen", "--model", "IQ3_XXS", "--context", "32768", "--vision", "no", "--data-dir", "/d",+ "--set-default-data-dir"])class AdoptRules(unittest.TestCase):diff --git a/tools/test_strata_mcp.py b/tools/test_strata_mcp.pyindex 8bc0acd7f..3e490831b 100644--- a/tools/test_strata_mcp.py+++ b/tools/test_strata_mcp.py@@ -346,6 +346,17 @@ class Validation(FakeRoot):for d in ok:self.assertEqual(M.norm(self.tools.check_data_dir(str(d))), M.norm(d))+ def test_the_persons_own_data_folder_is_accepted_whatever_it_is_called(self):+ """The app writes the folder the person chose into the settings file (apps/host model-folder.mjs); an AI tool naming a new+ folder still needs a Strata... name."""+ chosen = self.root.parent / "my-big-disk"+ chosen.mkdir()+ self.assertRejected("strata_install", {"data_dir": str(chosen)}, "named Strata")+ settings = self.tools.s.settings_path()+ settings.parent.mkdir(parents=True, exist_ok=True)+ settings.write_text(json.dumps({"data_dir": str(chosen)}))+ self.assertEqual(M.norm(self.tools.check_data_dir(str(chosen))), M.norm(chosen))+def test_other_tools_arguments(self):self.assertRejected("strata_start", {"model": "../../etc/passwd"}, "not valid")self.assertRejected("strata_start", {"model": "q2_0"}, "no model is installed")