News for hackers. Stuff that matters.
Re:Emacs-copilot: Large language model code completion for E... by jhellan on Sunday December 31, 2023 @07:59AM (#38823764)
Does anyone else get "Doing vfork: Exec format error"? Final gen. Intel Mac, 32 GB memory. I can run the llamafile from a shell. Tried both wizardcoder-python-13b and phi
Re:Emacs-copilot: Large language model code completion for E... by jart on Sunday December 31, 2023 @08:11AM (#38823812)
Try downloading https://cosmo.zip/pub/cosmos/bin/assimilate-x86_64.macho chmod +x'ing it and running `./assimilate-x86_64.macho foo.llamafile` to turn it into a native binary. It's strange that's happening, because Apple Libc is supposed to indirect execve() to /bin/sh when appropriate. You can also try using the Cosmo Libc build of GNU Emacs: https://cosmo.zip/pub/cosmos/bin/emacs
Re:Emacs-copilot: Large language model code completion for E... by jhellan on Sunday December 31, 2023 @08:59AM (#38824067)
Thank you
Re:Emacs-copilot: Large language model code completion for E... by jwr on Sunday December 31, 2023 @12:03PM (#38825476)
I get the same vfork message on Apple Silicon (M3), even though I can run the llamafile from the command line. And I can't find an "assimilate" binary for my machine.
Re:Emacs-copilot: Large language model code completion for E... by jart on Sunday December 31, 2023 @12:26PM (#38825677)
On Silicon I can guarantee that the Cosmo Libc emacs prebuilt binary will have zero trouble launching a llamafile process. https://cosmo.zip/pub/cosmos/bin/emacs You can also edit the `call-process` call so it launches `ape llamafile ...` rather than `llamafile ...` where the native ape interpreter can be compiled by wgetting https://raw.githubusercontent.com/jart/cosmopolitan/master/a... and running `cc -o ape ape-m1.c` and then sudo mv'ing it to /usr/local/bin/ape
Re:Emacs-copilot: Large language model code completion for E... by jwr on Sunday December 31, 2023 @12:49PM (#38825933)
Well, I'm really attached to my emacs-mac binaries, which get a lot of details right — but the "ape" approach worked fine, thanks!
Re:Emacs-copilot: Large language model code completion for E... by nemoniac on Sunday December 31, 2023 @08:41AM (#38823975)
Here's someone else getting something similar.

https://github.com/jart/emacs-copilot/issues/2