Skip to content

Declare the context input again; serving does not read it - #13

Merged
Varfalamei merged 1 commit into
masterfrom
fix/declare-context-input
Sep 5, 2026
Merged

Varfalamei merged 1 commit into
masterfrom
fix/declare-context-input

Conversation

@Varfalamei

Copy link
Copy Markdown
Contributor

What

Re-declares the optional context input in serving/config.pbtxt. model.py is untouched and still does not read it.

Why

The feed API sends context whenever a SERP carries a country/region/type filter (serp_subfeeds builds it best-effort, the client attaches it when non-empty). Triton rejects a request that names an input the model config does not declare. Dropping the input together with the orchestrator on 2026-08-14 therefore turns every filtered feed request into SmartRecUnavailableError as soon as a trainer built from that tree syncs the config into S3. The prod trainer (2026.08.13) still ships the old config, so prod has not hit this yet; dev has since 2026-08-25.

Change type (CLAUDE.md §5.11)

Config/serving-file change: needs a trainer image rebuild and a retrain so the trainer syncs the new config.pbtxt. No runtime repack needed, the library code is unchanged.

Remove the input only after the API stops sending it.

The feed API sends a "context" input whenever a SERP carries a
country/region/type filter (serp_subfeeds builds it best-effort and the
client attaches it when non-empty). Triton rejects any request that names
an input the model config does not declare, so dropping the input with the
orchestrator on 2026-08-14 turned every filtered feed request into
SmartRecUnavailableError once a trainer built from that tree synced the
config. Declare it as optional again and leave model.py alone: no served
model consumes it. Remove it only after the API stops sending it.
@Varfalamei
Varfalamei merged commit c57541b into master Sep 5, 2026
3 checks passed
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