Skip to content

Add /models/prune #47

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Add /models/prune #47

wants to merge 4 commits into from

Conversation

doringeman
Copy link
Contributor

On top of #46.

E.g.,

$ 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>
Uses docker/model-distribution#78.

Signed-off-by: Dorin Geman <dorin.geman@docker.com>
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.

2 participants