{"by":"davidye324","descendants":9,"id":44429116,"kids":[44430501,44432321,44431292,44430225],"score":40,"text":"What it is\nA single 45 MB Windows .exe that embeds llama.cpp and a minimal Tk UI.\nCopy it (plus any .gguf model) to a flash drive, double-click on any Windows PC, and you’re chatting with an LLM—no admin rights, Cloud, or network.<p>Why I built it\nExisting “local LLM” GUIs assume you can pip install, pass long CLI flags, or download GBs of extras.<p>I wanted something my less-technical colleagues could run during a client visit by literally plugging in a USB drive.<p>How it works\nPyInstaller one-file build → bundles Python runtime, llama_cpp_python, and the UI into a single PE.<p>On first launch, it memory-maps the .gguf; subsequent prompts stream at ~20 tok&#x2F;s on an i7-10750H with gemma-3-1b-it-Q4_K_M.gguf (0.8 GB).<p>Tick-driven render loop keeps the UI responsive while llama.cpp crunches.<p>A parser bold-underlines every token that originated in the prompt; Ctrl+click pops a “source viewer” to trace facts. (Helps spot hallucinations fast.)","time":1751327017,"title":"Show HN: Local LLM Notepad – run a GPT-style model from a USB stick","type":"story","url":"https://github.com/runzhouye/Local_LLM_Notepad"}