You're welcome to go through the source: https://github.com/ollama/ollama/