Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

run-detectors: unable to find an interpreter for ./llava-v1.5-7b-q4-server.llamafile #47

Closed
asmith26 opened this issue Dec 3, 2023 · 4 comments
Labels

Comments

@asmith26
Copy link

asmith26 commented Dec 3, 2023

Hi there,

I've followed the QuickStart, but unfortunately when I get to step 4 I get the following error:

$ ./llava-v1.5-7b-q4-server.llamafile 
run-detectors: unable to find an interpreter for ./llava-v1.5-7b-q4-server.llamafile

Not sure if I'm missing something? Many thanks for any help (and this amazing lib!)

@jart
Copy link
Collaborator

jart commented Dec 4, 2023

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 the APE file format llamafile uses:

sudo wget -O /usr/bin/ape https://cosmo.zip/pub/cosmos/bin/ape-$(uname -m).elf
sudo chmod +x /usr/bin/ape
sudo sh -c "echo ':APE:M::MZqFpD::/usr/bin/ape:' >/proc/sys/fs/binfmt_misc/register"
sudo sh -c "echo ':APE-jart:M::jartsr::/usr/bin/ape:' >/proc/sys/fs/binfmt_misc/register"

See also the Gotchas section of the README.

You should be good to go now. Enjoy llamafile! If you like it or have any other feedback later, then we're happy to hear about it.

@jart jart closed this as completed Dec 4, 2023
@jart jart added the question label Dec 4, 2023
@asmith26
Copy link
Author

asmith26 commented Dec 6, 2023

Many thanks for the detailed response @jart that worked (I seemed to have to also run sudo chown MYUSER:MYUSER /usr/bin/ape).

Regarding feedback, this is amazing!! I love the concept of being able to run an entire LLM from a single file, and it works really well (I'm very impressed with it's ability to understand/debug code!)

Regarding other feedback, a feature I would love but not sure how feasible it is speech input. (Looks like this might also be of interest to others, e.g. #17).

Many thanks again for your help, work, and an amazing lib :)

@jart
Copy link
Collaborator

jart commented Dec 8, 2023

That's so nice to hear. Feedback like that is what I live for. As for speech input, what I want you to do is leave a comment in #17 saying you want it. That'll subscribe you for updates on any progress. It also helps us plan which things to focus on. The same applies to any other issue that interests you, and other folks reading this are encouraged to do the same.

@raphael10-collab
Copy link

raphael10-collab commented Jun 27, 2024

@jart

How to make these #47 (comment) commands long-lasting, and not required to be applied again after rebooting?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants