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

llamafile distribution? #1

Open
mskyttner opened this issue Jan 25, 2024 · 0 comments
Open

llamafile distribution? #1

mskyttner opened this issue Jan 25, 2024 · 0 comments

Comments

@mskyttner
Copy link

I tried these steps and seem to build a llamafile:

cd ~/bin

# download necessary tools and data
curl -L -o llamafile https://github.com/Mozilla-Ocho/llamafile/releases/download/0.6.1/llamafile-0.6.1
curl -L -o zipalign https://github.com/Mozilla-Ocho/llamafile/releases/download/0.6.1/zipalign-0.6.1
curl -L -o ducksql.gguf https://huggingface.co/motherduckdb/DuckDB-NSQL-7B-v0.1-GGUF/resolve/main/DuckDB-NSQL-7B-v0.1-q8_0.gguf?download=true

# verify/test 
chmod +x llamafile zipalign
./llamafile -m ducksql.gguf

# make a single file "ape" executable server
cp llamafile ducksql.llamafile
echo -e "-m\nducksql.gguf\n--host\n0.0.0.0\n..." > .args
zipalign -j0 ducksql.llamafile ducksql.gguf .args

# verify/test
./ducksql.llamafile

It seems to work. Would it make sense to add a GHA to release such a portable llamafile distribution?

Screenshot:

image

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

No branches or pull requests

1 participant