[GH-ISSUE #1568] ollama in Powershell using WSL2 #859

Closed
opened 2026-04-12 10:31:25 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @BananaAcid on GitHub (Dec 16, 2023).
Original GitHub issue: https://github.com/ollama/ollama/issues/1568

Just an info for others trying to trigger ollama from powershell:

Either use wsl ollama run llama2 (prefix with wsl)

  • or -

enable a ollama command in powershell:

  1. notepad $PROFILE
  2. add as last line: function ollama() { $cmd = @("ollama") + $args ; &wsl.exe $cmd }

Note: setting OLLAMA_MODELS=/mnt/...DRIVELETTER... will kill the performance!

Originally created by @BananaAcid on GitHub (Dec 16, 2023). Original GitHub issue: https://github.com/ollama/ollama/issues/1568 Just an info for others trying to trigger ollama from powershell: Either use `wsl ollama run llama2` (prefix with wsl) - or - enable a `ollama` command in powershell: 1. `notepad $PROFILE` 2. add as last line: `function ollama() { $cmd = @("ollama") + $args ; &wsl.exe $cmd }` Note: setting `OLLAMA_MODELS=/mnt/...DRIVELETTER...` will kill the performance!
GiteaMirror added the documentation label 2026-04-12 10:31:25 -05:00
Author
Owner

@BruceMacD commented on GitHub (Dec 19, 2023):

Thanks for documenting this @BananaAcid, marking this as resolved for now as there are no changes for Ollama outstanding here, but I appreciate adding this for future searchers.

<!-- gh-comment-id:1863219029 --> @BruceMacD commented on GitHub (Dec 19, 2023): Thanks for documenting this @BananaAcid, marking this as resolved for now as there are no changes for Ollama outstanding here, but I appreciate adding this for future searchers.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#859