[PR #3035] [CLOSED] [Docs] Explain cache settings for long-context batch handoffs #4414

Closed
opened 2026-11-07 15:35:32 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/3035
Author: @oscarlius
Created: 10/18/2026
Status: ❌ Closed

Base: main ← Head: docs/long-context-batch-cache-20261018


📝 Commits (1)

  • e66d192 docs: explain prompt-cache state for long-context batch handoffs

📊 Changes

1 file changed (+34 additions, -0 deletions)

View changed files

📝 docs/BATCHING.md (+34 -0)

📄 Description

Problem and result

The batching guide still omits the cache settings needed to reuse a solo request's live prefix when it moves into a batch slot. Add a minimal handoff configuration, separate its memory cost from parked-conversation budgets, and explain why in-flight requests do not establish concurrent cold-prompt prefill.

None required for this documentation clarification. This updates the original PR after the 0.2.0-beta tracker reset.

Approach

Only docs/BATCHING.md changes. Document --prompt-cache 1 --prompt-cache-every 0 --prompt-cache-root 0; keep an existing conversation-parking budget when already enabled. Explain observed slot/status checks without claiming all configured slots remain resident.

Validation

Passed:

  • Rebased on upstream main e88ee39d1d6be6e3364183af3b39b62a7ed6f211 (0.2.0-beta), candidate 91e5a5d5b6e52c5b4951655ab7f66f2627de6ec7. Windows, Python 3.12.7.
  • Confirmed this guidance is absent from the base document and appears once in the candidate.
  • Parsed the example argument fragment as JSON after removing its explicit ellipsis placeholder; all four flags exist in the current native argument parser.
  • Checked the current o.prompt_cache > 0 live-prefix reuse gate and per-slot cached-state gates in src/program/generate.cpp; the prose matches them.
  • Checked new-section relative links and git diff --check e88ee39d1d6be6e3364183af3b39b62a7ed6f211...HEAD; only docs/BATCHING.md differs.

Failed:

  • None observed in these documentation checks.

Not run:

  • A new native handoff generation, model/GPU test or backend build. No runtime source or default changes, and no speedup is claimed.

Limits

This is documentation and source-consistency validation, not measured handoff or hardware-capacity evidence.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/3035 **Author:** [@oscarlius](https://github.com/oscarlius) **Created:** 10/18/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `docs/long-context-batch-cache-20261018` --- ### 📝 Commits (1) - [`e66d192`](https://github.com/Niko1221/Strata/commit/e66d1929935aa3280e342a287195793c198c1840) docs: explain prompt-cache state for long-context batch handoffs ### 📊 Changes **1 file changed** (+34 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `docs/BATCHING.md` (+34 -0) </details> ### 📄 Description ## Problem and result The batching guide still omits the cache settings needed to reuse a solo request's live prefix when it moves into a batch slot. Add a minimal handoff configuration, separate its memory cost from parked-conversation budgets, and explain why in-flight requests do not establish concurrent cold-prompt prefill. ## Related discussion None required for this documentation clarification. This updates the original PR after the 0.2.0-beta tracker reset. ## Approach Only `docs/BATCHING.md` changes. Document `--prompt-cache 1 --prompt-cache-every 0 --prompt-cache-root 0`; keep an existing conversation-parking budget when already enabled. Explain observed slot/status checks without claiming all configured slots remain resident. ## Validation **Passed:** - Rebased on upstream main `e88ee39d1d6be6e3364183af3b39b62a7ed6f211` (0.2.0-beta), candidate `91e5a5d5b6e52c5b4951655ab7f66f2627de6ec7`. Windows, Python 3.12.7. - Confirmed this guidance is absent from the base document and appears once in the candidate. - Parsed the example argument fragment as JSON after removing its explicit ellipsis placeholder; all four flags exist in the current native argument parser. - Checked the current `o.prompt_cache > 0` live-prefix reuse gate and per-slot cached-state gates in `src/program/generate.cpp`; the prose matches them. - Checked new-section relative links and `git diff --check e88ee39d1d6be6e3364183af3b39b62a7ed6f211...HEAD`; only `docs/BATCHING.md` differs. **Failed:** - None observed in these documentation checks. **Not run:** - A new native handoff generation, model/GPU test or backend build. No runtime source or default changes, and no speedup is claimed. ## Limits This is documentation and source-consistency validation, not measured handoff or hardware-capacity evidence. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 15:35:32 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#4414
No description provided.