Repository navigation
Studio: show disk space in the same GB as model sizes - #11150
Conversation
|
@codex review |
1 similar comment
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. Nice work! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
|
The unit change lines up with the decimal formatBytes already used in studio/frontend/src/features/hub/lib/format.ts, but this branch also reflows unrelated code in studio/backend/main.py, test_bootstrap_banner_password_visibility.py and tests/studio/playwright_queue_localization.py. Could you drop those reformatting hunks so the diff is only the GB change? |
…es in decimal GB Settings > Resources rendered the download folder's free space in GiB, so it disagreed with the on-device folders dialog for the same value, and the training start overlay divided download bytes by 1024 but labelled them GB. Both now use the Hub byte formatter. The disk refusal test uses a free size that differs between GB and GiB and checks the exit code.
edbc945 to
551248d
Compare
|
Pushed an update:
Memory/VRAM units and transfer rates are unchanged. |
|
@codex review |
The training start overlay paired decimal byte totals with the chat transfer formatter's rate, which divides by 1024 while labelling KB/MB/GB. It now uses the Hub formatRate so the rate matches the totals beside it.
Lyxot
left a comment
There was a problem hiding this comment.
LGTM. Disk free space, download sizes and the training download rate now use the same decimal units as the Hub model cards; memory/VRAM stays binary. Codex review came back clean on the current commits, and the remaining CI failures also fail on main.
* Studio: report disk space in decimal GB to match Hub sizes * fix(studio): show remaining disk free space and training download sizes in decimal GB Settings > Resources rendered the download folder's free space in GiB, so it disagreed with the on-device folders dialog for the same value, and the training start overlay divided download bytes by 1024 but labelled them GB. Both now use the Hub byte formatter. The disk refusal test uses a free size that differs between GB and GiB and checks the exit code. * fix(studio): show the training download rate in decimal units The training start overlay paired decimal byte totals with the chat transfer formatter's rate, which divides by 1024 while labelling KB/MB/GB. It now uses the Hub formatRate so the rate matches the totals beside it. --------- Co-authored-by: Lyxot <[email protected]>
Model cards show sizes in decimal GB, but the "not enough disk space" messages, the folders dialog and the download toast divided by 1024 and still said GB. A 1.8 GB model was refused with "need about 1.7 GB", so the numbers never matched.
All of these now use decimal GB. Memory and VRAM math is untouched.
Tested with new unit tests and on a live Studio: the folders dialog matches the real free space, and a refused download now reports the same size the card shows.