Skip to content

Defining model aliases #98

Closed
Closed

Description

@dnnspaul

Hey!

Been using your software for some days now and am very happy. It's very thoughtful in many aspects and every time I think "ah, that won't work, it would need to be implemented" and then I'm checking your docs and realize "oh, it's there. Nice!". So thanks for your work.

My current setup is mixing multiple machines (macOS, Windows and Linux) and therefore I'm mixing multiple backend solutions like llamacpp, ollama and lmstudio - depending on compatibility (Strix Halo is quite picky) and performance (macOS loves MLX and I'm using LMStudio instead of ollama, because there are native MLX model files). The problem I have with this setup is, that the model names - eventhough it's basically the same model - are quite different. llamacpp likes to use the file of the model, ollama likes to separate the parameter-size by a : (e.g. gpt-oss:120b) and lmstudio seems to always uses dashes (gpt-oss-120b).

It would be a very nice feature, if I can define model name aliases in the olla config.

Like

model_alias:
  only_alias: true
  models:
    gpt-oss-120b:
      - gpt-oss:120b
      - gpt-oss-120b
      - ggml-org_gpt-oss-120b-GGUF_gpt-oss-120b-mxfp4-00001-of-00003.gguf

so that when I send a /v1/chat/completions request with gpt-oss-120b model, every node with one of the defined models can be used (depending on priority etc.). In addition, the only_alias: true setting could keep things clean in /v1/models and show only model aliases instead of every model that can be found on any device.

Tell me what you think :)

Activity

  1. self-assigned this
    on Feb 9, 2026
  2. added
    enhancement
    on Feb 9, 2026
  3. thushan commented on Feb 9, 2026

    @thushan
    Owner

    Hello!

    Firstly, I've been on a small break so apologies for delays - back on deck on tomorrow. Thanks for your feedback and it's great to hear your usage patterns and challenges.

    This can be quite a tricky problem to solve and the cleanest was indeed to use the alias technique. This seems like a great idea and thanks for opening up a PR. Will review shortly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions