Skip to content

kolibri1: TENSORFOLD_KOLIBRI_GRAPHS is a registered setting - #5002

Merged
ashhart merged 5 commits into
mainfrom
lead/kolibri-graphs-setting
Nov 25, 2026
Merged

ashhart merged 5 commits into
mainfrom
lead/kolibri-graphs-setting

Conversation

@ashhart

@ashhart ashhart commented Nov 25, 2026

Copy link
Copy Markdown
Owner

TENSORFOLD_KOLIBRI_GRAPHS turns off Kolibri-1's CUDA graphs. Since #4884 it covers both the one-row decode steps and the multi-row decode rounds. It was read straight from the environment, without passing through the settings registry, and it wasn't documented.

  • It is now a registered CUDA flag, read once when Kolibri-1 starts. Unset, blank and 1 keep the graphs on, which is the default. 0 runs both eager. Tokens are the same either way.
  • One change you may notice: before, any text other than 0 meant on, including false or off. Now any value other than 0 or 1 is refused by name when a CUDA server starts, as every registered setting is.
  • It is documented in docs/environment.md's CUDA table, and a registry test covers unset, blank, 0, 1 and refused values.

Checks: test-environment-host (with a planted-failure probe), the Kolibri host steps, compile-cuda-tests, gradient-serving pins, fmt and lean. Lean goes from 165 to 164, because the non-literal getenv is gone.

  • Synthena

…at a CUDA start

Kolibri-1 read it with getenv outside the registry (backend.zig's envOff): exact 0 turned the one-row step
graphs and, since #4884, the multi-row decode round graphs off, and every other text, blank, 1, "false" or
"off" included, kept them on. It is now a .cuda flag row in platform/environment.zig, read once in
Kolibri.init through the registry:
- unset, blank and 1 keep the graphs (the default, as before); 0 runs both eager (as before);
- any other text, which read as on before, is refused by name at a CUDA start, like every registered setting.
docs/environment.md documents it in the CUDA table; tokens are the same either way.

Tests: environment_kolibri_test.zig (blank and unset keep the default, 0 and 1 accepted, other text refused by
name on CUDA and ignored on Metal), and the setting in environment_test.zig's table of every row.
@ashhart
ashhart force-pushed the lead/kolibri-graphs-setting branch from fa0364a to ad11924 Compare November 25, 2026 09:58
@ashhart
ashhart merged commit a6619eb into main Nov 25, 2026
1 of 11 checks passed
@ashhart
ashhart deleted the lead/kolibri-graphs-setting branch November 25, 2026 09:58
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