Skip to main content

Llama Cookbook: The Official Guide to building with Llama Models

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.

[!TIP] Popular getting started links:

[!TIP] Popular end to end recipes:

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

Repository Structure:

  • 3P Integrations: Getting Started Recipes and End to End Use-Cases from various Llama providers
  • End to End Use Cases: As the name suggests, spanning various domains and applications
  • Getting Started: Reference for inferencing, fine-tuning and RAG examples
  • src: Contains the src for the original llama-recipes library along with some FAQs for fine-tuning.

FAQ:

  • Q: What happened to llama-recipes?

A: We recently renamed llama-recipes to llama-cookbook

  • Q: Prompt Template changes for Multi-Modality?

A: Llama 3.2 follows the same prompt template as Llama 3.1, with a new special token <|image|> representing the input image for the multimodal models.

More details on the prompt templates for image reasoning, tool-calling and code interpreter can be found on the documentation website.

  • Q: I have some questions for Fine-Tuning, is there a section to address these?

A: Checkout the Fine-Tuning FAQ here

  • Q: Some links are broken/folders are missing:

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

  • Where can we find details about the latest models?

A: Official Llama models website

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 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

Metadata

Release files for llama-recipes 0.0.5.post2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for llama-recipes 0.0.5.post2
File Size Uploaded
llama_recipes-0.0.5.post2.tar.gz 57.9 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for llama-recipes 0.0.5.post2
File Interpreter ABI Platform
llama_recipes-0.0.5.post2-py3-none-any.whl Python 3 none any Details

Total release size: 58.0 MB

Release files / llama_recipes-0.0.5.post2.tar.gz

Download URL llama_recipes-0.0.5.post2.tar.gz
Size 57.9 MB
Tags Source
SHA-256 checksum
How to use checksums
1801849f11304b278be6488736ec2b2bb0b004c7930f51d803a8b97aa48c7a5a
BLAKE2b-256 checksum
How to use checksums
07968b97deb7cdeb0673c43e89d34abeeebd8e9004f6599e64c178cf617815d9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.10.14

Release files / llama_recipes-0.0.5.post2-py3-none-any.whl

Download URL llama_recipes-0.0.5.post2-py3-none-any.whl
Size 20.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3d8123defb537d2533a47e16bb0d9adf8467ecebbfd8d5675a8957b8a974066d
BLAKE2b-256 checksum
How to use checksums
100366ec5271d76f17e1a9674bdd8948083a21f4f9cada096622d8ce79ebad51
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.10.14

Release history Release notifications | RSS feed

This release

0.0.5.post2 This release

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page