[GH-ISSUE #10423] Indicate the model name in the debugging logs #6850

Closed
opened 2026-04-12 18:39:38 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @enigmadrm on GitHub (Apr 26, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/10423

The debugging logs only report the model path and all the models are stored by their sha256 hash. We have no idea what model these hashes refer to, so they are basically useless at a glance. I mean, you can eventually figure it out if you go digging, but that sucks. It would be so much more useful if it reported the model name as well.

Originally created by @enigmadrm on GitHub (Apr 26, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/10423 The debugging logs only report the model path and all the models are stored by their sha256 hash. We have no idea what model these hashes refer to, so they are basically useless at a glance. I mean, you can eventually figure it out if you go digging, but that sucks. It would be so much more useful if it reported the model name as well.
GiteaMirror added the feature request label 2026-04-12 18:39:38 -05:00
Author
Owner

@rick-github commented on GitHub (Apr 26, 2025):

#!/bin/bash

OLLAMA_MODELS=${OLLAMA_MODELS:-/usr/share/ollama/.ollama/models}

cd $OLLAMA_MODELS/manifests/ || exit

len=0
for f in $* ; do
  [ ${#f} -gt $len ] && len=${#f}
done

for f in $* ; do
  s=${f##*/}
  s=${s#sha256?}
  find . -type f -size -10000c | xargs grep -l "$s" | sed -e 's@^\./@@' -e 's@^registry.ollama.ai/@@' -e 's@^library/@@' | while read i ; do n=${i%/*} ; t=${i##*/} ; printf "%-${len}s %s\n" $f "$n:$t" ; done
done
$ sha2model ab0cd5e7898d841131 55087896c4cc 96c415656d
ab0cd5e7898d841131 hf.co/bartowski/Sky-T1-32B-Flash-GGUF:q4_k_m
55087896c4cc       hf.co/bartowski/cognitivecomputations_Dolphin3.0-Mistral-24B-GGUF:Q4_0
55087896c4cc       dolphin3:latest
96c415656d         MFDoom/deepseek-r1-tool-calling:latest
96c415656d         MFDoom/deepseek-r1-tool-calling:7b
<!-- gh-comment-id:2832623270 --> @rick-github commented on GitHub (Apr 26, 2025): ```sh #!/bin/bash OLLAMA_MODELS=${OLLAMA_MODELS:-/usr/share/ollama/.ollama/models} cd $OLLAMA_MODELS/manifests/ || exit len=0 for f in $* ; do [ ${#f} -gt $len ] && len=${#f} done for f in $* ; do s=${f##*/} s=${s#sha256?} find . -type f -size -10000c | xargs grep -l "$s" | sed -e 's@^\./@@' -e 's@^registry.ollama.ai/@@' -e 's@^library/@@' | while read i ; do n=${i%/*} ; t=${i##*/} ; printf "%-${len}s %s\n" $f "$n:$t" ; done done ``` ```console $ sha2model ab0cd5e7898d841131 55087896c4cc 96c415656d ab0cd5e7898d841131 hf.co/bartowski/Sky-T1-32B-Flash-GGUF:q4_k_m 55087896c4cc hf.co/bartowski/cognitivecomputations_Dolphin3.0-Mistral-24B-GGUF:Q4_0 55087896c4cc dolphin3:latest 96c415656d MFDoom/deepseek-r1-tool-calling:latest 96c415656d MFDoom/deepseek-r1-tool-calling:7b ```
Author
Owner

@rick-github commented on GitHub (May 23, 2025):

#10550

<!-- gh-comment-id:2903947980 --> @rick-github commented on GitHub (May 23, 2025): #10550
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#6850