Skip to content

Auto-pull DMR models#602

Merged
dgageot merged 1 commit intodocker:mainfrom
dgageot:auto-pull-dmr
Oct 29, 2025
Merged

Auto-pull DMR models#602
dgageot merged 1 commit intodocker:mainfrom
dgageot:auto-pull-dmr

Conversation

@dgageot
Copy link
Copy Markdown
Member

@dgageot dgageot commented Oct 24, 2025

No description provided.

}

func modelExists(ctx context.Context, model string) bool {
cmd := exec.CommandContext(ctx, "docker", "model", "inspect", model)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no api for this?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't want to go that route... But I might have because it also needs to detect if the platform supports DMR at all.

@dgageot
Copy link
Copy Markdown
Member Author

dgageot commented Oct 29, 2025

@krissetto do you know what's the cleanest way to detect that DMR is not supported and therefore not trigger the auto-pull?

Signed-off-by: David Gageot <david.gageot@docker.com>
@dgageot dgageot marked this pull request as ready for review October 29, 2025 11:52
@dgageot dgageot requested a review from a team as a code owner October 29, 2025 11:52
@dgageot dgageot merged commit c82363a into docker:main Oct 29, 2025
5 checks passed
@dgageot dgageot deleted the auto-pull-dmr branch February 27, 2026 19:37
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