Skip to main content

Llama-cookbook is a companion project to the Llama models. It's goal is to provide examples to quickly get started with fine-tuning for domain adaptation and how to run inference for the fine-tuned models.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llama_cookbook-0.0.5.post1.tar.gz (58.0 MB view details)

Uploaded Source

Built Distribution

llama_cookbook-0.0.5.post1-py3-none-any.whl (70.1 kB view details)

Uploaded Python 3

File details

Details for the file llama_cookbook-0.0.5.post1.tar.gz.

File metadata

  • Download URL: llama_cookbook-0.0.5.post1.tar.gz
  • Upload date:
  • Size: 58.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.14

File hashes

Hashes for llama_cookbook-0.0.5.post1.tar.gz
Algorithm Hash digest
SHA256 19b9b323bdc1ef6910a0a393f3340e590c6fe1f221b72c59512d6c2ae8d9944d
MD5 8d1609d112327050e615d75f962996fe
BLAKE2b-256 befe2a2655a29037f5c1f539f637f8e4f219f3f40adbcd933ab60e4a44cb8a5b

See more details on using hashes here.

File details

Details for the file llama_cookbook-0.0.5.post1-py3-none-any.whl.

File metadata

File hashes

Hashes for llama_cookbook-0.0.5.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 e70d5673cc8be8a69e26394acf260379a53477eb247a6f5c8dd15858f8ad00d8
MD5 4f05721ad7918aaecd8cf33abf2a36f6
BLAKE2b-256 d867d8e94e6630bf96bec7943f8070ec958f64d3581a57b950e2b095e737edc2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page