Skip to content

ui : shared model display primitives - #29644

Merged
ggerganov merged 4 commits into
allozaur/ui/download-pipelinefrom
allozaur/ui/shared-model-display
Sep 30, 2026
Merged

ggerganov merged 4 commits into
allozaur/ui/download-pipelinefrom
allozaur/ui/shared-model-display

Conversation

@allozaur

Copy link
Copy Markdown
Contributor

Overview

Extracts shared model display primitives: ModelCapabilityIcons (canonical Tools, Reasoning, Vision, Video, Audio order) out of ModelId, DialogConfirmDownload for destructive download actions (one instance per surface, driven by DownloadConfirmAction), the discover org avatar with dark-mode inversion, and the thin download progress bar. ModelId now takes thinking/tool-use support directly.

Requirements

  • I have read and agree with the contributing guidelines
  • AI usage disclosure: YES, pi:zai-org/GLM-5.3 + llama-ui:unsloth/Qwen3.8-Flash-Next

@allozaur
allozaur requested a review from a team as a code owner September 29, 2026 10:41
Copilot AI balanced review requested due to automatic review settings September 29, 2026 10:41
@allozaur
allozaur added this pull request to stack #29645 September 29, 2026 10:43

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

Several display bugs remain, and multiple advertised shared primitives are not integrated into any surface.

Review effort: Balanced
Findings: 7 Medium severity · 1 Low severity

Open (8)
What changed in this PR

Extracts reusable UI primitives for model metadata, capabilities, avatars, download progress, and destructive download actions.

Changes:

  • Expands ModelId metadata and capability rendering.
  • Adds shared discover/download components and confirmation types.
  • Adjusts parameter formatting and action tooltip behavior.
File Description
formatters.ts Changes billion-count formatting.
model.enums.ts Adds confirmation actions.
enums/​index.ts Exports the new enum.
ui.constants.ts Adds avatar inversion configuration.
ModelsSelectorOption.svelte Passes explicit capability flags.
ModelId.svelte Expands shared model display.
ModelCapabilityIcons.svelte Adds capability icon cluster.
models/​index.ts Exports capability icons.
ModelsDiscoverAvatar.svelte Adds organization avatars.
DownloadProgressBar.svelte Adds download progress display.
dialogs/​index.ts Exports download confirmation.
DialogConfirmDownload.svelte Adds destructive confirmation copy.
ActionIcon.svelte Supports native-title tooltips.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread tools/ui/src/lib/utils/formatters.ts Resolved
@allozaur
allozaur force-pushed the allozaur/ui/shared-model-display branch from 9731a96 to 001da5f Compare September 29, 2026 12:02

@ServeurpersoCom ServeurpersoCom left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, these are primitives for the upcoming models manager and they don't change master's existing behavior

@allozaur allozaur added the merge ready A maintainer can use this label to indicate that they consider the changes final and ready to merge. label Sep 29, 2026
@allozaur

Copy link
Copy Markdown
Contributor Author

@ngxson please take a look and if all lgty let's merge this so that we can proceed with the further PRs basing on this

@ngxson ngxson left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

sorry I don't have time to test this yet, but I think it's OK to merge since it's front-end only, fixes can be pushed later if needed

@ServeurpersoCom

Copy link
Copy Markdown
Contributor

I re-ran six approvals to let @allozaur test a specific part of the GitHub interface.

@ServeurpersoCom

Copy link
Copy Markdown
Contributor

I get the same github message

1 2

@allozaur

Copy link
Copy Markdown
Contributor Author

I get the same github message

for crying out loud...

@ServeurpersoCom

Copy link
Copy Markdown
Contributor

Shall we try out the god power of @CISC ?

@ServeurpersoCom

Copy link
Copy Markdown
Contributor

We might have to rebase everything

Extract ModelCapabilityIcons (canonical Tools/Reasoning/Vision/Video/Audio
order) out of ModelId and reuse it there, add the shared DialogConfirmDownload
for destructive download actions, the discover org avatar with dark-mode
inversion and the thin download progress bar, and rework ModelId badges to take
thinking/tool-use support directly.

Assisted-by: pi:GLM-5.3-Flash
Assisted-by: pi:llama.cpp/DeepSeek-V4.1-Flash
Assisted-by: pi:llama.cpp/DeepSeek-V4.1-Flash
hasBadges now counts draft sidecar badges, so a sidecar-only model still
renders. Billions keep one decimal for hub counts and stay bare for whole
values. Avatar failures track the org instead of the instance, and the
download progress bar no longer pulses while determinate.

Assisted-by: pi:zai-org/GLM-5.3-Flash
@ServeurpersoCom
ServeurpersoCom force-pushed the allozaur/ui/shared-model-display branch from 72647bb to a4151ed Compare September 30, 2026 10:07
@ServeurpersoCom

ServeurpersoCom commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Here is what I did (manually, I never give write access to my agents):
It's not a big deal, If we run into too much trouble, it’ll be easy to put everything back into a single branch:)

# git fetch upstream
remote: Enumerating objects: 268, done.
remote: Counting objects: 100% (268/268), done.
remote: Compressing objects: 100% (89/89), done.
remote: Total 189 (delta 166), reused 122 (delta 100), pack-reused 0 (from 0)
Réception d'objets: 100% (189/189), 47.40 Kio | 1.32 Mio/s, fait.
Résolution des deltas: 100% (166/166), complété avec 76 objets locaux.
Depuis github.com:ggml-org/llama.cpp
 + c9afd59dae...2297880df3 0cc4m/fp8-scaled-mm  -> upstream/0cc4m/fp8-scaled-mm  (mise à jour forcée)
 + 060faf6825...340a287da0 osimons/ocp_fp8      -> upstream/osimons/ocp_fp8  (mise à jour forcée)
 + d4b30c456e...ac9720e7fe osimons/ocp_fp8_cuda -> upstream/osimons/ocp_fp8_cuda  (mise à jour forcée)
 + e8b60ddac5...b99e4ce01a osimons/ocp_fp8_kv   -> upstream/osimons/ocp_fp8_kv  (mise à jour forcée)


# git checkout master
Basculement sur la branche 'master'
Votre branche est à jour avec 'origin/master'.


# for b in types-cleanup model-id-parsing hf-data-layer model-compatibility download-pipeline shared-model-display; do git branch -f allozaur/ui/$b upstream/allozaur/ui/$b; done
la branche 'allozaur/ui/types-cleanup' est paramétrée pour suivre 'upstream/allozaur/ui/types-cleanup'.
la branche 'allozaur/ui/model-id-parsing' est paramétrée pour suivre 'upstream/allozaur/ui/model-id-parsing'.
la branche 'allozaur/ui/hf-data-layer' est paramétrée pour suivre 'upstream/allozaur/ui/hf-data-layer'.
la branche 'allozaur/ui/model-compatibility' est paramétrée pour suivre 'upstream/allozaur/ui/model-compatibility'.
la branche 'allozaur/ui/download-pipeline' est paramétrée pour suivre 'upstream/allozaur/ui/download-pipeline'.
la branche 'allozaur/ui/shared-model-display' est paramétrée pour suivre 'upstream/allozaur/ui/shared-model-display'.


# git checkout allozaur/ui/shared-model-display
Basculement sur la branche 'allozaur/ui/shared-model-display'
Votre branche est à jour avec 'upstream/allozaur/ui/shared-model-display'.


# git rebase --update-refs upstream/master
Rebasage et mise à jour de refs/heads/allozaur/ui/shared-model-display avec succès.
Les références suivantes ont été mises à jour avec --update-refs :
        refs/heads/allozaur/ui/download-pipeline
        refs/heads/allozaur/ui/hf-data-layer
        refs/heads/allozaur/ui/model-compatibility
        refs/heads/allozaur/ui/model-id-parsing
        refs/heads/allozaur/ui/types-cleanup


# for b in types-cleanup model-id-parsing hf-data-layer model-compatibility download-pipeline shared-model-display; do echo "$b $(git rev-list --count upstream/master..allozaur/ui/$b)"; done
types-cleanup 3
model-id-parsing 5
hf-data-layer 9
model-compatibility 11
download-pipeline 13
shared-model-display 17


# git push --atomic --force-with-lease upstream allozaur/ui/types-cleanup allozaur/ui/model-id-parsing allozaur/ui/hf-data-layer allozaur/ui/model-compatibility allozaur/ui/download-pipeline allozaur/ui/shared-model-display
Énumération des objets: 313, fait.
Décompte des objets: 100% (313/313), fait.
Compression par delta en utilisant jusqu'à 32 fils d'exécution
Compression des objets: 100% (114/114), fait.
Écriture des objets: 100% (263/263), 67.73 Kio | 33.87 Mio/s, fait.
Total 263 (delta 207), réutilisés 186 (delta 149), réutilisés du paquet 0 (depuis 0)
remote: Resolving deltas: 100% (207/207), completed with 43 local objects.
To github.com:ggml-org/llama.cpp
 + ed1f36d97f...965d9e68ea allozaur/ui/download-pipeline -> allozaur/ui/download-pipeline (forced update)
 + 30fea78470...8cd7dab701 allozaur/ui/hf-data-layer -> allozaur/ui/hf-data-layer (forced update)
 + dec06a8395...a61c296cd9 allozaur/ui/model-compatibility -> allozaur/ui/model-compatibility (forced update)
 + 240a6d753c...383408a360 allozaur/ui/model-id-parsing -> allozaur/ui/model-id-parsing (forced update)
 + 72647bb898...a4151ed96a allozaur/ui/shared-model-display -> allozaur/ui/shared-model-display (forced update)
 + ec65f32c7b...856b1f749d allozaur/ui/types-cleanup -> allozaur/ui/types-cleanup (forced update)

@CISC

CISC commented Sep 30, 2026

Copy link
Copy Markdown
Member

Shall we try out the god power of @CISC ?

My powers were tried and found wanting. 💀

@ggerganov
ggerganov merged commit 4a096b8 into master Sep 30, 2026
7 of 12 checks passed
edwardyoon pushed a commit to edwardyoon/focus-llama that referenced this pull request Oct 7, 2026
* ui : shared model display primitives

Extract ModelCapabilityIcons (canonical Tools/Reasoning/Vision/Video/Audio
order) out of ModelId and reuse it there, add the shared DialogConfirmDownload
for destructive download actions, the discover org avatar with dark-mode
inversion and the thin download progress bar, and rework ModelId badges to take
thinking/tool-use support directly.

Assisted-by: pi:GLM-5.3-Flash

* ui : remember hub avatars that failed to load

Assisted-by: pi:llama.cpp/DeepSeek-V4.1-Flash

* ui : render shared model row hints as native titles

Assisted-by: pi:llama.cpp/DeepSeek-V4.1-Flash

* ui : fix badge guard for draft sidecars, keep parameter precision

hasBadges now counts draft sidecar badges, so a sidecar-only model still
renders. Billions keep one decimal for hub counts and stay bare for whole
values. Avatar failures track the org instead of the instance, and the
download progress bar no longer pulses while determinate.

Assisted-by: pi:zai-org/GLM-5.3-Flash
(cherry picked from commit 4a096b8)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge ready A maintainer can use this label to indicate that they consider the changes final and ready to merge. server/ui

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants