2023-12-22 17:10:01 +00:00
# How to troubleshoot issues
Sometimes Ollama may not perform as expected. One of the best ways to figure out what happened is to take a look at the logs. Find the logs on Mac by running the command:
```shell
cat ~/.ollama/logs/server.log
```
On Linux systems with systemd, the logs can be found with this command:
```shell
journalctl -u ollama
```
2024-01-29 16:52:41 +00:00
When you run Ollama in a container, the logs go to stdout/stderr in the container:
```shell
docker logs < container-name >
```
(Use `docker ps` to find the container name)
2023-12-22 17:10:01 +00:00
If manually running `ollama serve` in a terminal, the logs will be on that terminal.
Join the [Discord ](https://discord.gg/ollama ) for help interpreting the logs.
2024-01-07 23:48:05 +00:00
## LLM libraries
Ollama includes multiple LLM libraries compiled for different GPUs and CPU
vector features. Ollama tries to pick the best one based on the capabilities of
your system. If this autodetection has problems, or you run into other problems
(e.g. crashes in your GPU) you can workaround this by forcing a specific LLM
library. `cpu_avx2` will perform the best, followed by `cpu_avx` an the slowest
but most compatible is `cpu` . Rosetta emulation under MacOS will work with the
`cpu` library.
In the server log, you will see a message that looks something like this (varies
from release to release):
```
Dynamic LLM libraries [rocm_v6 cpu cpu_avx cpu_avx2 cuda_v11 rocm_v5]
```
**Experimental LLM Library Override**
You can set OLLAMA_LLM_LIBRARY to any of the available LLM libraries to bypass
autodetection, so for example, if you have a CUDA card, but want to force the
CPU LLM library with AVX2 vector support, use:
2023-12-22 17:10:01 +00:00
2024-01-07 23:48:05 +00:00
```
OLLAMA_LLM_LIBRARY="cpu_avx2" ollama serve
```
You can see what features your CPU has with the following.
```
cat /proc/cpuinfo| grep flags | head -1
```
## Known issues
2023-12-22 17:10:01 +00:00
2024-01-07 23:48:05 +00:00
* N/A