[PR #8034] cmd: Add --base2 option to ps to show model sizes in KiB/MiB/GiB #38471

Open
opened 2026-04-22 23:08:05 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/8034
Author: @theasp
Created: 12/11/2024
Status: 🔄 Open

Base: mainHead: ps-base2


📝 Commits (1)

  • 68dc629 cmd: Add --base2 option to ps to show model sizes in KiB/MiB/GiB

📊 Changes

1 file changed (+14 additions, -1 deletions)

View changed files

📝 cmd/cmd.go (+14 -1)

📄 Description

Add --base2 option to ps to show model sizes in KiB/MiB/GiB. It also shows a decimal place, but I consider this a feature.

industrial:~/projects/ollama-src$ ollama ps
NAME                                     ID              SIZE     PROCESSOR         UNTIL
DEFAULT/mistral-small-2409-22b:latest    671ad04c21ce    26 GB    7%/93% CPU/GPU    Forever

industrial:~/projects/ollama-src$ ollama ps --base2
NAME                                     ID              SIZE        PROCESSOR         UNTIL
DEFAULT/mistral-small-2409-22b:latest    671ad04c21ce    24.4 GiB    7%/93% CPU/GPU    Forever

🔄 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/8034 **Author:** [@theasp](https://github.com/theasp) **Created:** 12/11/2024 **Status:** 🔄 Open **Base:** `main` ← **Head:** `ps-base2` --- ### 📝 Commits (1) - [`68dc629`](https://github.com/ollama/ollama/commit/68dc6297a13f340799b54a53f4aedd7861ac5984) cmd: Add --base2 option to ps to show model sizes in KiB/MiB/GiB ### 📊 Changes **1 file changed** (+14 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `cmd/cmd.go` (+14 -1) </details> ### 📄 Description Add `--base2` option to ps to show model sizes in KiB/MiB/GiB. It also shows a decimal place, but I consider this a feature. ``` industrial:~/projects/ollama-src$ ollama ps NAME ID SIZE PROCESSOR UNTIL DEFAULT/mistral-small-2409-22b:latest 671ad04c21ce 26 GB 7%/93% CPU/GPU Forever industrial:~/projects/ollama-src$ ollama ps --base2 NAME ID SIZE PROCESSOR UNTIL DEFAULT/mistral-small-2409-22b:latest 671ad04c21ce 24.4 GiB 7%/93% CPU/GPU Forever ``` --- <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-22 23:08:05 -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#38471