Skip to content

[staging codex review] #12370 Studio: count companion assets in the Hub download size of image and video GGUFs - #124

Closed
Lyxot wants to merge 4 commits into
staging/12370-basefrom
staging/12370
Closed

Lyxot wants to merge 4 commits into
staging/12370-basefrom
staging/12370

Conversation

@Lyxot

@Lyxot Lyxot commented Oct 1, 2026

Copy link
Copy Markdown
Owner

Staging copy of unslothai#12370 for Codex review and CI. The base is the upstream PR's merge base (main at adbf205f17), so the diff is exactly the PR. The head is identical to the upstream PR head (e16b091f58). Do not merge; this is closed once Codex converges and CI finishes.

For image and video GGUFs, the Hub showed only the GGUF size. Run then also fetched the companion assets: text encoder, VAE and configs, about 19 GB for Qwen-Image-2.1.

The Hub card now asks the existing media download planner how much Run would still fetch, using default load settings and the Hub token:

  • What is counted: only companion files that are not already cached. A partially downloaded quant keeps its "X left" size.
  • Grouping: image repos make one plan per dependency_key group. Video files, which have no key, are planned individually once selected.
  • Where it shows: in the quant menu and next to Download and Run, with the model/asset breakdown on hover.
  • Plan reuse: plans are reused while the card stays open.

oobabooga and others added 2 commits September 30, 2026 16:32
…ownloads

Count only uncached companion files from the download plan's entries instead of required_bytes, which includes companions already in the cache and overstated the transfer by the full companion set (e.g. 24.3 GB shown for a 5.4 GB Run).

Plan unkeyed variants (video families, whose companions differ per checkpoint) per file when selected, instead of applying one representative's companions to every row.

Show companions on downloaded quants, including next to Run, since Run is what fetches them; partial quants keep their remaining size.

Reuse plans for the card's lifetime instead of a five-minute module cache, so returning from Run re-plans, and format the total and its breakdown with one decimal so they add up.
@Lyxot

Lyxot commented Oct 1, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-01T07:13:20.225882Z 40fb8b0 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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e16b091f58

ℹ️ 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".

…try on older backends

A plan flagged plan_failed now rejects, so the per-card plan cache drops it and a later rerun retries instead of keeping the checkpoint-only size until the card is reopened.

An older backend omits the per-entry checkpoint flag; fall back to the entry's file list, as the Images and Video pages already do, so the GGUF is not counted as a required asset.
@Lyxot

Lyxot commented Oct 1, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: bfa7faaa5b

ℹ️ 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".

@Lyxot

Lyxot commented Oct 1, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: bfa7faaa5b

ℹ️ 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".

…ckpoint flags

Entries keep a stable scoped file list, so a cached GGUF can be listed in an entry whose bytes are only same-repo companions; inferring the checkpoint from that list subtracted the whole model. Backends that predate the flag also predate checkpoint_bytes and required_bytes and cannot attribute bytes at all, so their plans add nothing.
@Lyxot

Lyxot commented Oct 1, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Hooray!

Reviewed commit: 40fb8b077d

ℹ️ 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".

@Lyxot

Lyxot commented Oct 1, 2026

Copy link
Copy Markdown
Owner Author

Codex converged and CI finished on 40fb8b0; results posted upstream in unslothai#12370.

@Lyxot Lyxot closed this Oct 1, 2026
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