Installing Ollama on Windows 11
Step-by-Step Guide:
Section titled βStep-by-Step Guide:ββ Prerequisites:
Section titled ββ Prerequisites:β- Windows 11 with WSL2 installed and configured (Guide).
π Installation Steps:
Section titled βπ Installation Steps:β- Open PowerShell (as administrator) and enable WSL and Virtual Machine Platform:
wsl --install
- Install Ubuntu from the Microsoft Store:
- Open Microsoft Store, search for βUbuntuβ, and click Install.
- Launch Ubuntu (Terminal opens after installing):
- Set your Linux username and password.
- Install Ollama within the Ubuntu (WSL) terminal:
curl -fsSL https://ollama.com/install.sh | sh
- Verify installation by running:
ollama --version
π οΈ Usage Example:
Section titled βπ οΈ Usage Example:β- Run your first model (e.g., Llama2):
ollama run llama2
- Ollama automatically downloads the model and begins a conversation.
βοΈ Serving Ollama Locally (API access):
Section titled ββοΈ Serving Ollama Locally (API access):β- Run the server:
ollama serve
- API endpoint:
http://localhost:11434