About

  • Update(1) 2026-04-24: apparently, VirusTotal does not like the llamafiles and marks them "suspicious". There's not much I can do there, I guess. Let us wait untill the other scanners try it; until then -- feel free to e.g. ClamAV scan them after download, but also feel free to redo it yourself following the links provided: your result will be binary compatible with what is uploaded here.
  • Update(2) 2026-04-24: hmm, the "suspicious" flag seems to be cleared on some binaries. Good. May be just give it time to update the databases.
  • Update(3) 2026-04-24: testing virustotal reaction on other files, see Qwen3.5-4B-llamafile/README.md
    • Also, apparently only one of all those 75 engines (named "SecureAge") marks this binary as "malicious", and its comment says "Acronis (Static ML)" -- whatever that means. Well, the binary does have an embedded LLM (which is like the whole point here), so may be this is what causes this misunderstanding.

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.

  • "and/or" here has a literal meaning -- one can either run a console chat (--chat), or a web server (--server), or -- by default -- both.
  • NB(1): by default the web server attempts to listen on all available interfaces -- run it as --host 127.0.0.1 to make it private to your system only!
  • NB(2): there's also a cli completion interface (--cli), if you wish -- check the docs!

How to use:

Building references:

Default arguments:

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 \

To enable "thinking mode" (slower but better results):

--chat-template-kwargs '{"enable_thinking":true}'

Extra recommendations -- try the following if generation falls into an endless loop:

presence_penalty = 0.0 to 2.0

Quirks:

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; if that does not work, please open an issue, and when I see it (which might not happen immediately), we will think of something.

Downloads last month
10
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for thread13/Qwen3.5-2B-llamafile

Finetuned
Qwen/Qwen3.5-2B
Finetuned
(272)
this model