Skip to content
This repository was archived by the owner on Jun 16, 2026. It is now read-only.

feat(list): filter based on model arg - #150

Merged
doringeman merged 1 commit into
docker-archive-public:mainfrom
doringeman:ls-completion
Sep 15, 2025
Merged

doringeman merged 1 commit into
docker-archive-public:mainfrom
doringeman:ls-completion

Conversation

@doringeman

Copy link
Copy Markdown
Contributor

Filter based on model argument.
The completion suggests the base model name along with its tags. If the model has multiple tags, suggest both the base model name and each tag.

$ make install

$ docker model ls ai/smollm2
ai/smollm2            ai/smollm2:135M-Q2_K  ai/smollm2:latest

$ docker model ls ai/smollm2
MODEL NAME            PARAMETERS  QUANTIZATION    ARCHITECTURE  MODEL ID      CREATED       SIZE
ai/smollm2            361.82 M    IQ2_XXS/Q4_K_M  llama         354bf30d0aa3  5 months ago  256.35 MiB
ai/smollm2:135M-Q2_K  134.52 M    Q2_K            llama         eba11bf8f361  4 months ago  82.41 MiB

$ docker model ls ai/smollm2:latest
MODEL NAME  PARAMETERS  QUANTIZATION    ARCHITECTURE  MODEL ID      CREATED       SIZE
ai/smollm2  361.82 M    IQ2_XXS/Q4_K_M  llama         354bf30d0aa3  5 months ago  256.35 MiB

$ docker model ls ai/smollm2:135M-Q2_K
MODEL NAME            PARAMETERS  QUANTIZATION  ARCHITECTURE  MODEL ID      CREATED       SIZE
ai/smollm2:135M-Q2_K  134.52 M    Q2_K          llama         eba11bf8f361  4 months ago  82.41 MiB

Signed-off-by: Dorin Geman <dorin.geman@docker.com>
@doringeman
doringeman requested a review from a team September 12, 2025 07:14
@doringeman
doringeman merged commit fd5ec6e into docker-archive-public:main Sep 15, 2025
4 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants