[GH-ISSUE #6162] Number of LLMs in Ollama Libary #65887

Closed
opened 2026-05-03 23:04:50 -05:00 by GiteaMirror · 7 comments
Owner

Originally created by @Gautamshahi on GitHub (Aug 4, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/6162

What is the issue?

How can we calculate the number of LLMs in the Ollama library?

OS

No response

GPU

No response

CPU

No response

Ollama version

No response

Originally created by @Gautamshahi on GitHub (Aug 4, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/6162 ### What is the issue? How can we calculate the number of LLMs in the Ollama library? ### OS _No response_ ### GPU _No response_ ### CPU _No response_ ### Ollama version _No response_
GiteaMirror added the bug label 2026-05-03 23:04:50 -05:00
Author
Owner

@rick-github commented on GitHub (Aug 4, 2024):

Pull them all, then run

 ollama list | grep -v "^NAME" | wc -l

jk.

for p in {1..133} ; do wget -qO - https://ollama.com/search?p=$p | sed -ne 's/^\s*\([0-9][0-9]*\)<.*Tags.*/\1/p' ; done | awk '{sum+=$1}END{print sum}'
8530

That's all variations of quantization. If you just wanted the count of model families, there's 133 pages and 25 models per page, so 3325. That includes models uploaded by ollama users.

The above is just an approximation, somebody from the ollama team could run a query and give the definitive answer.

<!-- gh-comment-id:2267558944 --> @rick-github commented on GitHub (Aug 4, 2024): Pull them all, then run ``` ollama list | grep -v "^NAME" | wc -l ``` jk. ``` for p in {1..133} ; do wget -qO - https://ollama.com/search?p=$p | sed -ne 's/^\s*\([0-9][0-9]*\)<.*Tags.*/\1/p' ; done | awk '{sum+=$1}END{print sum}' 8530 ``` That's all variations of quantization. If you just wanted the count of model families, there's 133 pages and 25 models per page, so 3325. That includes models uploaded by ollama users. The above is just an approximation, somebody from the ollama team could run a query and give the definitive answer.
Author
Owner

@Gautamshahi commented on GitHub (Aug 4, 2024):

thanks, it really helped, but what is 8530 from grep command?

<!-- gh-comment-id:2267651772 --> @Gautamshahi commented on GitHub (Aug 4, 2024): thanks, it really helped, but what is 8530 from grep command?
Author
Owner

@rick-github commented on GitHub (Aug 4, 2024):

8530 is the number of tagged models in the ollama library, eg gemma2:2b, gemma2:2b-instruct-fp16, gemma2:2b-instruct-q2_K, etc. The grep command is just a joke, to make that work you would need to download terabytes of models, which is infeasible for most users.

<!-- gh-comment-id:2267654713 --> @rick-github commented on GitHub (Aug 4, 2024): 8530 is the number of tagged models in the ollama library, eg gemma2:2b, gemma2:2b-instruct-fp16, gemma2:2b-instruct-q2_K, etc. The grep command is just a joke, to make that work you would need to download terabytes of models, which is infeasible for most users.
Author
Owner

@Gautamshahi commented on GitHub (Aug 4, 2024):

okay thank you

<!-- gh-comment-id:2267658913 --> @Gautamshahi commented on GitHub (Aug 4, 2024): okay thank you
Author
Owner

@igorschlum commented on GitHub (Aug 5, 2024):

@Gautamshahi, now that you have your answer, could you please close the issue? If you have questions like this, it's better to use Discord rather than the bug reports on GitHub, which are dedicated to solvable problems. When people see a high number of reported bugs, they might become concerned.

<!-- gh-comment-id:2269408657 --> @igorschlum commented on GitHub (Aug 5, 2024): @Gautamshahi, now that you have your answer, could you please close the issue? If you have questions like this, it's better to use Discord rather than the bug reports on GitHub, which are dedicated to solvable problems. When people see a high number of reported bugs, they might become concerned.
Author
Owner

@FellowTraveler commented on GitHub (Aug 12, 2024):

@Gautamshahi please close this issue.

<!-- gh-comment-id:2282958316 --> @FellowTraveler commented on GitHub (Aug 12, 2024): @Gautamshahi please close this issue.
Author
Owner

@Gautamshahi commented on GitHub (Aug 12, 2024):

@FellowTraveler @igorschlum @rick-github, Thanks for the answer; sorry for the long hold; I am closing the issue, and next time, use Discord for this type of question.

<!-- gh-comment-id:2284004742 --> @Gautamshahi commented on GitHub (Aug 12, 2024): @FellowTraveler @igorschlum @rick-github, Thanks for the answer; sorry for the long hold; I am closing the issue, and next time, use Discord for this type of question.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#65887