Skip to content

Commit 49d6af9

Browse files
committed
Merge branch 'main' of https://github.com/meta-llama/llama-recipes into llama-triage-tool
2 parents cd31ee9 + 04766dc commit 49d6af9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+3452
-651
lines changed

.github/scripts/spellcheck_conf/wordlist.txt

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1400,6 +1400,19 @@ sqlite
14001400
customerservice
14011401
fn
14021402
ExecuTorch
1403+
LLMScore
1404+
RecursiveCharacterTextSplitter
1405+
TPD
1406+
TPM
1407+
Tianjun
1408+
Zhang
1409+
distractor
1410+
distractors
1411+
frac
1412+
numRefusal
1413+
totalQA
1414+
DirectoryLoader
1415+
SitemapLoader
14031416
nf
14041417
quant
14051418
DLAI
@@ -1418,3 +1431,23 @@ ipython
14181431
CPUs
14191432
modelUpgradeExample
14201433
guardrailing
1434+
MaaS
1435+
MFU
1436+
BBH
1437+
GPQA
1438+
IFEVAL
1439+
IFeval
1440+
bos
1441+
gpqa
1442+
ifeval
1443+
lighteval
1444+
sqrt
1445+
wis
1446+
evals
1447+
mmlu
1448+
parsers
1449+
reproducibility
1450+
openhathi
1451+
sarvam
1452+
subtask
1453+
acc

README.md

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Llama Recipes: Examples to get started using the Llama models from Meta
22
<!-- markdown-link-check-disable -->
3-
The 'llama-recipes' repository is a companion to the [Meta Llama](https://github.com/meta-llama/llama-models) models. We support the latest version, [Llama 3.1](https://github.com/meta-llama/llama-models/blob/main/models/llama3_1/MODEL_CARD.md), in this repository. The goal is to provide a scalable library for fine-tuning Meta Llama models, along with some example scripts and notebooks to quickly get started with using the models in a variety of use-cases, including fine-tuning for domain adaptation and building LLM-based applications with Llama and other tools in the LLM ecosystem. The examples here showcase how to run Llama locally, in the cloud, and on-prem.
3+
The 'llama-recipes' repository is a companion to the [Meta Llama](https://github.com/meta-llama/llama-models) models. We support the latest version, [Llama 3.1](https://github.com/meta-llama/llama-models/blob/main/models/llama3_1/MODEL_CARD.md), in this repository. The goal is to provide a scalable library for fine-tuning Meta Llama models, along with some example scripts and notebooks to quickly get started with using the models in a variety of use-cases, including fine-tuning for domain adaptation and building LLM-based applications with Llama and other tools in the LLM ecosystem. The examples here showcase how to run Llama locally, in the cloud, and on-prem.
44

55
<!-- markdown-link-check-enable -->
66
> [!IMPORTANT]
@@ -31,7 +31,7 @@ The 'llama-recipes' repository is a companion to the [Meta Llama](https://github
3131
> ```
3232
> Each message gets trailed by an `<|eot_id|>` token before a new header is started, signaling a role change.
3333
>
34-
> More details on the new tokenizer and prompt template can be found [here](https://llama.meta.com/docs/model-cards-and-prompt-formats/llama3_1).
34+
> More details on the new tokenizer and prompt template can be found [here](https://llama.meta.com/docs/model-cards-and-prompt-formats/llama3_1).
3535
3636
>
3737
> [!NOTE]
@@ -55,6 +55,7 @@ The 'llama-recipes' repository is a companion to the [Meta Llama](https://github
5555
- [Repository Organization](#repository-organization)
5656
- [`recipes/`](#recipes)
5757
- [`src/`](#src)
58+
- [Supported Features](#supported-features)
5859
- [Contributing](#contributing)
5960
- [License](#license)
6061
@@ -160,6 +161,30 @@ Contains modules which support the example recipes:
160161
| [utils](src/llama_recipes/utils/) | Utility files for:<br/> - `train_utils.py` provides training/eval loop and more train utils.<br/> - `dataset_utils.py` to get preprocessed datasets.<br/> - `config_utils.py` to override the configs received from CLI.<br/> - `fsdp_utils.py` provides FSDP wrapping policy for PEFT methods.<br/> - `memory_utils.py` context manager to track different memory stats in train loop. |
161162

162163

164+
## Supported Features
165+
The recipes and modules in this repository support the following features:
166+
167+
| Feature | |
168+
| ---------------------------------------------- | - |
169+
| HF support for inference ||
170+
| HF support for finetuning ||
171+
| PEFT ||
172+
| Deferred initialization ( meta init) ||
173+
| Low CPU mode for multi GPU ||
174+
| Mixed precision ||
175+
| Single node quantization ||
176+
| Flash attention ||
177+
| Activation checkpointing FSDP ||
178+
| Hybrid Sharded Data Parallel (HSDP) ||
179+
| Dataset packing & padding ||
180+
| BF16 Optimizer (Pure BF16) ||
181+
| Profiling & MFU tracking ||
182+
| Gradient accumulation ||
183+
| CPU offloading ||
184+
| FSDP checkpoint conversion to HF for inference ||
185+
| W&B experiment tracker ||
186+
187+
163188
## Contributing
164189

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

0 commit comments

Comments
 (0)