[PR #3334] [CLOSED] [Docs] Explain cache settings for long-context batch handoffs #4571

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

📋 Pull Request Information

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

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


📝 Commits (1)

  • c75146d 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.

Continues #3035 after the v0.2.1.4 tracker reset. The original passed the new format check, but GitHub refused to reopen the rebased branch; the reset bot explicitly suggested a new linked pull request.

None required for this documentation clarification. This updates the original PR after the v0.2.1.4 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 9de04cd44e927a9a3df6bbc0e94fc1be8b844ba4 (v0.2.1.4), candidate c75146d73e6cf07c1b1180174a9863670029465b. 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 9de04cd44e927a9a3df6bbc0e94fc1be8b844ba4...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/3334 **Author:** [@oscarlius](https://github.com/oscarlius) **Created:** 10/20/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `docs/long-context-batch-cache-20261018` --- ### 📝 Commits (1) - [`c75146d`](https://github.com/Niko1221/Strata/commit/c75146d73e6cf07c1b1180174a9863670029465b) 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 Continues #3035 after the v0.2.1.4 tracker reset. The original passed the new format check, but GitHub refused to reopen the rebased branch; [the reset bot](https://github.com/Niko1221/Strata/pull/3035#issuecomment-6282591198) explicitly suggested a new linked pull request. None required for this documentation clarification. This updates the original PR after the v0.2.1.4 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 `9de04cd44e927a9a3df6bbc0e94fc1be8b844ba4` (v0.2.1.4), candidate `c75146d73e6cf07c1b1180174a9863670029465b`. 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 9de04cd44e927a9a3df6bbc0e94fc1be8b844ba4...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:37: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#4571
No description provided.