|
Download README.md from thread13/LFM3-1.7B-llamafile: direct link, hf CLI and curl.
- Browser
- Download file 4.61 kB
-
https://huggingface.co/thread13/LFM3-1.7B-llamafile/resolve/main/README.md
- Command line
-
hf download hf://thread13/LFM3-1.7B-llamafile/README.md
-
curl -L -o README.md https://huggingface.co/thread13/LFM3-1.7B-llamafile/resolve/main/README.md
4.61 kB
| base_model: | |
| - LiquidAI/LFM3-1.7B-GGUF | |
| tags: | |
| - llamafile | |
| - gguf | |
| - text-to-text | |
| - conversational | |
| - text-generation-inference | |
| notes: | |
| - llamafile-0.10 | |
| ## About | |
| * ***Note(1)*** `2026-11-06`: `*.llamafile` files are uploaded as `*.llamafile.exe`, to simplify running it on Windows. | |
| * NB: It is not unlikely (see note(2) below) that Windows will do everything in its power to prevent one from running its binary; while it was made in good faith, please make your own judgement, run antivirus scans, try it in a VM first, etc etc -- _the author ran the file on a few platforms before uploading,_ ***but takes no responsibility for any consequences of running this*** -- _<u>if it kills all your kittens, it's on you and please don't come back complaining.</u>_ | |
| * ***Note(2)*** `2026-11-06`: 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](https://huggingface.co/mozilla-ai/llamafile_0.10/tree/main)._ 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. | |
| * Also, a prevous test have shown that only <u>one</u> 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](https://github.com/mozilla-ai/llamafile/blob/main/docs/quickstart.md) is a universal ([APE](https://justine.lol/ape.html)) single-file executable, | |
| which is based on [llama.cpp](https://github.com/ggml-org/llama.cpp/releases)-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. | |
| * <s>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!</s> | |
| * _(this does not seem to be the case anymore)_ | |
| * NB(2): there's also a cli completion interface (`--cli`), if you wish -- [check the docs!](https://mozilla-ai.github.io/llamafile/) | |
| ## How to use: | |
| * https://github.com/mozilla-ai/llamafile/blob/main/docs/running_llamafile.md | |
| * https://github.com/mozilla-ai/llamafile/blob/main/docs/quickstart.md | |
| ## Building references: | |
| * https://github.com/mozilla-ai/llamafile/blob/main/docs/creating_llamafiles.md | |
| * https://huggingface.co/LiquidAI/LFM3-1.7B-GGUF | |
| <!-- | |
| ## Default arguments: | |
| For example, one might want to try these: | |
| * https://unsloth.ai/docs/models/qwen3.5 | |
| ``` | |
| 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): | |
| * https://unsloth.ai/docs/models/qwen3.5#how-to-enable-or-disable-reasoning-and-thinking | |
| ``` | |
| --chat-template-kwargs '{"enable_thinking":true}' | |
| ``` | |
| ### Extra recommendations -- try the following if generation falls into an endless loop: | |
| * https://unsloth.ai/docs/models/qwen3.5 (same source) | |
| ``` | |
| presence_penalty = 0.0 to 1.5 | |
| ``` | |
| --> | |
| ## Quirks: | |
| * https://github.com/mozilla-ai/llamafile/issues/373 | |
| * https://github.com/mozilla-ai/llamafile/tree/0.9.0?tab=readme-ov-file#gotchas-and-troubleshooting | |
| 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)](https://github.com/jart/cosmopolitan/blob/master/ape/specification.md#3-ape-debug-magic): | |
| ```sh | |
| sh /path/to/llamafile -h # and if you can now see the help output, then likely it just worked ) | |
| ``` | |