[PR #274] [CLOSED] feat(mtp): add --coupled-draft and --no-coupled-draft CLI options for coupled speculative sampling #2540

Closed
opened 2026-11-04 02:01:09 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/274
Author: @praveshkhatana
Created: 9/30/2026
Status: ❌ Closed

Base: main ← Head: feat/cli-coupled-drafting


📝 Commits (1)

  • 9131a07 feat(mtp): add --coupled-draft and --no-coupled-draft CLI options for coupled speculative sampling

📊 Changes

2 files changed (+18 additions, -3 deletions)

View changed files

📝 include/strata/core/coupled_draft.hpp (+11 -3)
📝 src/program/generate.cpp (+7 -0)

📄 Description

Summary

Commit 1643965 introduced coupled draft sampling for the MTP drafter under sampling, activated via the STRATA_SPEC_COUPLED=1 environment variable.

This PR adds first-class CLI options (--coupled-draft and --no-coupled-draft) to expose and control this feature directly from the command line and config files, while maintaining full backward compatibility with the STRATA_SPEC_COUPLED environment variable.

Changes

  • include/strata/core/coupled_draft.hpp:
    • Adds set_coupled_draft(bool) and coupled_draft_state() to allow programmatic and CLI configuration of coupled draft sampling.
  • src/program/generate.cpp:
    • Adds bool coupled_draft = strata::core::coupled_draft_env(); to Options (defaulting to the environment variable).
    • Adds --coupled-draft and --no-coupled-draft CLI argument parsing.
    • Updates --help text in usage().

🔄 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/274 **Author:** [@praveshkhatana](https://github.com/praveshkhatana) **Created:** 9/30/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feat/cli-coupled-drafting` --- ### 📝 Commits (1) - [`9131a07`](https://github.com/Niko1221/Strata/commit/9131a070d71465556893d252f4fda171a56e270f) feat(mtp): add --coupled-draft and --no-coupled-draft CLI options for coupled speculative sampling ### 📊 Changes **2 files changed** (+18 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `include/strata/core/coupled_draft.hpp` (+11 -3) 📝 `src/program/generate.cpp` (+7 -0) </details> ### 📄 Description ### Summary Commit 1643965 introduced coupled draft sampling for the MTP drafter under sampling, activated via the `STRATA_SPEC_COUPLED=1` environment variable. This PR adds first-class CLI options (`--coupled-draft` and `--no-coupled-draft`) to expose and control this feature directly from the command line and config files, while maintaining full backward compatibility with the `STRATA_SPEC_COUPLED` environment variable. ### Changes - **`include/strata/core/coupled_draft.hpp`**: - Adds `set_coupled_draft(bool)` and `coupled_draft_state()` to allow programmatic and CLI configuration of coupled draft sampling. - **`src/program/generate.cpp`**: - Adds `bool coupled_draft = strata::core::coupled_draft_env();` to `Options` (defaulting to the environment variable). - Adds `--coupled-draft` and `--no-coupled-draft` CLI argument parsing. - Updates `--help` text in `usage()`. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-04 02:01:09 +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#2540
No description provided.