Mozilla-Ocho / llamafile

Distribute and run LLMs with a single file.
https://llamafile.ai
Other
20.58k stars 1.04k forks source link

Bug: APE is running on WIN32 inside WSL - whisperfile - zsh #579

Open baptistecs opened 1 month ago

baptistecs commented 1 month ago

Contact Details

No response

What happened?

https://huggingface.co/Mozilla/whisperfile

wget https://huggingface.co/Mozilla/whisperfile/resolve/main/whisper-tiny.en.llamafile wget https://huggingface.co/Mozilla/whisperfile/resolve/main/raven_poe_64kb.mp3 chmod +x whisper-tiny.en.llamafile ./whisper-tiny.en.llamafile -f raven_poe_64kb.mp3 -pc

error: APE is running on WIN32 inside WSL. You need to run: sudo sh -c 'echo -1 > /proc/sys/fs/binfmt_misc/WSLInterop'

sudo cat /proc/sys/fs/binfmt_misc/WSLInterop enabled interpreter /init flags: PF offset 0 magic 4d5a

sudo sh -c 'echo -1 > /proc/sys/fs/binfmt_misc/WSLInterop'

sudo cat /proc/sys/fs/binfmt_misc/WSLInterop cat: /proc/sys/fs/binfmt_misc/WSLInterop: No such file or directory

sudo sh -c "echo -1 > /proc/sys/fs/binfmt_misc/WSLInterop-late" ./whisper-tiny.en.llamafile -f raven_poe_64kb.mp3 -pc zsh: exec format error: ./whisper-tiny.en.llamafile

sudo cat /proc/sys/fs/binfmt_misc/WSLInterop-late cat: /proc/sys/fs/binfmt_misc/WSLInterop-late: No such file or directory

It works fine using bash instead of zsh

Version

whisperfile v0.8.13

What operating system are you seeing the problem on?

Windows

Relevant log output

No response

baptistecs commented 1 month ago

Not sure if these issues are related: https://github.com/Mozilla-Ocho/llamafile/issues/100 https://github.com/Mozilla-Ocho/llamafile/issues/356