[GH-ISSUE #3852] Save command in repl allows invalid model names (such as "-h") #2387

Closed
opened 2026-04-12 12:42:19 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @Chiuuu0209 on GitHub (Apr 23, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/3852

Originally assigned to: @pdevine on GitHub.

What is the issue?

I misuse the -h flag in a llama3 session

I want to see the usage of /save in a session so i type /save -h .Thus i have saved a session name -h

$ollama list
NAME            ID              SIZE    MODIFIED
-h:latest       c36f2d34d11b    4.7 GB  18 minutes ago
llama3:latest   a6990ed6be41    4.7 GB  53 minutes ago

Now i can not remove it by

ollama rm -h

I try to remove it by ID but it seems not support this feature now.

What else can i do for this problem.

OS

Linux

GPU

Nvidia

CPU

Intel

Ollama version

0.1.32

Originally created by @Chiuuu0209 on GitHub (Apr 23, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/3852 Originally assigned to: @pdevine on GitHub. ### What is the issue? I misuse the -h flag in a llama3 session I want to see the usage of `/save` in a session so i type `/save -h` .Thus i have saved a session name `-h` ``` $ollama list NAME ID SIZE MODIFIED -h:latest c36f2d34d11b 4.7 GB 18 minutes ago llama3:latest a6990ed6be41 4.7 GB 53 minutes ago ``` Now i can not remove it by ``` ollama rm -h ``` I try to remove it by ID but it seems not support this feature now. What else can i do for this problem. ### OS Linux ### GPU Nvidia ### CPU Intel ### Ollama version 0.1.32
GiteaMirror added the bug label 2026-04-12 12:42:19 -05:00
Author
Owner

@jmorganca commented on GitHub (Apr 23, 2024):

Hi there, I'm sorry this happened. You can remove it manually by erasing /usr/share/ollama/.ollama/models/manifests/-h

Let me know if that works. I'll keep this issue open until we fix the /save syntax

<!-- gh-comment-id:2073538065 --> @jmorganca commented on GitHub (Apr 23, 2024): Hi there, I'm sorry this happened. You can remove it manually by erasing `/usr/share/ollama/.ollama/models/manifests/-h` Let me know if that works. I'll keep this issue open until we fix the `/save` syntax
Author
Owner

@Chiuuu0209 commented on GitHub (Apr 27, 2024):

I manually remove my model but it was in /usr/share/ollama/.ollama/models/manifests/registry.ollama.ai/library rather than /usr/share/ollama/.ollama/models/manifests/-h

But thing gonna work well.

Appreciate your reply.

<!-- gh-comment-id:2081176098 --> @Chiuuu0209 commented on GitHub (Apr 27, 2024): I manually remove my model but it was in `/usr/share/ollama/.ollama/models/manifests/registry.ollama.ai/library` rather than `/usr/share/ollama/.ollama/models/manifests/-h` But thing gonna work well. Appreciate your reply.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#2387