<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Herko Coomans on Medium]]></title>
        <description><![CDATA[Stories by Herko Coomans on Medium]]></description>
        <link>https://medium.com/@herko.coomans?source=rss-8794fd123eaf------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ETlW9md5BhClew3rl6XfGQ.gif</url>
            <title>Stories by Herko Coomans on Medium</title>
            <link>https://medium.com/@herko.coomans?source=rss-8794fd123eaf------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 22:13:23 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@herko.coomans/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[A non-coder’s journey to build a local 2nd brain (take 2: MacBook M4)]]></title>
            <link>https://medium.com/@herko.coomans/a-non-coders-journey-to-build-a-local-2nd-brain-take-2-macbook-m4-a079701c21ab?source=rss-8794fd123eaf------2</link>
            <guid isPermaLink="false">https://medium.com/p/a079701c21ab</guid>
            <category><![CDATA[local-ai-solutions]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[macbook-air]]></category>
            <category><![CDATA[anythingllm]]></category>
            <dc:creator><![CDATA[Herko Coomans]]></dc:creator>
            <pubDate>Sat, 02 May 2026 15:31:01 GMT</pubDate>
            <atom:updated>2026-05-02T15:31:01.240Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2VAeEoJwxlaGqNluLm6rIg.png" /></figure><h3>From a failed NAS to a working MacBook</h3><p><strong>Some of you may remember my </strong><a href="https://herkocoomans.nl/playing-with-ai-on-my-own-machine/"><strong>earlier attempt</strong></a><strong> to run a local AI instance on my Synology NAS. It failed, spectacularly, because the Celeron CPU in the DS920+ doesn’t support AVX2 instructions and the whole vector-database stack that modern RAG systems depend on just refuses to run without them. I wrote it up, shrugged, and shelved the idea.</strong></p><p>Well. A new MacBook Air arrived on my desk. The M4 one, with 24GB of unified memory. And suddenly the hardware excuse was gone.</p><p>So I picked the project back up. But this time with a much clearer goal than “let’s see if I can run an LLM at home.” This time I actually had a real problem to solve.</p><h3>The problem: keeping up with the world, manually</h3><p>My day job at the Ministry of Health is in international digital health. A big part of that is staying on top of what other countries are doing — what policies they’re passing, what standards they’re adopting, where they’re ahead of us, where they’re behind, and where they’re taking an entirely different route. I read a <em>lot</em> of policy documents. PDFs, white papers, ministerial decrees, European directives, WHO frameworks, OECD reports. In Dutch, English, French, German. Sometimes I want to answer a question like <em>“what is the current state of interoperability legislation in France, and how does it compare to the Dutch WEGIZ?”</em> and I have to go dig through folders of documents to construct the answer.</p><p>This is the kind of thing an AI should be good at. And it is — but not the cloud kind. I am not going to paste ministry working documents into ChatGPT. I am not going to paste them into Claude either, or into Gemini, or into any other service whose data policy I don’t fully control. (Quick plug for <a href="https://herkocoomans.nl/taking-control-over-my-own-data/">my earlier series on data sovereignty</a>: the whole point is to <em>not</em> feed trusted-third-party algorithms with data I don’t want to give them.)</p><p>So: it has to be local. Fully local. The documents stay on my machine. The analysis stays on my machine. No network calls during normal use. The only time my laptop is allowed to reach out to the internet is when I ask it to check whether one of my tools needs an update — and even then it’s only hitting the GitHub releases API, not sending my documents anywhere.</p><h3>Why the MacBook Air M4 actually works</h3><p>The short version: Apple Silicon’s unified memory architecture is quietly brilliant for running quantised language models. The M4 chip with 24GB of RAM gives me about 200 GB/s of memory bandwidth, which is why a 14-billion-parameter model in Q4 quantisation runs <em>faster</em> on this thing than it would on a comparably-priced discrete GPU. And it does it without spinning up fans, without drawing 300W, and without my wife asking what I’m mining in the study.</p><p>The memory budget works out like this:</p><ul><li>qwen2.5:14b — the main analytical model, multilingual, handles NL/EN/FR/DE natively — about 9 GB</li><li>phi3.5:3.8b — a smaller, faster model I use for mechanical extraction tasks — about 2.3 GB</li><li>nomic-embed-text — embeddings for comparing documents to each other — about 300 MB</li><li>Supporting stuff (the graph database, the SQLite files, Python, AnythingLLM itself) — maybe 5 GB</li><li><strong>Remaining headroom: about 7 GB</strong></li></ul><p>So we’re comfortably inside the envelope. With a bit to spare for the browser tabs I’ll inevitably leave open.</p><h3>What I actually want to build</h3><p>I want a library. A proper, old-fashioned library, with a bit of a cataloguing obsession, but run by a slightly distracted librarian who reads everything that comes in and writes down what it’s about — and who, crucially, remembers what the Dutch position is on every topic, so that every new document gets silently compared against it. Over time this library becomes not just a pile of documents but a <em>structured picture</em> of what each country thinks about each aspect of digital health, and where they agree or diverge from us.</p><p>I’ve given it a name: the <strong>Global Digital Health Library</strong>, or GDHL. (Yes, I know, I am very good at naming things. Next week I’ll name my plants.) It’s named after the shelves of policy documents I already have, physically and digitally, and the ambition to do something more useful with them than just file them.</p><h3>What’s coming next</h3><p>In the next posts I’ll walk through the architecture. There are two interesting ideas at the core of it, borrowed from recent research: <strong>Cog-RAG</strong>, which is a way of teaching the retrieval step to think before it searches, and <strong>Mymory</strong>, which is a way of giving the system a form of persistent memory with governance attached — so that over time it doesn’t just accumulate noise, but actually <em>learns</em> which positions are authoritative and flags when something new contradicts them. I’ll try to explain both without resorting to jargon, though I’ll probably fail.</p><p>I’ll also reflect on what I’m learning from actually <em>using</em> this thing. Which, as always when I build anything for myself, is turning out to be a lot about how policies actually work, much more than about how the code works.</p><p>Stay tuned.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a079701c21ab" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A non-coder’s journey to build a local 2nd brain (part 1: LLM on a NAS)]]></title>
            <link>https://medium.com/@herko.coomans/a-non-coders-journey-to-build-a-local-2nd-brain-part-1-llm-on-a-nas-390852db27eb?source=rss-8794fd123eaf------2</link>
            <guid isPermaLink="false">https://medium.com/p/390852db27eb</guid>
            <category><![CDATA[anythingllm]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[synology]]></category>
            <dc:creator><![CDATA[Herko Coomans]]></dc:creator>
            <pubDate>Thu, 30 Apr 2026 14:18:21 GMT</pubDate>
            <atom:updated>2026-04-30T14:18:21.943Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JOoRIzDu8lsJnSK3VmDy_A.png" /></figure><p><strong>Everyone and their grandmother is fiddling with AI chatbots, vibe-coding tools and video generators -or so the flood of posts, vlogs, memes and messages make it seem. I decided to dive in the deep end of the pool and see if I can create a local second brain specifically tailored to my professional and personal use cases and needs, with some strict limitations on what I can and can’t use. In these posts, I journal my progress.</strong></p><p><strong>Some context<br></strong>I don’t code. I don’t know maths very well. I have no deep understanding of AI models. I don’t use the commandline if I can avoid it. I don’t run an online business. I don’t make any money with AI. I am not a native English speaker. <br>I am curious about AI in general, and it’s role in shaping our society in particular. I am a long time technology enthusiast, built my own PC’s back in the ‘90s and early ’00s, I follow the mainstream and can carry a nerdy conversation. I work for government, so I am very privacy conscious and my second brain has to work locally on hardware I control.</p><p><strong>First attempt: leveraging my NAS hardware<br></strong>I<strong> </strong>decided to set up a local Large Language Model (LLM) instance on my Synology NAS.</p><p><strong>Step 1: Selecting the Right Tools<br></strong>My goal is to experiment with large language models for text analysis and generation, specifically in the context of digital health policy analysis. I want to explore how these models can be used to identify trends, patterns, and insights from large datasets of health-related texts.</p><p>In my search for suitable tools, I came across three options: h2o.ai, Jan.AI, and AnythingLLM. Each has its own strengths and weaknesses, which I’ll outline below:</p><ul><li><a href="https://h2o.ai/">h2o.ai</a>: H2O is a machine learning platform that provides pre-trained models for various NLP tasks, including text classification, sentiment analysis, and language modeling. Its benefits include ease of use, flexibility, and scalability. However, it may not be as comprehensive as other options.</li><li><a href="https://jan.ai/">Jan.AI</a>: Jan.AI is an AI-powered research platform that enables users to analyze and generate text based on large datasets. It offers features such as natural language processing, entity recognition, and topic modeling. Its benefits include ease of use, speed, and scalability. However, it may not be as customizable as other options.</li><li><a href="https://anythingllm.com/">AnythingLLM</a>: AnythingLLM is an open-source LLM framework that allows users to train and fine-tune their own models for specific tasks. Its benefits include customization, flexibility, and adaptability. However, it may require more technical expertise and computational resources.</li></ul><p>Comparing these tools with my use case requirements:</p><ul><li>h2o.ai: While h2o.ai provides pre-trained models, they may not be tailored to the specific task of digital health policy analysis.</li><li>Jan.AI: Jan.AI is easy to use and scalable, but it may not offer the level of customization I need for my specific use case.</li><li>AnythingLLM: AnythingLLM offers customization and flexibility, which aligns with my requirements.</li></ul><p>I decided to opt for AnythingLLM due to its ability to be customized for my specific use case. However, before setting up AnythingLLM, I also considered the importance of data privacy and security.</p><p><strong>Step 2: Preparing My Synology NAS<br></strong>Before setting up the LLM instance on my NAS, I needed to upgrade the RAM. According to the Reddit community, upgrading the DS920+ with 16GB of RAM is possible, but requires careful attention to the specific requirements for the RAM module.</p><p>To upgrade the RAM, you will need:</p><ul><li>RAM Module: The Synology DS920+ supports up to 32GB of RAM, but only in specific configurations. You can use a single 16GB DDR4 SO-DIMM module or two 8GB DDR4 SO-DIMM modules.</li><li>Frequency and Voltage: The RAM module must have a frequency of 2400MHz and a voltage of 1.2V.</li><li>Timings: The RAM module must support the following timings: CAS Latency (CL) 16, RAS to CAS (tRCD) 10, Write Recovery Time (tWR) 20.</li></ul><p>Failure to meet these requirements may result in compatibility issues or even damage to the NAS. Make sure to check the specifications of your RAM module before upgrading.</p><p><strong>Step 3: Setting Up AnythingLLM<br></strong>After installing Docker on my NAS, I focused on setting up AnythingLLM. According to the official documentation, the installation process involves several steps:</p><ol><li><strong>Pulling the Docker Image</strong>: Run the command docker pull anythingllm/anything-llm to pull the latest version of the AnythingLLM Docker image.</li><li><strong>Creating a New Container</strong>: Run the command docker run -d --name anything-llm -p 3001:3001 anythingllm/anything-llm to create a new container and map port 3001 to the host machine.</li><li><strong>Configuring the Environment Variables</strong>: You need to set up environment variables for the LLM instance, such as LLM_ MODEL and LLM_TOKEN. You can do this by adding the following lines to your docker-compose.yml file:</li></ol><pre>version: &#39;3&#39;<br>services:<br>  anything-llm:<br>    image: anythingllm/anything-llm<br>    ports:<br>       - &quot;3000:3000&quot;<br>    environment:<br>       - LLM_MODEL=your-model-name<br>       - LLM_TOKEN=your-token</pre><ol><li><strong>Running the Container</strong>: Run the command docker-compose up to start the container and make it available on port 3001.</li></ol><p><strong>Loading LLM Models<br></strong>After setting up AnythingLLM, I encountered another challenge:</p><ul><li>Challenge 4: Loading LLM Models into Ollama: To load the desired LLM models into Ollama, I had to SSH into the Docker instance and set up secure access rights for my NAS. Once I did this, I was able to load the Llama3.2 3b model into Ollama.</li></ul><p><strong>The Failure<br></strong>Unfortunately, after completing these steps, I discovered that the system as I set it up does not work. According to an issue report on GitHub (<a href="https://github.com/Mintplex-Labs/anything-llm/issues/1331">https://github.com/Mintplex-Labs/anything-llm/issues/1331</a>), there is a known bug in the AnythingLLM Docker image that prevents it from loading LLM models correctly.</p><p>As I delved deeper into the issue, I discovered that the problem wasn’t with the LLM model loading or processing, but rather with the underlying hardware requirements of AnythingLLM. Specifically, it relies on a database called Lancedb, which has specific CPU requirements.</p><p><strong>What is Lancedb?<br></strong>Lancedb is a high-performance database designed for large-scale natural language processing tasks. It’s used by AnythingLLM to store and manage its models, allowing for efficient querying and retrieval of information. However, Lancedb requires a specific set of CPU instructions to function properly.</p><p><strong>AVX (Advanced Vector Extensions)<br></strong>AVX is a set of instructions introduced by Intel in 2011 that enables CPUs to perform complex vector operations more efficiently. It’s designed to improve the performance of scientific simulations, data compression, and other compute-intensive tasks. AVX allows for wider registers, which can store multiple sets of data simultaneously, making it possible to perform calculations on large datasets more quickly.</p><p><strong>AVX2 (Advanced Vector Extensions 2)<br></strong>AVX2 is an extension of the original AVX instruction set, introduced by Intel in 2013. It offers improved performance and functionality over its predecessor, with support for additional instructions and features. AVX2 enables CPUs to perform even more complex vector operations, making it essential for many modern applications, including machine learning and data science.</p><p><strong>The Issue<br></strong>The problem arises because the Synology NAS’s Intel Celeron 4125 processor does not support AVX or AVX2 instructions. This means that the Lancedb database, which relies on these instructions to function, cannot be used with this hardware configuration. As a result, the Docker image crashes and fails to start, causing the AnythingLLM instance to stop working.</p><p><strong>Conclusion<br></strong>In conclusion, the failure of the AnythingLLM instance was due to the CPU requirements of Lancedb, which demands support for AVX2 instructions. Unfortunately, the Synology NAS’s hardware does not meet these requirements, making it incompatible with Lancedb and preventing the Docker image from running successfully. This highlights the importance of considering the specific hardware requirements of software applications when setting up complex systems like LLMs.</p><p><em>Originally posted on </em><a href="https://herkocoomans.nl/playing-with-ai-on-my-own-machine/"><em>herkocoomans.nl</em></a><em>, edited for context.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=390852db27eb" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>