[PR #1134] [MERGED] progress bar #15750

Closed
opened 2026-04-16 05:06:54 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/1134
Author: @mxyng
Created: 11/15/2023
Status: Merged
Merged: 11/17/2023
Merged by: @mxyng

Base: mainHead: mxyng/progress


📝 Commits (10+)

📊 Changes

12 files changed (+423 additions, -1445 deletions)

View changed files

📝 cmd/cmd.go (+93 -77)
cmd/spinner.go (+0 -44)
📝 format/bytes.go (+3 -0)
progress/bar.go (+123 -0)
progress/progress.go (+98 -0)
progress/spinner.go (+102 -0)
progressbar/LICENSE (+0 -21)
progressbar/README.md (+0 -121)
progressbar/progressbar.go (+0 -1098)
progressbar/spinners.go (+0 -80)
📝 server/download.go (+2 -2)
📝 server/upload.go (+2 -2)

📄 Description

Example:

$ ollama pull mistral
pulling manifest                                                                                                                                                                                                  (1s)
downloading 6ae280299950 100.0% [=========================================================================================================================================================] (4.1 GB/4.1 GB, 0 B/s, 0s)
downloading 22e1b2e8dc2f 100.0% [=============================================================================================================================================================] (43 B/43 B, 0 B/s, 0s)
downloading e35ab70a78c7 100.0% [=============================================================================================================================================================] (90 B/90 B, 0 B/s, 0s)
downloading 1cb90d66f4d4 100.0% [===========================================================================================================================================================] (381 B/381 B, 0 B/s, 0s)
verifying sha256 digest                                                                                                                                                                                           (2s)
writing manifest                                                                                                                                                                                                  (0s)
removing any unused layers                                                                                                                                                                                        (0s)
success                                                                                                                                                                                                           (0s)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/1134 **Author:** [@mxyng](https://github.com/mxyng) **Created:** 11/15/2023 **Status:** ✅ Merged **Merged:** 11/17/2023 **Merged by:** [@mxyng](https://github.com/mxyng) **Base:** `main` ← **Head:** `mxyng/progress` --- ### 📝 Commits (10+) - [`f91bb2f`](https://github.com/ollama/ollama/commit/f91bb2f7f00e5c82b30f08f56fd99b6f7c735e00) remove progressbar - [`9f04e5a`](https://github.com/ollama/ollama/commit/9f04e5a8eaf24b0391766fc4904f7f1f08d2d1e8) format bytes - [`c4a3ccd`](https://github.com/ollama/ollama/commit/c4a3ccd7ace38a9e9c54d83edb035742d0eff962) progress - [`1c0e092`](https://github.com/ollama/ollama/commit/1c0e092eadc9f56abd745d31ff5c57e91fddd45e) progress cmd - [`4dcf7a5`](https://github.com/ollama/ollama/commit/4dcf7a59b13c3a28868cd82d4addaeef5d0159b0) generate progress - [`d6ecaa2`](https://github.com/ollama/ollama/commit/d6ecaa2cbfccec94d172d02dde1a6fceca15a88d) update progress responses - [`7ea9058`](https://github.com/ollama/ollama/commit/7ea905871a5bf54953f19af21b5ccd6022bdc635) only move cursor up if pos > 0 - [`4d677ee`](https://github.com/ollama/ollama/commit/4d677ee3894c28190c424c9359aae3c6aedae13d) no divide by zero - [`9760683`](https://github.com/ollama/ollama/commit/976068369b3ec293bb2769975fcd64b4c50e1585) stop all spinners on progress stop - [`3cb07d2`](https://github.com/ollama/ollama/commit/3cb07d2773c6a3229c774355a4cdf56e84de5680) simplify StopAndClear ### 📊 Changes **12 files changed** (+423 additions, -1445 deletions) <details> <summary>View changed files</summary> 📝 `cmd/cmd.go` (+93 -77) ➖ `cmd/spinner.go` (+0 -44) 📝 `format/bytes.go` (+3 -0) ➕ `progress/bar.go` (+123 -0) ➕ `progress/progress.go` (+98 -0) ➕ `progress/spinner.go` (+102 -0) ➖ `progressbar/LICENSE` (+0 -21) ➖ `progressbar/README.md` (+0 -121) ➖ `progressbar/progressbar.go` (+0 -1098) ➖ `progressbar/spinners.go` (+0 -80) 📝 `server/download.go` (+2 -2) 📝 `server/upload.go` (+2 -2) </details> ### 📄 Description Example: ``` $ ollama pull mistral pulling manifest (1s) downloading 6ae280299950 100.0% [=========================================================================================================================================================] (4.1 GB/4.1 GB, 0 B/s, 0s) downloading 22e1b2e8dc2f 100.0% [=============================================================================================================================================================] (43 B/43 B, 0 B/s, 0s) downloading e35ab70a78c7 100.0% [=============================================================================================================================================================] (90 B/90 B, 0 B/s, 0s) downloading 1cb90d66f4d4 100.0% [===========================================================================================================================================================] (381 B/381 B, 0 B/s, 0s) verifying sha256 digest (2s) writing manifest (0s) removing any unused layers (0s) success (0s) ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-16 05:06:54 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#15750