April 2026 TLDR setup for Ollama + Gemma 4 on a Mac mini (Apple Silicon) — auto-start, preload, and keep-alive
- Mac mini with Apple Silicon (M1/M2/M3/M4/M5)
- At least 16GB unified memory for Gemma 4 (default 8B)
- macOS with Homebrew installed
April 2026 TLDR setup for Ollama + Gemma 4 on a Mac mini (Apple Silicon) — auto-start, preload, and keep-alive
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| """ | |
| (c) 2014 Brant Faircloth || http://faircloth-lab.org/ | |
| All rights reserved. | |
| This code is distributed under a 3-clause BSD license. Please see | |
| LICENSE.txt for more information. |
| # tinyp2p.py 1.0 (documentation at http://freedom-to-tinker.com/tinyp2p.html) | |
| # (C) 2004, E.W. Felten | |
| # license: http://creativecommons.org/licenses/by-nc-sa/2.0 | |
| # Annotated by Kochin Chang, Jan. 2005 | |
| # Usage: | |
| # Server - python tinyp2p.py password server hostname portnum [otherurl] |