llama-cookbook README

The project's README from github.com/meta-llama/llama-cookbook. As one markdown file: README.md.

Llama Cookbook

Llama Model cards Llama Documentation Hugging Face meta-llama

Llama Tools Syntethic Data Kit Llama Tools Syntethic Data Kit

Official Guide to building with Llama

Welcome to the official repository for helping you get started with inference, fine-tuning and end-to-end use-cases of building with the Llama Model family.

This repository covers the most popular community approaches, use-cases and the latest recipes for Llama Text and Vision models.

Latest Llama 4 recipes

Repository Structure:

Note: We recently did a refactor of the repo, archive-main is a snapshot branch from before the refactor

FAQ:

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

License

See the License file for Meta Llama 4 here and Acceptable Use Policy here

See the License file for Meta Llama 3.3 here and Acceptable Use Policy here

See the License file for Meta Llama 3.2 here and Acceptable Use Policy here

See the License file for Meta Llama 3.1 here and Acceptable Use Policy here

See the License file for Meta Llama 3 here and Acceptable Use Policy here

See the License file for Meta Llama 2 here and Acceptable Use Policy here

llama-cookbook (meta-llama/llama-cookbook)

Searching Database…

这是什么?Llama Cookbook——Meta 官方的示例集,教你基于 Llama 系列模型做开发:推理、微调、RAG 以及端到端的完整场景,大部分以 Jupyter 笔记本的形式编写。
它是一个需要安装的库,还是一组示例笔记本?是一个示例集而不是一个包:笔记本按主题分类整理,另外还有一个 src 文件夹,存放原始的 llama-recipes 库代码和微调相关的常见问题解答。
我该怎么运行这些示例?不需要安装任何东西——直接打开笔记本运行即可。先从 Getting Started 部分入手,它是推理、微调和 RAG 的参考示例,然后再去看各家服务商集成和端到端应用场景的文件夹。
打开笔记本之前,我的电脑上需要准备什么?需要有 Python 和 Jupyter Notebook。每个示例都有各自的依赖——仓库里涉及 LangChain、vLLM 这类技术栈——所以请查看你要打开的那个笔记本自己的依赖要求。
这个仓库目前有什么不稳定的地方吗?仓库最近重构过,所以有些链接失效了,还有几个文件夹缺失——FAQ 里承认了这一点,并指向 archive-main 分支,那里保留了重构前的目录结构。
这些代码能自由用在我自己的项目里吗?根据 GitHub 上的元数据,仓库本身采用 MIT 许可证,但模型不行:从 Llama 2 到 Llama 4 的每一代模型都附带 Meta 自己的许可证文件和一份可接受使用政策(Acceptable Use Policy),使用模型前必须接受这些条款。
这些示例覆盖了哪些 Llama 模型?涵盖 Llama 的文本和视觉模型。最新的示例针对 Llama 4——Scout 和 Maverick——而且仓库保留了从 Llama 2 起每一代模型的许可证文件。
现在有哪些 Llama 4 示例可以上手试试?包括 Llama API 入门、通过该 API 接入 WhatsApp、用 Llama 4 Scout 处理 500 万 token 的长上下文,以及用 Llama 4 Maverick 做论文分析或角色思维导图。
这个项目是不是以前叫 llama-recipes 的那个?是的——Meta 把 llama-recipes 改名为 llama-cookbook 并重构了仓库;重构前的快照保存在 archive-main 分支上。
Getting Started 和 End to End 这两个部分有什么区别?Getting Started 是参考示例:包含推理、微调和 RAG 的例子,用来掌握核心技能。End to End Use Cases 是跨领域的完整应用,而 3P Integrations 则收录了各家 Llama 服务商提供的示例。
Creator
meta-llama
Size
273.4 MB
Stars
18.6K
Age
3y
Commits · 90 Days