Skip to content

[Enhancement]: Improve model pull progress display with a progress bar instead of logs #3280

@nimdrak

Description

@nimdrak

Proposal

This issue is created to address the TODO comment found in the (c *Client) PullModel function, from @mdelapenya

// TODO: use a progressbar instead of multiple line output.

Why is it needed?

  • Currently, pulling a model floods the terminal with raw log output. This makes it difficult for users to track the actual download progress and results in a poor user experience.

Proposed Solution

Replace the current line-by-line logging with a progress bar.
This can be achieved by:

  • Parsing the JSON stream from the response body to get the download status.
  • Using a terminal progress bar library (e.g., github.com/schollz/progressbar/v3) to visually display the progress based on the parsed data.

I'd appreciate any feedback on this proposal. If this sounds like a good idea, I'd be happy to open a Pull Request to implement it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions