``` llamafile:用单个文件分发和运行LLM ```
llamafile: Distribute and Run LLMs with a Single File

原始链接: https://github.com/mozilla-ai/llamafile

Mozilla.ai 已经采纳了 llamafile 项目,以简化大型语言模型 (LLM) 的使用。Llamafile 将 LLM 封装成单个可执行文件——“llamafile”,允许用户在大多数电脑上本地运行它们,*无需*复杂的安装。 这旨在大幅提高开放 LLM 对开发者和最终用户的可访问性。 该项目结合了 llama.cpp 和 Cosmopolitan Libc,将流程简化为单个文件下载和执行。Mozilla 现在正在计划代码库现代化,并积极寻求用户反馈,了解 llamafile 的哪些方面最有价值,以及哪些改进最有益。 Llamafile 采用 Apache 2.0 许可,对 llama.cpp 的修改采用 MIT 许可,以确保未来的兼容性。您可以下载一个示例并快速上手——说明和文档可在 mozilla-ai.github.io/llamafile 上找到。

Hacker News 新闻 | 过去 | 评论 | 提问 | 展示 | 招聘 | 提交 登录 llamafile: 使用单个文件分发和运行 LLM (github.com/mozilla-ai) 12 分,stefankuehnel 发表于 5 小时前 | 隐藏 | 过去 | 收藏 | 讨论 指南 | 常见问题 | 列表 | API | 安全 | 法律 | 申请 YC | 联系方式 搜索:
相关文章

原文

We want to hear from you! Mozilla.ai recently adopted the llamafile project, and we're planning an approach for codebase modernization. Please share what you find most valuable about llamafile and what would make it more useful for your work. Read more via the blog and add your voice to the discussion here.

ci status

[line drawing of llama animal head in front of slightly open manilla folder filled with files]

llamafile lets you distribute and run LLMs with a single file. (announcement blog post)

Our goal is to make open LLMs much more accessible to both developers and end users. We're doing that by combining llama.cpp with Cosmopolitan Libc into one framework that collapses all the complexity of LLMs down to a single-file executable (called a "llamafile") that runs locally on most computers, with no installation.


llamafile is a Mozilla Builders project.

Download and run your first llamafile in minutes:

# Download an example model (LLaVA 1.5 7B)
curl -LO https://huggingface.co/Mozilla/llava-v1.5-7b-llamafile/resolve/main/llava-v1.5-7b-q4.llamafile

# Make it executable (macOS/Linux/BSD)
chmod +x llava-v1.5-7b-q4.llamafile

# Run it (opens browser automatically)
./llava-v1.5-7b-q4.llamafile

Windows users: Rename the file to add .exe extension before running.

Check the full documentation in the docs/ folder or online at mozilla-ai.github.io/llamafile, or directly jump into one of the following subsections:

While the llamafile project is Apache 2.0-licensed, our changes to llama.cpp are licensed under MIT (just like the llama.cpp project itself) so as to remain compatible and upstreamable in the future, should that be desired.

The llamafile logo on this page was generated with the assistance of DALL·E 3.

Star History Chart

联系我们 contact @ memedata.com