From 367782eeeeaf66aaf98dcf30854df102c8ae3fa5 Mon Sep 17 00:00:00 2001 From: Mohammed Rabil Date: Thu, 4 Jan 2024 13:18:23 +0530 Subject: [PATCH] Update llamafile.yml: Put gotchas back as it is resulting in binary exec error --- .github/workflows/llamafile.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/llamafile.yml b/.github/workflows/llamafile.yml index 3c97c04..6cd65c8 100644 --- a/.github/workflows/llamafile.yml +++ b/.github/workflows/llamafile.yml @@ -45,6 +45,13 @@ jobs: restore-keys: | ${{ runner.os }}- + - name: llamafile gotchas error + run: | + 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" + - name: Find model name id: model_name run: |