[GH-ISSUE #6740] ollama show spaces out everything with empty lines for custom Modelfile #30007

Closed
opened 2026-04-22 09:24:37 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @songyang-dev on GitHub (Sep 11, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/6740

Originally assigned to: @mxyng on GitHub.

What is the issue?

Running the command in WSL for default models pulled from the registry works fine. But when running the command for local models created from a Modelfile, it results in too many spaces.

yangs@THE-HIVEMIND:~/ai-fun$ ollama show llama3.1
  Model
        arch                    llama
        parameters              8.0B
        quantization            Q4_0
        context length          131072
        embedding length        4096

  Parameters
        stop    "<|start_header_id|>"
        stop    "<|end_header_id|>"
        stop    "<|eot_id|>"

  License
        LLAMA 3.1 COMMUNITY LICENSE AGREEMENT
        Llama 3.1 Version Release Date: July 23, 2024

yangs@THE-HIVEMIND:~/ai-fun$ ollama show adventure
  Model


        arch                    llama


        parameters              8.0B


        quantization            Q4_0


        context length          131072


        embedding length        4096





  Parameters


        stop    "<|start_header_id|>"


        stop    "<|end_header_id|>"


        stop    "<|eot_id|>"


        stop    "<|reserved_special_token|>"





  System


        You are a story writer...




  License


        LLAMA 3.1 COMMUNITY LICENSE AGREEMENT


        Llama 3.1 Version Release Date: July 23, 2024





OS

WSL2

GPU

Nvidia

CPU

Intel

Ollama version

0.3.9

Originally created by @songyang-dev on GitHub (Sep 11, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/6740 Originally assigned to: @mxyng on GitHub. ### What is the issue? Running the command in WSL for default models pulled from the registry works fine. But when running the command for local models created from a Modelfile, it results in too many spaces. ```console yangs@THE-HIVEMIND:~/ai-fun$ ollama show llama3.1 Model arch llama parameters 8.0B quantization Q4_0 context length 131072 embedding length 4096 Parameters stop "<|start_header_id|>" stop "<|end_header_id|>" stop "<|eot_id|>" License LLAMA 3.1 COMMUNITY LICENSE AGREEMENT Llama 3.1 Version Release Date: July 23, 2024 yangs@THE-HIVEMIND:~/ai-fun$ ollama show adventure Model arch llama parameters 8.0B quantization Q4_0 context length 131072 embedding length 4096 Parameters stop "<|start_header_id|>" stop "<|end_header_id|>" stop "<|eot_id|>" stop "<|reserved_special_token|>" System You are a story writer... License LLAMA 3.1 COMMUNITY LICENSE AGREEMENT Llama 3.1 Version Release Date: July 23, 2024 ``` ### OS WSL2 ### GPU Nvidia ### CPU Intel ### Ollama version 0.3.9
GiteaMirror added the bug label 2026-04-22 09:24:37 -05:00
Author
Owner

@mxyng commented on GitHub (Sep 11, 2024):

this is a bug with rendering when a long file-like item, like the system prompt, is present in the model. llama3.1 doesn't show this problem since it doesn't have a system prompt

<!-- gh-comment-id:2344351800 --> @mxyng commented on GitHub (Sep 11, 2024): this is a bug with rendering when a long file-like item, like the system prompt, is present in the model. llama3.1 doesn't show this problem since it doesn't have a system prompt
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#30007