[PR #10717] [MERGED] cmd: add ellipses to truncated show metadata #39212

Closed
opened 2026-04-22 23:51:33 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/10717
Author: @BruceMacD
Created: 5/15/2025
Status: Merged
Merged: 5/15/2025
Merged by: @BruceMacD

Base: mainHead: brucemacd/ellipses


📝 Commits (3)

📊 Changes

2 files changed (+44 additions, -7 deletions)

View changed files

📝 cmd/cmd.go (+43 -7)
📝 cmd/cmd_test.go (+1 -0)

📄 Description

When a piece of information has been truncated in the show output an ellipses to indicate that more data has not been displayed.

Not communicating that the data had been truncated caused some confusion when troubleshooting an issue with model metadata.

Sample output:

❯ ollama show llama3.2-vision -v
# omitted unchanged fields here - Bruce
  Metadata
    mllama.vision.intermediate_layers_indices     [3 7 15 ...+2 more]        
    mllama.vision.max_num_tiles                   4                          
    mllama.vision.num_channels                    3                          
    mllama.vision.patch_size                      14                         
    mllama.vocab_size                             128256                     
    tokenizer.ggml.add_bos_token                  false                      
    tokenizer.ggml.add_eos_token                  false                      
    tokenizer.ggml.add_padding_token              false                      
    tokenizer.ggml.bos_token_id                   128000                     
    tokenizer.ggml.eos_token_id                   128009                     
    tokenizer.ggml.merges                         [Ġ Ġ ...+280146 more]      
    tokenizer.ggml.model                          gpt2                       
    tokenizer.ggml.padding_token_id               128004                     
    tokenizer.ggml.pre                            llama-bpe                  
    tokenizer.ggml.scores                         [0 1 2 ...+128254 more]    
    tokenizer.ggml.token_type                     [1 1 1 ...+128254 more]    
    tokenizer.ggml.tokens                         [! " # ...+128254 more]  

🔄 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/10717 **Author:** [@BruceMacD](https://github.com/BruceMacD) **Created:** 5/15/2025 **Status:** ✅ Merged **Merged:** 5/15/2025 **Merged by:** [@BruceMacD](https://github.com/BruceMacD) **Base:** `main` ← **Head:** `brucemacd/ellipses` --- ### 📝 Commits (3) - [`7bf6db2`](https://github.com/ollama/ollama/commit/7bf6db254077d5a5fc4e85c3095b2f8ed97becfb) cmd: add ellipses to truncated show metadata - [`8772998`](https://github.com/ollama/ollama/commit/8772998ac9b5126875b1f069bf7b4ac216232f10) fix test - [`57cd2f2`](https://github.com/ollama/ollama/commit/57cd2f250d7dc0b247df1af0a327487cc4dbb917) display how many more ### 📊 Changes **2 files changed** (+44 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `cmd/cmd.go` (+43 -7) 📝 `cmd/cmd_test.go` (+1 -0) </details> ### 📄 Description When a piece of information has been truncated in the show output an ellipses to indicate that more data has not been displayed. Not communicating that the data had been truncated caused some confusion when troubleshooting an issue with model metadata. Sample output: ``` ❯ ollama show llama3.2-vision -v # omitted unchanged fields here - Bruce Metadata mllama.vision.intermediate_layers_indices [3 7 15 ...+2 more] mllama.vision.max_num_tiles 4 mllama.vision.num_channels 3 mllama.vision.patch_size 14 mllama.vocab_size 128256 tokenizer.ggml.add_bos_token false tokenizer.ggml.add_eos_token false tokenizer.ggml.add_padding_token false tokenizer.ggml.bos_token_id 128000 tokenizer.ggml.eos_token_id 128009 tokenizer.ggml.merges [Ġ Ġ ...+280146 more] tokenizer.ggml.model gpt2 tokenizer.ggml.padding_token_id 128004 tokenizer.ggml.pre llama-bpe tokenizer.ggml.scores [0 1 2 ...+128254 more] tokenizer.ggml.token_type [1 1 1 ...+128254 more] tokenizer.ggml.tokens [! " # ...+128254 more] ``` --- <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:51:33 -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#39212