Skip to content

feat(models): support PyTorch and ONNX metadata badges in ModelMetadata - #1549

Open
sabhi128 wants to merge 1 commit into
OpenCSGs:mainfrom
sabhi128:feat-model-metadata-frameworks
Open

sabhi128 wants to merge 1 commit into
OpenCSGs:mainfrom
sabhi128:feat-model-metadata-frameworks

Conversation

@sabhi128

Copy link
Copy Markdown
Contributor

Summary of Changes

This PR expands ModelMetadata.vue to display model parameters and architecture badges for PyTorch and ONNX model formats, and adds comprehensive unit test coverage.

Key Enhancements:

  1. PyTorch & ONNX Support:
    • ModelMetadata.vue now renders model_params and architecture badges when framework is PyTorch or ONNX, ensuring full parity with Safetensors and GGUF.
  2. Unit Tests:
    • Added frontend/src/components/__tests__/models/ModelMetadata.spec.js covering rendering behavior across Safetensors, GGUF, PyTorch, and ONNX.

Copilot AI lite review requested due to automatic review settings September 17, 2026 13:55

Copilot AI 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.

🟡 Changes recommended

The normal model-summary flow does not map PyTorch or ONNX tags to these framework values, so the new branch is unreachable.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Adds PyTorch and ONNX metadata badges and unit tests covering supported model formats.

Changes:

  • Renders parameter and architecture badges for PyTorch and ONNX.
  • Adds tests for Safetensors, GGUF, PyTorch, and ONNX.
File summaries
File Description
frontend/src/components/models/ModelMetadata.vue Adds PyTorch/ONNX badge rendering.
frontend/src/components/__tests__/models/ModelMetadata.spec.js Adds framework rendering tests.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 1
  • Review effort level: Lite

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

Comment thread frontend/src/components/models/ModelMetadata.vue
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