Add Cosmopolitan libc for cross-platform binaries (like llamafile) #12375
Replies: 2 comments
-
Zero interest in this. Wow!! Well, I have made some progress. Here's an outline:
At this time, I'm not sure whether GPU support gets build correctly, but I am very happy just to have CPU inference as a first step. Here's a picture from the Windows Terminal app starting it up: And here's a picture of the UI in the browser, having replied to my first query: So here is the only real build problem I ran into. Cosmo's library doesn't seem to have std::fill in it. So I had to comment out a couple lines in So now, is anyone interested in this? The point is to have something like llamafile, but up to date with latest llama.cpp. Anyone???? |
Beta Was this translation helpful? Give feedback.
-
Gemma 3 1B Instruct running on a Pi 5 with a |
Beta Was this translation helpful? Give feedback.
-
Hi all,
I use and ship llamafile builds. Find them here:
https://huggingface.co/bradhutchings/Brads-LLMs
I am a huge fan of what the llamafile project has done, as should be obvious. I've tried to help out with the effort. For example, granite support. However... I need llamafile for cross-platform binaries, not for their take on what llama.cpp should be. I'm very happy with the plain llama.cpp server. I ship llamafile with my own completion (not chat) focused UI. I need support for latest models, like Gemma 3, quickly, not weeks or months after llama.cpp has it.
So, would anyone who has solid cmake skills like to help me adapt llama.cpp with an option to build with Cosmo? At least the core stuff and server example to start. I'd like to do it in a way that doesn't get in the way of the current build system. Ideally, it would be a flag for cmake or something to uncomment out in a configuration file.
I have had a little feature incorporated into llama.cpp -- the model loading screen in the server. So I'm not a newbie to this project. I just don't know where to start with integrating Cosmo and making it palatable for this project.
And I have no idea about the politics of these two projects. It seems like llamafile kinda spun off their own direction, and that was cool for awhile, but it's a PITA now.
Anyone interested?
-Brad
Beta Was this translation helpful? Give feedback.
All reactions