doc: show how to clear the cgo cache (#12298)

This commit is contained in:
Daniel Hiltgen
2025-09-15 15:45:35 -07:00
committed by GitHub
parent 3f6642f6fc
commit 93c64ea1b1

View File

@@ -11,6 +11,10 @@ Then build and run Ollama from the root directory of the repository:
go run . serve
```
> [!NOTE]
> Ollama includes native code compiled with CGO. From time to time these data structures can change and CGO can get out of sync resulting in unexpected crashes. You can force a full build of the native code by running `go clean -cache` first.
## macOS (Apple Silicon)
macOS Apple Silicon supports Metal which is built-in to the Ollama binary. No additional steps are required.