Skip to content

Unsloth Studio: list Cosmos3-Nano in the Video picker and route it from the Hub - #16743

Merged
danielhanchen merged 10 commits into
unslothai:mainfrom
LeoBorcherding:cosmos3-nano-video-picker
Nov 10, 2026
Merged

danielhanchen merged 10 commits into
unslothai:mainfrom
LeoBorcherding:cosmos3-nano-video-picker

Conversation

@LeoBorcherding

@LeoBorcherding LeoBorcherding commented Nov 5, 2026 •

Copy link
Copy Markdown
Collaborator

What

Lists nvidia/Cosmos3-Nano in the Unsloth Studio Video page model picker next to Cosmos3-Edge, and makes the Model hub treat it as a Video page model instead of marking it "May not be supported".

Why

The backend fully supports Nano (#14554), but the picker and Hub only listed Edge, so the only way to load Nano was typing its repo id. Nano is the larger, higher-quality model and the only one with 720p.

#14554 left Nano out on purpose: the installer didn't yet pin a diffusers that loads it (it does now, 0.42.1), and Nano's checkpoint turns on NVIDIA's guardrail, which Unsloth Studio doesn't install. So the row says what Nano needs:

  • a needs cosmos-guardrail chip on the row itself. The Video picker never draws a catalog description (its hover only shows the name and Hub link), so a description alone would have been invisible;
  • it's sized from its 32 GB of resident bf16 weights (backend bf16_components_gb 30.4 + 1.4, the same rule as Edge's 9 GB), so it's greyed out on hosts that can't hold it, with the reason on hover. That's the weights, not the render peak: on a 96 GB RTX PRO 6000 at 590119de67, Nano peaked at 38.5 GB (832x480, 189 frames) and 49.7 GB (1280x720, 189 frames);
  • picking it without the guardrail is refused before anything downloads, with the install and opt-out steps.

No backend change.

Before / after

Colab, Unsloth Studio at main 4ee2f916ca vs this branch f199960fd5, searching "cosmos3" in the Video picker with the pointer on the Nano row.

96 GB RTX PRO 6000 (Nano fits):

Video picker, 96 GB, light
Video picker, 96 GB, dark

Tesla T4, 15 GB (Nano greyed, hover says why):

Video picker, T4, light
Video picker, T4, dark

Model hub, nvidia/Cosmos3-Nano:

Hub, light
Hub, dark

Picking Nano with no cosmos-guardrail installed (before: Nano isn't in the list):

Nano pick refusal

Memory and speed

Cosmos3-Nano peak VRAM and generate time on RTX PRO 6000, A100 40 GB and L4

What Nano actually uses, measured at 590119de67 (main; this PR doesn't touch the backend) on Colab. The picker's 32 GB is the resident weights. Without offload a render peaks at 36.0 to 62.4 GiB on the 96 GB card, depending on size and length. On a 24 GB L4, Unsloth Studio streamed the transformer and quantized it to int8, and Nano fit in 8.3 to 17.7 GiB at about 6 to 7 times the time. Each bar is drawn against its card's capacity.

Not run: Nano on a T4, A100 80 GB and H100 (one A100 40 GB row only).

Status

Head 32b7696ab9. Codex review is clean at 32b7696ab9 (fork mirror). 32b7696 only rewords two comments in model-catalog.ts: at f199960fd5 they said "Unsloth Studio", which tests/studio/test_tauri_branding_contract.py bans from frontend source (Unsloth Desktop displays itself as "Unsloth"); the fork mirror's CI caught it. New frontend tests: the chip test fails on 7cb1614043 and passes here; full frontend suite (14929 pass, 1 skipped), typecheck, catalog check and the branding contract pass. Screenshots were taken at f199960fd5; the comment-only change doesn't affect them.

Not run: a Nano render (the backend path is unchanged); a 48 GB card, where Nano shows as fitting and 480p fits its measured peak but 720p at 189 frames (49.7 GB) may not; Nano with the guardrail installed, whose load currently stops on NVIDIA's gated guardrail repo, which #16742 addresses.

Noticed, not changed

  • The Hub's "Likely fits · ~15.6 GB" chip is the generic 4-bit LLM estimate shown for every non-GGUF model, so it disagrees with the picker's 32 GB for any video model (Edge on main too).
  • A greyed row can still be clicked, and Nano then answers with the guardrail refusal rather than a fit warning.
  • The refusal toast (backend text) says bare "Studio" twice and quotes model_index.json internals.

Before / after (maintainer check)

Video page model picker searching "cosmos3", merge base vs this branch, two isolated Studio installs on a CPU-only host (picker listing only, no model loaded). After lists Cosmos3 Nano with its needs cosmos-guardrail chip beside Edge.

Video picker before and after

…om the Hub

The Video page picker and the Hub routing listed nvidia/Cosmos3-Edge only. Nano was
left out because its checkpoint turns NVIDIA's Cosmos guardrail on and Unsloth Studio
does not install the cosmos-guardrail package, so users could reach Nano only by
typing the repo id.

Nano gets its own picker row beside Edge, sized 32 GB from the bf16 weights the
backend keeps resident (30.4 transformer + 1.4 VAE), and its description says it
needs cosmos-guardrail. The backend already refuses a load without the package with
a message naming the install and the opt-out. The Hub now marks nvidia/Cosmos3-Nano
as a Video page model instead of "Library: diffusers" unsupported.
@LeoBorcherding
LeoBorcherding marked this pull request as ready for review November 5, 2026 20:41
…o picker row

The Video picker never draws a catalog description, so the guardrail note was only searchable.
@LeoBorcherding

LeoBorcherding commented Nov 6, 2026 •

Copy link
Copy Markdown
Collaborator Author

Codex is clean at this head (32b7696) on the fork mirror: LeoBorcherding#772

LeoBorcherding added a commit to LeoBorcherding/unsloth that referenced this pull request Nov 6, 2026
@danielhanchen danielhanchen self-assigned this Nov 7, 2026
@danielhanchen

Copy link
Copy Markdown
Member

@codex review

1 similar comment
@danielhanchen

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 7, 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-10T10:09:25.646458Z 1176386 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

Copy link
Copy Markdown

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

Reviewed commit: a472d26624

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

Copy link
Copy Markdown
Member

@codex review

1 similar comment
@danielhanchen

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

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

Reviewed commit: c7ea2c48a9

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

Copy link
Copy Markdown
Member

@codex review

1 similar comment
@danielhanchen

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. More of your lovely PRs please.

Reviewed commit: e5977c0c87

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

# Conflicts:
#	studio/frontend/tests/unsloth-support-cosmos3.test.ts
@danielhanchen

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

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

Reviewed commit: 1176386100

ℹ️ 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 8059310 into unslothai:main Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants