{
  "created": "2026-07-26T22:17:46Z",
  "hierarchy": [
    {
      "name": "ROOT",
      "type": "folder",
      "uri": "/ROOT"
    },
    {
      "name": "Local LLM Models",
      "type": "article",
      "uri": "Local_LLM_Models"
    }
  ],
  "html": "<!DOCTYPE html><html lang=\"en\"><head><meta charset=\"UTF-8\"/><meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\"/><meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"/><meta name=\"name\" content=\"Nikhil's Personal Wiki\"/><meta name=\"description\" content=\"Local LLM Models – Nikhil's Personal Wiki\"/><meta name=\"author\" content=\"Nikhil Anand\"/><meta name=\"theme-color\" content=\"#ffe9a00\"/><meta property=\"og:title\" content=\"Nikhil's Personal Wiki\"/><meta property=\"og:description\" content=\"Local LLM Models – Nikhil's Personal Wiki\"/><meta property=\"og:type\" content=\"website\"/><meta property=\"og:image\" content=\"/img/logo512.png\"/><meta property=\"og:site_name\" content=\"Nikhil's Personal Wiki\"/><link rel=\"og:image\" href=\"/img/logo512.png\"/><link rel=\"icon\" href=\"/img/favicon.png\"/><link rel=\"apple-touch-icon\" href=\"/img/logo192.png\"/><link rel=\"stylesheet\" href=\"/css/styles.css\"/><title>Local LLM Models – Nikhil's Personal Wiki</title><script defer data-domain=\"wiki.nikhil.io\" src=\"https://plausible.io/js/plausible.js\"></script></head><body><noscript>👉 A few things won't work if you have JavaScript disabled.</noscript><div class=\"container article\"><header><nav><ul><li><a href=\"/archive\" class title=\"Archive\"><span>Archive</span></a></li><li><a href=\"/Home\" class title=\"Home\"><span>Home</span></a></li><li><a href=\"/random\" class title=\"See a random article\"><span>Random</span></a></li><li><a href=\"/Local_LLM_Models/raw.txt\" title=\"View Source\"><span>Raw</span></a></li><li><a href=\"/Local_LLM_Models/revisions\" class title=\"View revisions\"><span>Revisions</span></a></li><li><a href=\"/Local_LLM_Models/index.json\" title=\"View JSON Object\"><span>JSON</span></a></li></ul></nav></header><main><article><article-hierarchy><ul><li><a data-entity-type=\"folder\" href=\"/ROOT\" title=\"ROOT\">Root</a></li><li><a data-entity-type=\"article\" href=\"/Local_LLM_Models\" title=\"Local LLM Models\">Local LLM Models</a></li></ul></article-hierarchy><header><h1>Local LLM Models</h1></header><article-content><p>On an M2 MacBook Air with 24GB memory. There&rsquo;s <a href=\"https://www.llmfit.org/\"><code>llmfit</code></a> which I found to be extremely helpful and useful.</p>\n<h2>Running Models Locally</h2>\n<p>TODO: There&rsquo;s a host of options.</p>\n<h3>Formats</h3>\n<p>TODO: MLX, GGUF, etc</p>\n<h3>Nomenclature</h3>\n<p>TODO: Reading files&hellip;.</p>\n<h3>Llama.cpp</h3>\n<p>This is what I&rsquo;m using. <a href=\"https://llama.app/\">Homepage</a> and <a href=\"https://llama.app/models\">list of models</a>. It has a nice Web Interface.</p>\n<pre tabindex=\"0\" class=\"chroma\"><code><span class=\"line\"><span class=\"cl\"><span class=\"c1\"># Start a web UI</span>\n</span></span><span class=\"line\"><span class=\"cl\">llama-server -hf bartowski/Qwen_Qwen3.5-2B-GGUF:Q4_K_M\n</span></span><span class=\"line\"><span class=\"cl\">\n</span></span><span class=\"line\"><span class=\"cl\"><span class=\"c1\"># Start a CLI</span>\n</span></span><span class=\"line\"><span class=\"cl\">llama-cli -hf bartowski/Qwen_Qwen3.5-2B-GGUF:Q4_K_M\n</span></span></code></pre><h3>Trials</h3>\n<ul>\n<li><code>bartowski/Qwen_Qwen3.5-2B-GGUF</code> &ndash; First one! Was fine.</li>\n<li><code>bartowski/Qwen_Qwen3.5-9B-GGUF</code> &ndash; Slower but fine.</li>\n<li><code>bartowski/Qwen_Qwen3.6-27B-GGUF</code> &ndash; Did not run. Memory problems. Expected.</li>\n</ul>\n<h2>Model Terminology</h2>\n<p>TODO:</p>\n<h2>Other</h2>\n<p>Models are stored in <code>~/.cache/huggingface</code>.</p>\n<h2>Pi Agent Harness</h2>\n<p><a href=\"https://pi.dev/\">This is a really cool project</a>. You can type <code>/model</code> and switch models easily (i.e. you&rsquo;re not just restricted to Claude Code, for instance) and this includes local models. Installed via</p>\n<pre tabindex=\"0\" class=\"chroma\"><code><span class=\"line\"><span class=\"cl\">npm install -g --ignore-scripts @earendil-works/pi-coding-agent\n</span></span><span class=\"line\"><span class=\"cl\">\n</span></span><span class=\"line\"><span class=\"cl\"><span class=\"c1\"># Now link it to Llama and it will autodiscover local models!</span>\n</span></span><span class=\"line\"><span class=\"cl\">\n</span></span><span class=\"line\"><span class=\"cl\"><span class=\"c1\"># First serve the models. Note the host and port.</span>\n</span></span><span class=\"line\"><span class=\"cl\">llama serve --host localhost --port <span class=\"m\">8080</span>\n</span></span><span class=\"line\"><span class=\"cl\">\n</span></span><span class=\"line\"><span class=\"cl\"><span class=\"c1\"># Then install the extension</span>\n</span></span><span class=\"line\"><span class=\"cl\">pi install git:github.com/huggingface/pi-llama\n</span></span><span class=\"line\"><span class=\"cl\">\n</span></span><span class=\"line\"><span class=\"cl\"><span class=\"c1\"># Now run</span>\n</span></span><span class=\"line\"><span class=\"cl\">pi\n</span></span></code></pre><p>You will see the local models when you type <code>/models</code> and search for &ldquo;llama-cpp&rdquo;. <a href=\"https://roman.pt/posts/pi-dev-version/\">Here&rsquo;s a good post</a> on using it. You get very few tools and are expected to build the rest and place them in <code>$HOME/.pi</code>.</p>\n<h2>Resources</h2>\n<ul>\n<li><a href=\"https://huggingface.co/bartowski\">https://huggingface.co/bartowski</a></li>\n<li><a href=\"https://huggingface.co/Brooooooklyn\">https://huggingface.co/Brooooooklyn</a></li>\n<li><a href=\"https://sleepingrobots.com/dreams/stop-using-ollama/\">Friends Don&rsquo;t Let Friends Use Ollama</a> &ndash; Not sure what it offers above llama.cpp tbh. Great article with history.</li>\n<li><a href=\"https://jola.dev/posts/running-local-models-on-m4\">Running local models on an M4 with 24GB memory</a></li>\n</ul>\n</article-content></article></main><footer><p></p><ul><li>2,021 bytes</li><li>Created on Sunday, 26 July 2026 at 22:17 UTC</li><li>Modified on Sunday, 26 July 2026 at 22:17 UTC</li><br/><li><a href=\"https://github.com/afreeorange/wiki.nikhil.io.articles/edit/master/Local LLM Models.md\" title=\"Edit this article\">Edit this article</a></li><li><a href=\"https://github.com/afreeorange/bock\" title=\"View the project that generates this wiki on Github\">bock 6.1.2-alpha</a></li></ul></footer></div><script type=\"text/javascript\">\n        document.body.addEventListener(\n          \"keypress\", (e) => e.key === \"f\"\n          ? window.location.assign(\"/archive\")\n          : null);\n      </script></body></html>",
  "id": "b7f62ab3-a32f-5c29-bf0f-a6dad6612239",
  "modified": "2026-07-26T22:17:46Z",
  "revisions": [
    {
      "authorEmail": "anand.nikhil@gmail.com",
      "authorName": "afreeorange",
      "date": "2026-07-26T22:17:46Z",
      "id": "4137c860b15aea054d18e36dafd821a20324bada",
      "shortId": "4137c860",
      "subject": "Initial commit\n",
      "content": "On an M2 MacBook Air with 24GB memory. There's [`llmfit`](https://www.llmfit.org/) which I found to be extremely helpful and useful.\n\n## Running Models Locally\n\nTODO: There's a host of options.\n\n### Formats\n\nTODO: MLX, GGUF, etc\n\n### Nomenclature\n\nTODO: Reading files....\n\n### Llama.cpp\n\nThis is what I'm using. [Homepage](https://llama.app/) and [list of models](https://llama.app/models). It has a nice Web Interface.\n\n```bash\n# Start a web UI\nllama-server -hf bartowski/Qwen_Qwen3.5-2B-GGUF:Q4_K_M\n\n# Start a CLI\nllama-cli -hf bartowski/Qwen_Qwen3.5-2B-GGUF:Q4_K_M\n```\n\n### Trials\n\n- `bartowski/Qwen_Qwen3.5-2B-GGUF` -- First one! Was fine.\n- `bartowski/Qwen_Qwen3.5-9B-GGUF` -- Slower but fine.\n- `bartowski/Qwen_Qwen3.6-27B-GGUF` -- Did not run. Memory problems. Expected.\n\n## Model Terminology\n\nTODO:\n\n## Other\n\nModels are stored in `~/.cache/huggingface`.\n\n## Pi Agent Harness\n\n[This is a really cool project](https://pi.dev/). You can type `/model` and switch models easily (i.e. you're not just restricted to Claude Code, for instance) and this includes local models. Installed via\n\n```bash\nnpm install -g --ignore-scripts @earendil-works/pi-coding-agent\n\n# Now link it to Llama and it will autodiscover local models!\n\n# First serve the models. Note the host and port.\nllama serve --host localhost --port 8080\n\n# Then install the extension\npi install git:github.com/huggingface/pi-llama\n\n# Now run\npi\n```\n\nYou will see the local models when you type `/models` and search for \"llama-cpp\". [Here's a good post](https://roman.pt/posts/pi-dev-version/) on using it. You get very few tools and are expected to build the rest and place them in `$HOME/.pi`.\n\n## Resources\n\n- https://huggingface.co/bartowski\n- https://huggingface.co/Brooooooklyn\n- [Friends Don't Let Friends Use Ollama](https://sleepingrobots.com/dreams/stop-using-ollama/) -- Not sure what it offers above llama.cpp tbh. Great article with history.\n- [Running local models on an M4 with 24GB memory](https://jola.dev/posts/running-local-models-on-m4)\n"
    }
  ],
  "sizeInBytes": 2021,
  "source": "On an M2 MacBook Air with 24GB memory. There's [`llmfit`](https://www.llmfit.org/) which I found to be extremely helpful and useful.\n\n## Running Models Locally\n\nTODO: There's a host of options.\n\n### Formats\n\nTODO: MLX, GGUF, etc\n\n### Nomenclature\n\nTODO: Reading files....\n\n### Llama.cpp\n\nThis is what I'm using. [Homepage](https://llama.app/) and [list of models](https://llama.app/models). It has a nice Web Interface.\n\n```bash\n# Start a web UI\nllama-server -hf bartowski/Qwen_Qwen3.5-2B-GGUF:Q4_K_M\n\n# Start a CLI\nllama-cli -hf bartowski/Qwen_Qwen3.5-2B-GGUF:Q4_K_M\n```\n\n### Trials\n\n- `bartowski/Qwen_Qwen3.5-2B-GGUF` -- First one! Was fine.\n- `bartowski/Qwen_Qwen3.5-9B-GGUF` -- Slower but fine.\n- `bartowski/Qwen_Qwen3.6-27B-GGUF` -- Did not run. Memory problems. Expected.\n\n## Model Terminology\n\nTODO:\n\n## Other\n\nModels are stored in `~/.cache/huggingface`.\n\n## Pi Agent Harness\n\n[This is a really cool project](https://pi.dev/). You can type `/model` and switch models easily (i.e. you're not just restricted to Claude Code, for instance) and this includes local models. Installed via\n\n```bash\nnpm install -g --ignore-scripts @earendil-works/pi-coding-agent\n\n# Now link it to Llama and it will autodiscover local models!\n\n# First serve the models. Note the host and port.\nllama serve --host localhost --port 8080\n\n# Then install the extension\npi install git:github.com/huggingface/pi-llama\n\n# Now run\npi\n```\n\nYou will see the local models when you type `/models` and search for \"llama-cpp\". [Here's a good post](https://roman.pt/posts/pi-dev-version/) on using it. You get very few tools and are expected to build the rest and place them in `$HOME/.pi`.\n\n## Resources\n\n- https://huggingface.co/bartowski\n- https://huggingface.co/Brooooooklyn\n- [Friends Don't Let Friends Use Ollama](https://sleepingrobots.com/dreams/stop-using-ollama/) -- Not sure what it offers above llama.cpp tbh. Great article with history.\n- [Running local models on an M4 with 24GB memory](https://jola.dev/posts/running-local-models-on-m4)\n",
  "title": "Local LLM Models",
  "untracked": false,
  "uri": "/Local_LLM_Models",
  "relativePath": "Local LLM Models.md"
}
