Skip to content

Distribute and run LLMs with a single file.

Add gotchas to README mentioning WINE and WSL

Justine Tunney3702c05b6955
diff --git a/README.md b/README.md
index e62d5b24..de07bc59 100644
--- a/README.md
+++ b/README.md
@@ -68,8 +68,9 @@ If you use zsh and have trouble running llamafile, try saying `sh -c
./llamafile`. This is due to a bug that was fixed in zsh 5.9+. The same
is the case for Python `subprocess`, old versions of Fish, etc.
-On Linux `binfmt_misc` has been known to cause problems. You can fix
-that by installing the actually portable executable interpreter.
+On some Linux systems, you might get errors relating to `run-detectors`
+or WINE. This is due to `binfmt_misc` registrations. You can fix that by
+adding an additional registration for APE file format llamafile uses:
```sh
sudo wget -O /usr/bin/ape https://cosmo.zip/pub/cosmos/bin/ape-$(uname -m).elf
@@ -92,6 +93,12 @@ curl -o mistral.gguf https://huggingface.co/TheBloke/Mistral-7B-Instruct-v0.1-GG
.\llamafile.exe -m mistral.gguf
```
+On WSL, it's recommended that the WIN32 interop feature be disabled:
+
+```sh
+sudo sh -c "echo -1 > /proc/sys/fs/binfmt_misc/WSLInterop"
+```
+
On any platform, if your llamafile process is immediately killed, check
if you have CrowdStrike and then ask to be whitelisted.