-
Notifications
You must be signed in to change notification settings - Fork 231
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
add llamafile 🦙📁 #871
Comments
I found something interesting If you go to https://api.github.com/repos/Mozilla-Ocho/llamafile/releases/latest and check the |
made the following script to extract the llamafile download url from the release notes async function getLatestLlamafileRelease() {
const url =
"https://api.github.com/repos/Mozilla-Ocho/llamafile/releases/latest";
try {
const response = await fetch(url);
if (!response.ok) {
throw new Error(`HTTP error! status: ${response.status}`);
}
const data = await response.json();
const tag = data["tag_name"];
const assets = data["assets"];
assets.forEach((asset) => {
if (asset["name"] === `llamafile-${tag}`) {
console.log(
// the download url is in asset["browser_download_url"]
`Download URL: ${asset["browser_download_url"]}`
);
}
});
} catch (error) {
console.error("There was a problem fetching the data:", error);
}
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
llamafile is a local app (similar to llama.cpp) to run llms in a distributed way from a single file
library can be used on both
.gguf
and.llamafile
filesrepo : https://github.com/Mozilla-Ocho/llamafile
snippets
linux and mac
windows
(download and rename it using .exe)
gguf
notes
.\llamafile-0.8.13 -m foo.llamafile
to get around the limit (similar to GGUF snippet)./llava-v1.5-7b-q4.llamafile
it'll launch an HTTP server, open a tab in your desktop's browser, and you can chat with the model, upload an image file, ask it to analyze what it sees, etc.The text was updated successfully, but these errors were encountered: