Skip to content

ui : model id grammar for sidecars, quants and capability parsing - #27946

Merged
ggerganov merged 2 commits into
allozaur/ui/types-cleanupfrom
allozaur/ui/model-id-parsing
Sep 30, 2026
Merged

ggerganov merged 2 commits into
allozaur/ui/types-cleanupfrom
allozaur/ui/model-id-parsing

Conversation

@allozaur

@allozaur allozaur commented Aug 29, 2026 •

Copy link
Copy Markdown
Contributor

Overview

Extends the shared model id parser (MODEL_ID constants) with sidecar tokens: speculative-decoding draft variants (mtp, dflash, dspark, eagle3) and auxiliary sidecars (mmproj, imatrix), including standalone -draft files. Adds the tools capability to ModelCapabilities and covers the grammar with unit tests.

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

Comment thread tools/ui/src/lib/components/app/models/ModelsSelectorOption.svelte Outdated
Comment thread tools/ui/src/lib/constants/model-id.constants.ts Outdated
Comment thread tools/ui/src/lib/enums/model.enums.ts Outdated
Comment thread tools/ui/src/lib/enums/model.enums.ts Outdated
Comment thread tools/ui/tests/unit/model-id-parser.test.ts Outdated
@allozaur allozaur changed the title ui : parse sidecar types in model ids ui : Parse sidecar types from model ids Aug 29, 2026
@allozaur
allozaur marked this pull request as ready for review August 29, 2026 12:03
@allozaur
allozaur requested a review from a team as a code owner August 29, 2026 12:03
Copilot AI lite review requested due to automatic review settings August 29, 2026 12:03

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.

Pull request overview

Warning

Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.

Adds support in llama-ui for parsing and representing model “sidecar” types (draft/auxiliary GGUFs) from model IDs, and exposes a new tool-use capability in the UI.

Changes:

  • Introduces sidecar enums/types and regexes, and extends parseModelId to detect sidecar prefixes/suffixes.
  • Adds ModelsService.buildDownloadTag() to generate <repo>:<tag> for downloads.
  • Adds ModelCapability.TOOL_USE wiring (icon/label/flag) and updates unit tests.

Reviewed changes

Copilot reviewed 7 out of 9 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
tools/ui/tests/unit/model-id-parser.test.ts Extends expectations and adds coverage for sidecar parsing behaviors.
tools/ui/src/lib/types/models.d.ts Adds tools capability flag and sidecar on parsed model IDs.
tools/ui/src/lib/services/models.service.ts Implements sidecar parsing in parseModelId and adds buildDownloadTag().
tools/ui/src/lib/enums/model.enums.ts Adds sidecar enums and a new TOOL_USE capability.
tools/ui/src/lib/enums/index.ts Re-exports new sidecar enums.
tools/ui/src/lib/constants/model-id.constants.ts Defines sidecar tokens/types and regexes for prefix/suffix detection.
tools/ui/src/lib/constants/icons.constants.ts Adds icon/label wiring for tool-use capability.
tools/ui/src/lib/components/app/models/ModelsSelectorOption.svelte Surfaces tool-use capability in the model selector option UI state.
tools/ui/src/app.d.ts Removes unused API request type imports.

💡 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/services/models.service.ts
Comment thread tools/ui/src/lib/constants/model-id.constants.ts Outdated
Comment thread tools/ui/src/lib/constants/model-id.constants.ts Outdated
Comment thread tools/ui/src/lib/constants/model-id.constants.ts
Comment thread tools/ui/src/lib/constants/model-id.constants.ts Outdated
Comment thread tools/ui/src/lib/constants/model-id.constants.ts Outdated
@allozaur
allozaur force-pushed the allozaur/ui/model-id-parsing branch from 209b7cd to bc5c3b6 Compare August 30, 2026 06:36
@allozaur
allozaur force-pushed the allozaur/ui/model-id-parsing branch 2 times, most recently from 24f5bec to f286815 Compare August 31, 2026 12:49
@allozaur
allozaur force-pushed the allozaur/ui/model-id-parsing branch from f286815 to da47401 Compare August 31, 2026 15:41
@allozaur
allozaur force-pushed the allozaur/ui/model-id-parsing branch 2 times, most recently from 1587726 to f6f9046 Compare August 31, 2026 22:50
@allozaur
allozaur force-pushed the allozaur/ui/model-id-parsing branch from f6f9046 to ad8e42f Compare September 4, 2026 18:07
@allozaur
allozaur force-pushed the allozaur/ui/model-id-parsing branch from ad8e42f to 4a2aadd Compare September 4, 2026 19:43
@allozaur allozaur changed the title ui : Parse sidecar types from model ids ui : model id grammar for sidecars, quants and capability parsing Sep 4, 2026
@allozaur
allozaur force-pushed the allozaur/ui/model-id-parsing branch from a693dd4 to e1ce806 Compare September 7, 2026 18:59
@allozaur
allozaur force-pushed the allozaur/ui/model-id-parsing branch from e1ce806 to 0809c49 Compare September 7, 2026 23:16
@allozaur
allozaur force-pushed the allozaur/ui/model-id-parsing branch from 0809c49 to 57842ce Compare September 16, 2026 11:11
@allozaur
allozaur force-pushed the allozaur/ui/model-id-parsing branch from 57842ce to 0bdbf54 Compare September 16, 2026 11:14
@allozaur
allozaur force-pushed the allozaur/ui/model-id-parsing branch from 0bdbf54 to 774b215 Compare September 28, 2026 10:15
@allozaur
allozaur force-pushed the allozaur/ui/model-id-parsing branch from 774b215 to 21851a7 Compare September 28, 2026 14:34
@allozaur
allozaur removed this pull request from stack #28420 September 28, 2026 14:39
@allozaur
allozaur added this pull request to stack #29589 September 28, 2026 14:47
@allozaur
allozaur force-pushed the allozaur/ui/model-id-parsing branch from 21851a7 to 762e339 Compare September 28, 2026 14:48
@allozaur
allozaur removed this pull request from stack #29589 September 28, 2026 15:21
@allozaur
allozaur added this pull request to stack #29592 September 28, 2026 15:22
@allozaur
allozaur removed this pull request from stack #29592 September 29, 2026 10:42
@allozaur
allozaur added this pull request to stack #29645 September 29, 2026 10:43
@allozaur
allozaur force-pushed the allozaur/ui/model-id-parsing branch from 762e339 to 8a308f4 Compare September 29, 2026 12:02
@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
allozaur removed the request for review from ggerganov September 29, 2026 15:55
Extend the shared model id parser with sidecar tokens (draft variants and
auxiliary imatrix/mmproj files), weight-file and custom-quant regexes, and add
the tools capability to ModelCapabilities; the selector option row picks it up
from the model's declared capabilities.

Assisted-by: pi:GLM-5.3-Flash
Assisted-by: pi:zai-org/GLM-5.3-Flash
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.

5 participants