Mozilla-Ocho / llamafile

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

Linux: File does not contain a valid CIL image #373

Closed jeancf closed 5 months ago

jeancf commented 5 months ago

I am on Manjaro Linux. I downloaded llava-v1.5-7b-q4.llamafile and made it executable. When I execute ./llava-v1.5-7b-q4.llamafile -ngl 9999 I get

Cannot open assembly './llava-v1.5-7b-q4.llamafile': File does not contain a valid CIL image.

Am I missing a dependency maybe?

apirrone commented 5 months ago

I'm having the same issue on Ubuntu 22.04

jart commented 5 months ago

You both probably have WINE installed and WINE is trying using binfmt_misc to try and run your llamafiles. In that case, you need to install our ape binfmt_misc interpreter too. See the instructions in the "Gotchas" section of the README. Enjoy using llamafile!

apirrone commented 5 months ago

This fixed it, thanks !