[GH-ISSUE #5691] Run model by index #65583

Open
opened 2026-05-03 21:47:25 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @peteruithoven on GitHub (Jul 14, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/5691

When running models using the cli the whole names needs to be used e.g. ollama run deepseek-coder-v2. Some of these names are hard to remember. I often copy them from ollama list. What if we could also run them by their index in the ollama list?

You could just run ollama list see the indexes and run ollama run 1 for example.
When you run the same model often you can just remember the index.

Ideally ollama list also shows these indexes:

# NAME                           	ID          	SIZE  	MODIFIED       
1 llama3:latest                  	365c0bd3c000	4.7 GB	16 minutes ago	
2 mistral-openorca:latest        	12dc6acc14d0	4.1 GB	11 minutes ago	
Originally created by @peteruithoven on GitHub (Jul 14, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/5691 When running models using the cli the whole names needs to be used e.g. `ollama run deepseek-coder-v2`. Some of these names are hard to remember. I often copy them from `ollama list`. What if we could also run them by their index in the `ollama list`? You could just run `ollama list` see the indexes and run `ollama run 1` for example. When you run the same model often you can just remember the index. Ideally `ollama list` also shows these indexes: ``` # NAME ID SIZE MODIFIED 1 llama3:latest 365c0bd3c000 4.7 GB 16 minutes ago 2 mistral-openorca:latest 12dc6acc14d0 4.1 GB 11 minutes ago ```
GiteaMirror added the feature request label 2026-05-03 21:47:25 -05:00
Author
Owner

@rick-github commented on GitHub (Jul 14, 2024):

Similar: https://github.com/ollama/ollama/issues/5380#issuecomment-2198365573

<!-- gh-comment-id:2227497474 --> @rick-github commented on GitHub (Jul 14, 2024): Similar: https://github.com/ollama/ollama/issues/5380#issuecomment-2198365573
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#65583