Skip to content

Feature: add auto_resubmit toggle to sambawiz bundle builder [DRAFT / on hold]#19

Draft
sethkneeland-sn wants to merge 1 commit into
sambanova:mainfrom
sethkneeland-sn:feature/auto-resubmit-toggle
Draft

Feature: add auto_resubmit toggle to sambawiz bundle builder [DRAFT / on hold]#19
sethkneeland-sn wants to merge 1 commit into
sambanova:mainfrom
sethkneeland-sn:feature/auto-resubmit-toggle

Conversation

@sethkneeland-sn

@sethkneeland-sn sethkneeland-sn commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Status: Draft / on hold

This PR adds a per-model auto_resubmit toggle to the bundle builder.

End-to-end testing showed that enabling auto_resubmit alone does not resolve the output-length truncation it was meant to address for models whose experts are hosted by a single multi-expert PEF (the common case for current CoE models):

  • In that configuration the resubmit chain is not ordered as expected, so the flag does not take effect the way intended.
  • Continuation past an expert's sequence boundary also depends on how the request's length limit is handled on the serving side, which is being addressed separately.

Because of that, this change is on hold until the serving-side fixes land. When we revisit it, the toggle will likely be reworked — for example defaulting to off / opt-in with guardrails, and re-scoped as an authoring convenience rather than a fix for the truncation itself.

Keeping the branch open as a draft so the work isn't lost.


Original change (for reference)

  • Per-model auto_resubmit toggle in the bundle builder (currently default on — to be reconsidered).
  • Serialized to the generated bundle template at the model level.
  • Tooltip describing the latency / load trade-off.
  • Parse/persist round-trip so the setting survives load → edit → save.
  • Unit tests for the generator.

🤖 Generated with Claude Code

@sethkneeland-sn

sethkneeland-sn commented Jul 2, 2026

Copy link
Copy Markdown
Contributor Author

cc @snova-varunkrishna @ojha1008 — sambawiz maintainers, tagging for review. This adds the per-model auto_resubmit toggle (default on) to the bundle builder so long generations can continue past the lowest-SS expert's sequence-length boundary instead of stopping. Couldn't add you as formal reviewers since this is from a fork — please review when you have a chance.

Long generations that exceed the sequence length of the lowest-SS expert
serving them stop at that boundary unless a larger-SS expert is wired via
resubmit_to. fast-coe's BundleTemplate already supports a per-model
`auto_resubmit` flag that auto-wires each expert's resubmit_to to the
next-larger-SS expert; this surfaces it in sambawiz so authored bundles get
it by default.

- Per-model toggle in BundleForm (default ON), with a tooltip describing the
  latency/queue-load trade-off.
- Serialize to BundleTemplate spec.models.<model>.auto_resubmit. Emitted for
  generative models when enabled; omitted for embedding models. Not gated on
  visible expert count, since DYT-style PEFs contain experts that do not
  surface in the PEF output, so a seemingly single-expert model may still
  have a ladder to climb (harmless no-op in fast-coe otherwise).
- Parse auto_resubmit back out of loaded bundles (absent => off) so
  load/edit/save round-trips preserve intent; persist it in builder state.
- Unit tests for the generator.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@sethkneeland-sn sethkneeland-sn force-pushed the feature/auto-resubmit-toggle branch from 5396d06 to 6b292aa Compare July 2, 2026 20:07
@sethkneeland-sn sethkneeland-sn changed the title Feature: add auto_resubmit toggle to sambawiz bundle builder [CUSTEI-1417] Feature: add auto_resubmit toggle to sambawiz bundle builder Jul 2, 2026
@sethkneeland-sn sethkneeland-sn marked this pull request as draft July 2, 2026 22:54
@sethkneeland-sn sethkneeland-sn changed the title Feature: add auto_resubmit toggle to sambawiz bundle builder Feature: add auto_resubmit toggle to sambawiz bundle builder [DRAFT / on hold] Jul 2, 2026
@snova-varunkrishna

Copy link
Copy Markdown
Collaborator

@kaichan1201 , do we need to do anything for resubmit explicitly or is it handled automatically in the backend?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants