ollama - ✅(Solved) Fix Error removing granite4:tiny‑h [1 pull requests, 1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
ollama/ollama#15061Fetched 2026-04-08 01:31:30
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Author
Participants
Timeline (top)
closed ×1commented ×1cross-referenced ×1referenced ×1

Error Message

ollama rm granite4:tiny‑h Warning: unable to stop model 'granite4:tiny‑h' Error: name "granite4:tiny‑h" is invalid

PR fix notes

PR #15069: model: normalize Unicode hyphens in model names

Description (problem / solution / changelog)

Model names containing Unicode hyphen-like characters, most commonly the non-breaking hyphen (U+2011), are now accepted wherever a regular ASCII hyphen is valid.

This is a real pain point: when a model name like granite4:tiny-h is displayed in a browser or copied from a rich-text source, the hyphen can silently become U+2011. The user then runs ollama rm granite4:tiny‑h and gets a cryptic name granite4:tiny‑h is invalid error with no hint about what went wrong.

Changed files

  • types/model/name.go (modified, +23/-0)
  • types/model/name_test.go (modified, +49/-0)

Code Example

ollama rm granite4:tiny‑h
Warning: unable to stop model 'granite4:tiny‑h'
Error: name "granite4:tiny‑h" is invalid
RAW_BUFFERClick to expand / collapse

What is the issue?

I tried using the ID or only "granite4" but nothing works.

Relevant log output

ollama rm granite4:tiny‑h
Warning: unable to stop model 'granite4:tiny‑h'
Error: name "granite4:tiny‑h" is invalid

OS

Windows

GPU

Nvidia

CPU

Intel

Ollama version

0.18.2

extent analysis

Fix Plan

The fix is to update the model name to match the expected format.

  • Check the available models using the ollama ls command.
  • Update the model name to the correct format, for example: ollama rm granite4/tiny-h.

Code Changes

No code changes are required, only the command to remove the model needs to be updated.

Example Command

ollama rm granite4/tiny-h

Note: Make sure to use the correct model name and format.

Verification

After running the updated command, verify that the model is removed successfully by checking the output of the ollama ls command.

Extra Tips

  • Always check the available models using ollama ls before attempting to remove one.
  • Make sure to use the correct model name and format to avoid errors.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING