Skip to content
This repository was archived by the owner on Oct 6, 2025. It is now read-only.

Conversation

@ilopezluna
Copy link
Contributor

Depends on: docker/model-runner#99
Include total in progress message.

The model-distribution do not report the accumulated progress per layer.
For example, if a model contain 2 layers of 10 bytes each, and you have already pulled one of the layers, and you get a progress message for the next byte, the message received but model distribution will be like:
{"type":"progress","total":20,"pulled":1,"layer":{"ID":"layer-id-2","Size":10,"Current":1}}

From this message the client do not have any way to understand the real progress 11 bytes of 20 bytes.
Because of that I keep track of the progress per layer in this PR.
Ideally this should be calculated in model-distribution but I don't know how to do it without a big change set.

@ilopezluna ilopezluna requested a review from a team July 3, 2025 15:40
Copy link
Collaborator

@doringeman doringeman left a comment

Choose a reason for hiding this comment

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

LGTM! Tested and I can't reproduce the bug anymore, thanks!

@ilopezluna ilopezluna merged commit de3d010 into main Jul 11, 2025
6 checks passed
@ilopezluna ilopezluna deleted the improve-pull-progress branch July 11, 2025 12:27
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.

3 participants