llamafiles
Collection
Small and mostly lightweight GGUF models embedded into an Actually Portable Executable format, for simple local PC AI tests • 8 items • Updated
2026-10-26: Ternary-Bonsai-2-9B-Q2_0.llamafile uploaded as Ternary-Bonsai-2-9B-Q2_0.llamafile.exe, to simplify running it on Windows.2026-10-26: apparently, VirusTotal does not like the llamafiles and marks them "suspicious". There's not much I can do there, I guess -- by the looks of it, it also slaps the same stamp on Mozilla AI' own llamafiles. So let us wait untill the other scanners try it; until then -- feel free to e.g. ClamAV scan them after download, and/or also feel free to redo it yourself and observe the same reaction from the scanners.A llamafile is a universal (APE) single-file executable, which is based on llama.cpp-built binaries. It contains an embedded LLM model and can provide a console and/or a web interface to chat with it.
--chat), or a web server (--server), or -- by default -- both. --host 127.0.0.1 to make it private to your system only!--cli), if you wish -- check the docs!For example, one might want to try these:
temperature=0.6, top_p=0.95, top_k=20, min_p=0.0, presence_penalty=0.0, repetition_penalty=1.0
// recommended (unsloth) for coding in thinking mode:
--ctx-size 16384 --temp 0.6 --top-p 0.95 --top-k 20 --min-p 0.00 \
--chat-template-kwargs '{"enable_thinking":true}'
// recommended (unsloth) for reasoning tasks:
--ctx-size 16384 --temp 1.0 --top-p 0.95 --top-k 20 --min-p 0.00 \
--chat-template-kwargs '{"enable_thinking":true}'
presence_penalty = 0.0 to 2.0
For some quirks and workarounds (like how to make this run on WSL), see the second link above; in particular, if you are seeing a message like this:
Cannot open assembly '...': File does not contain a valid CIL image.
The reason might be that you have wine installed and it tries to run the executable (and fails). There are workarounds available -- see above; one simple way to bypass this and make llamafiles work on a Unix system (e.g. Linux and/or MacOS X) is to run them as shell scripts (yes, they are shell scripts):
sh /path/to/llamafile -h # and if you can now see the help output, then likely it just worked )
Base model
Qwen/Qwen3.5-9B-Base