Skip to content

Studio video: log an automatic text-encoder pick after the load retries its hosted encoder - #17093

Merged
danielhanchen merged 3 commits into
mainfrom
studio/video-te-auto-log-after-retry
Nov 9, 2026
Merged

danielhanchen merged 3 commits into
mainfrom
studio/video-te-auto-log-after-retry

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Problem

#16724 made the video load say so when an automatic text-encoder pick (the family's hosted fp8 encoder) cannot be fetched, instead of logging it as selected. The log line was written right after the prefetch:

video.text_encoder_quant: the automatic 'fp8' for ltx-2 is not available (hosted pre-cast encoder unreachable: ...); the dense bf16 text encoder loads

The load then tries that hosted encoder again (te_prequant_pipe_kwargs resolves the checkpoint once more), so a transient prefetch failure (a 503, a timeout) can still end with the fp8 encoder injected. In that case the resolved status correctly reads "engaged (selected automatically)", but the log said the dense bf16 encoder loads.

Change

The outcome line for an automatic pick whose prefetch failed is now written after that retry: "selected automatically" when the hosted encoder was injected, the "not available ... dense bf16" line when it was not. A pick with no prefetch failure logs as before, at the same point. The resolved status text is unchanged. Only log text moves: placement, budgets and the loaded encoder are untouched.

Tests

test_a_failed_te_prefetch_is_logged_by_the_retried_outcome[True|False] (test_video_backend.py, the existing CPU fake runtime, LTX-2 GGUF with a recorded prefetch failure): exactly one video.text_encoder_quant line, which matches what the retry injected.

arm new test
main (a174823) [True] fails: logs "is not available ... the dense bf16 text encoder loads" although the encoder was injected; [False] passes
this PR both pass

The TE-related cases in test_video_backend.py and test_video_te_auto_fallback_log.py: 75 passed.

…es its hosted encoder

A failed prefetch of the hosted pre-cast encoder was logged at once as 'the dense bf16 text encoder
loads', but the load fetches that encoder again (te_prequant_pipe_kwargs) and can get it, leaving a false
log line next to an 'engaged' status. The outcome line is now written after that retry: 'selected
automatically' when it was injected, 'not available ... dense bf16' when not.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-08T04:05:33.066019Z 3126bfb Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@danielhanchen danielhanchen self-assigned this Nov 8, 2026
[skip ci]
@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 👍

Reviewed commit: 3126bfbdf3

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@danielhanchen
danielhanchen merged commit e56e1e4 into main Nov 9, 2026
@danielhanchen
danielhanchen deleted the studio/video-te-auto-log-after-retry branch November 9, 2026 04:07
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