Skip to content

Studio: keep Auto context small on CPU-only machines low on free RAM - #19142

Merged
danielhanchen merged 3 commits into
unslothai:mainfrom
NilayYadav:cpu-auto-context-low-ram
Nov 24, 2026
Merged

danielhanchen merged 3 commits into
unslothai:mainfrom
NilayYadav:cpu-auto-context-low-ram

Conversation

@NilayYadav

@NilayYadav NilayYadav commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

On a machine with no GPU, Auto context got bigger as free RAM got smaller. When free RAM was below the model size, it jumped to 65,536 tokens, llama-server ran out of memory, and the model failed to load. Auto now uses 8,192 in that case, the same floor it already uses when RAM is tight. GPU machines, machines with plenty of RAM, and a manually set context are unchanged. With 3.2 GB free, Qwen3-1.7B was killed for running out of memory at 40,960 tokens on main, and loads at 8,192 with this change.

Before After

@NilayYadav NilayYadav self-assigned this Nov 23, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-24T12:17:31.415061Z 0ab5d9a Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Delightful!

Reviewed commit: 81c749326b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Swish!

Reviewed commit: 07dc61cc86

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@danielhanchen

Copy link
Copy Markdown
Member

@codex review

1 similar comment
@danielhanchen

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Swish!

Reviewed commit: 0ab5d9adf5

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@danielhanchen
danielhanchen merged commit 15a6477 into unslothai:main Nov 24, 2026
7 of 53 checks passed
Hubert9204 pushed a commit to Hubert9204/Ganjalf-Studio that referenced this pull request Nov 24, 2026
…-11-23..25)

Merge of unslothai/unsloth main 2e1afd5..bd1ddf2. No textual conflicts; audited for
Ganjalf invariants (Claude API alignment, thinking budget, Qwen thinking presence 0,
check_page, guards, plugins/hooks/run_agent stop, branding via messages.ts, Ganjalf updater):
all intact.

Taken: llama.cpp/GGUF fixes (thinking budget counted with the real template unslothai#19143, native
prompt count in context fit unslothai#19159, host RAM growth priced before pinning unslothai#19231, second quant
of a loaded repo unslothai#19169, small Auto context on low-RAM CPU hosts unslothai#19142), security and
stability hardening (media bytes checked, remote-code gate, sandbox cache, managed accounts,
IPv6 loopback listeners), chat fixes (Files menu, deleted turns from other tabs, composer,
tool approvals tied to their tool), MCP, chat templates (phi-3, mistral), training/core
kernels, installer AMD/ROCm mixed hosts, Tauri security bumps, unsloth-zoo>=2026.11.11.
Branding stays Ganjalf (upstream strings are rebranded at runtime by i18n/messages.ts).

Ganjalf follow-up: the thread sampling simulation oracle expects presence 0 for Qwen
3.5/3.6 with thinking (non-thinking 1.5), as the chat table does since 369d05c.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01EVYBhJeMQGvLT6Ka4nMMUE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants