Ollama now runs as a native Windows application, including NVIDIA and AMD Radeon GPU support.
Ollama now runs as a native Windows application, including NVIDIA and AMD Radeon GPU support.
After installing Ollama Windows Preview, Ollama will run in the background and
After installing Ollama Windows Preview, Ollama will run in the background and
the `ollama` command line is available in `cmd`, `powershell` or your favorite
the `ollama` command line is available in `cmd`, `powershell` or your favorite
terminal application. As usual the Ollama [api](./api.md) will be served on
terminal application. As usual the Ollama [api](./api.md) will be served on
`http://localhost:11434`.
`http://localhost:11434`.
As this is a preview release, you should expect a few bugs here and there. If
As this is a preview release, you should expect a few bugs here and there. If
you run into a problem you can reach out on
you run into a problem you can reach out on
[Discord](https://discord.gg/ollama), or file an
[Discord](https://discord.gg/ollama), or file an
[issue](https://github.com/ollama/ollama/issues).
[issue](https://github.com/ollama/ollama/issues).
Logs will often be helpful in diagnosing the problem (see
Logs will often be helpful in diagnosing the problem (see
[Troubleshooting](#troubleshooting) below)
[Troubleshooting](#troubleshooting) below)
## System Requirements
## System Requirements
* Windows 10 or newer, Home or Pro
* Windows 10 or newer, Home or Pro
* NVIDIA 452.39 or newer Drivers if you have an NVIDIA card
* NVIDIA 452.39 or newer Drivers if you have an NVIDIA card
* AMD Radeon Driver https://www.amd.com/en/support if you have a Radeon card
* AMD Radeon Driver https://www.amd.com/en/support if you have a Radeon card
## API Access
## API Access
Here's a quick example showing API access from `powershell`
Here's a quick example showing API access from `powershell`
```powershell
```powershell
(Invoke-WebRequest-methodPOST-Body'{"model":"llama2", "prompt":"Why is the sky blue?", "stream": false}'-urihttp://localhost:11434/api/generate).Content|ConvertFrom-json
(Invoke-WebRequest-methodPOST-Body'{"model":"llama2", "prompt":"Why is the sky blue?", "stream": false}'-urihttp://localhost:11434/api/generate).Content|ConvertFrom-json
```
```
## Troubleshooting
## Troubleshooting
While we're in preview, `OLLAMA_DEBUG` is always enabled, which adds
While we're in preview, `OLLAMA_DEBUG` is always enabled, which adds
a "view logs" menu item to the app, and increses logging for the GUI app and
a "view logs" menu item to the app, and increses logging for the GUI app and
server.
server.
Ollama on Windows stores files in a few different locations. You can view them in
Ollama on Windows stores files in a few different locations. You can view them in
the explorer window by hitting `<cmd>+R` and type in:
the explorer window by hitting `<cmd>+R` and type in:
-`explorer %LOCALAPPDATA%\Ollama` contains logs, and downloaded updates
-`explorer %LOCALAPPDATA%\Ollama` contains logs, and downloaded updates
-*app.log* contains logs from the GUI application
-*app.log* contains logs from the GUI application
-*server.log* contains the server logs
-*server.log* contains the server logs
-*upgrade.log* contains log output for upgrades
-*upgrade.log* contains log output for upgrades
-`explorer %LOCALAPPDATA%\Programs\Ollama` contains the binaries (The installer adds this to your user PATH)
-`explorer %LOCALAPPDATA%\Programs\Ollama` contains the binaries (The installer adds this to your user PATH)
-`explorer %HOMEPATH%\.ollama` contains models and configuration
-`explorer %HOMEPATH%\.ollama` contains models and configuration
-`explorer %TEMP%` contains temporary executable files in one or more `ollama*` directories
-`explorer %TEMP%` contains temporary executable files in one or more `ollama*` directories