Skip to content

listDownloadedModels() silently drops duplicate models across devices #601

Description

@sgl33

If multiple devices connected via LM Link have the same model downloaded, client.system.listDownloadedModels() only returns a single ModelInfo object for that model with a single deviceIdentifier, silently dropping the others. This makes it impossible to determine which models are available on which devices when the same model is downloaded to multiple devices.

For example, if I have two devices (a MacBook and a Mac Studio) and have the following models downloaded:

  • MacBook: qwen/qwen2.5-coder-14b (4-bit),
  • Mac Studio: qwen/qwen2.5-coder-14b (4-bit), google/gemma-4-31b (4-bit)

I would expect something like this from listDownloadedModels():

[
    LLMInfo(modelKey='google/gemma-4-31b`, deviceIdentifier='<mac_studio_id>', quantization={ name: '4bit', bits: 4 }, ...),
    LLMInfo(modelKey='qwen/qwen2.5-coder-14b', deviceIdentifier='<macbook_id>`, quantization={ name: '4bit', bits: 4 }, ...),
    LLMInfo(modelKey='qwen/qwen2.5-coder-14b', deviceIdentifier='<mac_studio_id>`, quantization={ name: '4bit', bits: 4 }, ...)
]

But instead I just get this:

[
    LLMInfo(modelKey='google/gemma-4-31b`, deviceIdentifier='<mac_studio_id>', quantization={ name: '4bit', bits: 4 }, ...),
    LLMInfo(modelKey='qwen/qwen2.5-coder-14b', deviceIdentifier='<mac_studio_id>`, quantization={ name: '4bit', bits: 4 }, ...)
]

The MacBook's entry for qwen/qwen2.5-coder-14b is silently omitted entirely

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions