Created
April 22, 2025 16:20
-
-
Save kinwahlai/43ec24e920c5ab6aa05107a0eb2e22fd to your computer and use it in GitHub Desktop.
put this into ~/Library/LaunchAgent to starts the ollama server.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>EnvironmentVariables</key> | |
<dict> | |
<key>OLLAMA_FLASH_ATTENTION</key> | |
<string>1</string> | |
<key>OLLAMA_KV_CACHE_TYPE</key> | |
<string>q8_0</string> | |
<key>OLLAMA_KEEP_ALIVE</key> | |
<string>1800</string> | |
<key>OLLAMA_HOST</key> | |
<string>0.0.0.0</string> | |
</dict> | |
<key>KeepAlive</key> | |
<true/> | |
<key>Label</key> | |
<string>homebrew.mxcl.ollama</string> | |
<key>LimitLoadToSessionType</key> | |
<array> | |
<string>Aqua</string> | |
<string>Background</string> | |
<string>LoginWindow</string> | |
<string>StandardIO</string> | |
<string>System</string> | |
</array> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/opt/homebrew/opt/ollama/bin/ollama</string> | |
<string>serve</string> | |
</array> | |
<key>RunAtLoad</key> | |
<true/> | |
<key>StandardErrorPath</key> | |
<string>/opt/homebrew/var/log/ollama.log</string> | |
<key>StandardOutPath</key> | |
<string>/opt/homebrew/var/log/ollama.log</string> | |
<key>WorkingDirectory</key> | |
<string>/opt/homebrew/var</string> | |
</dict> | |
</plist> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment