Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rest API (beta): Add model size field to models/ routes #156

Open
havenwood opened this issue Dec 26, 2024 · 0 comments
Open

Rest API (beta): Add model size field to models/ routes #156

havenwood opened this issue Dec 26, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@havenwood
Copy link

Feature request: Add a size (or byte_size) field representing model size for GET /api/v0/models and GET /api/v0/models/{model} response bodies.

Current:

{
  "id": "qwen2-vl-7b-instruct",
  "object": "model",
  "type": "vlm",
  "publisher": "mlx-community",
  "arch": "qwen2_vl",
  "compatibility_type": "mlx",
  "quantization": "4bit",
  "state": "not-loaded",
  "max_context_length": 32768
}

Feature request:

{
  "id": "qwen2-vl-7b-instruct",
  "object": "model",
  "type": "vlm",
  "publisher": "mlx-community",
  "arch": "qwen2_vl",
  "compatibility_type": "mlx",
  "quantization": "4bit",
  "state": "not-loaded",
  "max_context_length": 32768
  "size": 11596411699
}

Model size can be a fairly important factor, for a variety of reasons. It's also a common field to use for sorting models. I think the model byte size would be a nice addition to the models/ and modes/{model} GET routes.

@yagil yagil added the enhancement New feature or request label Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants