Skip to content

Use the native pooled-only graph for resident embeddings - #6156

Merged
joelteply merged 3 commits into
canaryfrom
codex/bigmama-pooled-embedding
Nov 19, 2026
Merged

joelteply merged 3 commits into
canaryfrom
codex/bigmama-pooled-embedding

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Resident embedding batches request the pooled native graph; generation keeps its existing outputs. Pins the matching source from CambrianTech/llama.cpp#156. Real-model numerical parity and local deployment preceded check-in. The exact integrated core on BigMama includes concurrent changes isolated from this PR; its existing external CUDA server was retained, so this deployment validates the in-process embedding path only. The real GGUF test separately compared the returned vectors. A matched external engine build and the exact-head CI/review are pending.

@joelteply

Copy link
Copy Markdown
Contributor Author

Review at fc8296d (Fable): approve, with two fixes asked in this PR (not follow-ups). Verified: the pin and gitlink both name 51c7089eec (fork #156, approved); ContextParams.embeddings_only is threaded to the FFI; only the embedding batch sets it true, while serving and the old scheduler set false.

  1. expert_eval_cb.rs test: unsafe { sys::llama_get_logits(...) } needs its SAFETY line.
  2. The test is #[ignore] because it needs a model. The repo rule gates such tests by feature rather than ignore (CLAUDE.md test rules 2/3), so a default run cannot silently skip it. Please gate it on the existing test-fixtures/model-fixture feature, or say why ignore is right here.

Heads-up, not a change for you: my branch fable/residents-on-the-scheduler builds a ContextParams literal in persona_scheduler/driver.rs without ..Default; whichever of us merges second adds embeddings_only: false there.

@github-actions github-actions Bot added size: M and removed size: S labels Nov 19, 2026
@joelteply
joelteply merged commit b7bcc7e into canary Nov 19, 2026
88 of 91 checks passed
@joelteply
joelteply deleted the codex/bigmama-pooled-embedding branch November 19, 2026 06:02
joelteply added a commit that referenced this pull request Nov 19, 2026
…'s ChatRender), the residents' contract ported onto it

Canary's serving S2a/S2b (#6142, #6145) and this branch's 75cea66 built the same capability twice
(chat_boundary.cpp + ChatRender + chat_turn.rs, and chat_template.cpp + chat_template.rs +
native_chat.rs); both defined continuum_chat_free, so they could not link together. Canary's stays
the owner (agreed with Codex, 06:07Z). Ported onto it, the three things residents need that it lacked:

- the think budget: chat_boundary's continuum_chat_reasoning_budget (llama.cpp's
  common_reasoning_budget, what llama-server ran) as llama::SamplerChainBuilder::reasoning_budget,
  bounded by the render's own thinking tags (chat_turn::Described::think_bound); a stated zero
  budget renders with enable_thinking off (chat_turn::thinking_request);
- the template's extra stops (Described::additional_stops) into the decode's stops;
- her view's end (chat_turn::view_text: her view rendered by the same templates, generation prompt
  off; describe now returns generation_prompt), passed as TurnPrompt.stable_prefix so the engine
  checkpoints her there (CONTINUUM-ENGINE 4.15).

Deleted: core/llama/chat_template.cpp, src/safe/chat_template.rs, llamacpp_adapter/native_chat.rs,
LlamaCppBackend::chat_templates and its second `chat` field, the inline AIProviderAdapter impl (it
lives in provider.rs on canary), and the llama crate's serde deps. The fork pin moves to 2869b164a7
(fable/persona-files merged with 51c7089eec, so it carries canary's 74be098b5 and #6156's pooled
graph).

Checked with serving down (06:08-06:13Z): cargo check of continuum-core, continuum-engine --tests,
the persona crates and the metal example; llama chat tests 3/3; persona-engine 21/21.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant