Skip to content

Local engine: THP off for the V cache by default (saves ~1.2-1.4 GiB RAM), toggle in UI/widget #14

Open

Description

@n0rpan

Owner decision O-378 (2026-11-17), superseding O-368: THP off for the V cache by default, with a shared user toggle to turn it back on. Implementation owner: codex-local; merge after v0.2.1.

Scope:

  • One documented user-only boolean shared by oxa settings UI and the oxc desktop widget.
  • Default off; on offers roughly 1% faster generation at the cost of roughly 1.2–1.4 GiB additional resident RAM, based on the owner’s M3 batch. No new measurement is claimed.
  • The UI and widget write the same settings-file key and clearly state that changes apply on the next model load; no automatic restart of an active model.
  • Tests cover default-off, toggle delivery to the engine launch, shared persistence, project isolation and next-load behavior.
  • Reuse the existing engine V-cache knob; no process-wide/system THP policy change or engine logic change.
  • GitHub CI only. Hardware identity/quality qualification belongs to the owner before shipping. No installed settings/binary changes, real keys, sign-ins or laptop measurements by this lane.

Authoritative update: #14 (comment)

Activity

  1. changed the title [-]Local engine: opt-in setting to keep THP off for the V cache (saves ~1.2-1.4 GiB RAM, ~1% decode)[/-] [+]Local engine: THP off for the V cache by default (saves ~1.2-1.4 GiB RAM), toggle in UI/widget[/+] on Nov 17, 2026
  2. n0rpan commented on Nov 17, 2026

    @n0rpan
    ContributorAuthor

    Owner decision update (O-378, 2026-11-17), replaces the opt-in plan above:

    • Default: THP off for the V cache (lower RAM: about 1.2-1.4 GiB less resident memory, about 1% slower decode, per the M3 hardware batch).
    • User toggle to turn THP back on for the ~1% speed: exposed in the oxa settings UI and in the oxc desktop widget, with a one-line explanation of the trade-off ("Faster generation (~1%) at the cost of ~1.2-1.4 GiB more RAM").
    • Settings file key + docs; the widget/UI write the same key.
    • Tests: default is THP-off for the V cache; the toggle reaches the engine; changing it applies on the next model load (state that clearly in the UI if a reload is needed).
    • Verify on the laptop that identity/quality are unchanged with the new default before it ships.
  3. n0rpan commented on Nov 17, 2026

    @n0rpan
    ContributorAuthor

    st coordinator #14 owner=local-source O378=authoritative scope=shared-setting+UI-widget+next-load tests=CI hardware-identity=owner-lane merge=after0.2.1 note="Implementation proceeds under O378; release-critical work remains first per O372. No installed-machine change."

  4. n0rpan commented on Nov 17, 2026

    @n0rpan
    ContributorAuthor

    Implementation is tracked in draft oxstack/ox-llm#866 on agent/858-v-cache-thp, based on main 69a8151. Issue body now reflects O-378. Shared key: oxa.local.vCacheThp (false); widget uses oxa config v-cache-thp on|off and the existing atomic user-settings writer. The existing engine V-cache knob is reused without engine source changes. Changes affect the native local factory on next cold load, with no active-model restart. The widget’s other legacy controller actions are outside this patch. Tests-only baseline 44f34fd is executing in lane 44042736489; hardware identity/quality remains owner-only and merge remains after v0.2.1.

  5. n0rpan commented on Nov 19, 2026

    @n0rpan
    ContributorAuthor

    Triage 2026-11-19: this issue is now tracked in #27 (Cluster: Local models: add any GGUF, honest admission, no silent stub, priority P0), planned PR 4: "V-cache THP default". It will be fixed there together with its related issues, not one by one.

  6. transferred this issue fromon Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions