Skip to content

Add docker model prune #66

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

Closed
wants to merge 4 commits into from
Closed

Add docker model prune #66

wants to merge 4 commits into from

Conversation

doringeman
Copy link
Collaborator

On top of #65.

You can launch docker/model-runner#47 using make docker-run.

$ MODEL_RUNNER_HOST=http://localhost:8080 docker model pull ghcr.io/ilopezluna/smollm2
$ MODEL_RUNNER_HOST=http://localhost:8080 docker model ls
MODEL NAME                  PARAMETERS  QUANTIZATION  ARCHITECTURE  MODEL ID      CREATED      SIZE
ghcr.io/ilopezluna/smollm2  134.52 M    Q2_K          llama         425de603d029  6 weeks ago  82.41 MiB
$ MODEL_RUNNER_HOST=http://localhost:8080 docker model prune
WARNING! This will remove the entire models directory.
Are you sure you want to continue? [y/N] y
$ MODEL_RUNNER_HOST=http://localhost:8080 docker model ls
MODEL NAME  PARAMETERS  QUANTIZATION  ARCHITECTURE  MODEL ID  CREATED  SIZE

Signed-off-by: Dorin Geman <dorin.geman@docker.com>
Signed-off-by: Dorin Geman <dorin.geman@docker.com>
Signed-off-by: Dorin Geman <dorin.geman@docker.com>
Signed-off-by: Dorin Geman <dorin.geman@docker.com>
@crazy-max
Copy link
Member

Same as #63 (comment)

@kiview
Copy link
Member

kiview commented May 23, 2025

Closing, as we decided there is no semantically clear prune behavior given the slight ephemeral nature of models.
In the future, we likely want to consider a purge command instead.

@kiview kiview closed this May 23, 2025
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.

3 participants