Skip to content

[TUI] setup: never offer a GPU pair to Inkling 2 (its engine runs on one card) - #208

Open
cobra91 wants to merge 2 commits into
simplexai-labs:mainfrom
cobra91:setup-inkling-one-card
Open

cobra91 wants to merge 2 commits into
simplexai-labs:mainfrom
cobra91:setup-inkling-one-card

Conversation

@cobra91

@cobra91 cobra91 commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Problem and result: on a PC with two or more GPUs, a fresh Inkling 2 Mini install writes a GPU pair and layer_split: auto into its config, and the engine exits the moment it starts: Inkling 2 runs on one card (--layer-split is not supported for it yet) (engine/src/poly/inkling2.cpp's need(opt_.layer_split.empty(), ...)). After this change a family marked one_card keeps a single card everywhere: poly_setup clears the pair at fresh setup with a warning, and offer_together never offers one later.

Correction over the first push (848f505): the first version only guarded offer_together(), which a fresh poly install never reaches — poly_setup() writes the pair directly (terminal/setup.py ~10845), and _start() skips the offer for poly configs. A review of the fresh-install path caught it; the second commit adds the poly_setup guard, and the validation below was re-run for real this time. The first version's "Passed" line claimed the full setup command had been re-run when only offer_together had been called directly; that claim was wrong and is withdrawn.

Approach: "one_card": True on the inkling family entry, a guard in poly_setup that empties multi for such a family (with a warning naming the engine's own message), and the same check in offer_together for any config that still arrives there single-card. Explicit --layer-split on such a family now draws setup's warning instead of an engine exit.

Validation:

  • Passed (before, unfixed main d1f711e11): python terminal/setup.py --family inkling --model UD-Q4_K_XL --vision none --no-start --yes on RTX 5080 + RTX 4060 Ti, Windows 11 — the config got "gpu": [1, 0], "layer_split": "auto" and the first start died with the engine's exit.
  • Passed (after, 0e43f83b): the same command from a deleted config — setup prints [!] Inkling 2 Mini runs on one card so far (--layer-split is not supported for it yet): using GPU 0 (RTX 5080) and writes "gpu": 0, "layer_split" absent.
  • Passed (after): terminal/run-inkling-ud-q4_k_xl.bat starts on that config (health in 12 s) and answers a chat request (finish_reason stop).
  • Passed (after): a direct offer_together() call on a single-card inkling config returns unchanged, and on a non-one_card family (ornith) the pair offer still proceeds (gpu [0, 1], layer_split auto).
  • Not run: the full setup test suite (no existing test covers offer_together or poly_setup's multi branch) and setup_mac.py (the Mac path installs inkling single-card already).

Limits: when the engine grows a layer split for Inkling 2, drop the one_card flag; nothing else references it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant