Skip to content

launchers: preserve prefix retention when a revision contains the option name - #485

Open
EmilienIT wants to merge 1 commit into
syv-ai:mainfrom
EmilienIT:fix/retention-option-boundaries
Open

EmilienIT wants to merge 1 commit into
syv-ai:mainfrom
EmilienIT:fix/retention-option-boundaries

Conversation

@EmilienIT

Copy link
Copy Markdown
Contributor

A model revision can contain the literal text --prefix-cache-retention-interval. Both single-user launchers treated that substring as an explicit retention option and skipped their entire retention setup. For example, with EXTRA_ARGS=--revision=demo--prefix-cache-retention-interval and PREFIX_RETENTION=4096, the launcher omitted the retention argument. The same guard also skipped the default when the environment override was unset.

Match the normalized option at a word boundary and accept both the space and equals forms. The existing CPU suite now exercises the revision example and verifies that a real override reaches the engine exactly once, including the underscored spelling.

Validation. On upstream 3d6c954, the new reproduction failed once in each launcher. With the fix, all 76 launcher checks passed on Linux, and all 76 passed again with the CI compute-capability 8.6 stub. Applying the same two guard changes to #483 also passed 76/76; a separate argv/stderr check confirmed its dense-retention hint appears for the revision example and stays quiet for an explicit interval. These checks cover launcher arguments and diagnostics on CPU. Inference and cache-hit performance were outside the test.

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.

1 participant