Skip to content

Commit 12da109

Browse files
committed
Merge branch 'main' into lmm_finetune
2 parents bb990be + 3e39ed0 commit 12da109

File tree

66 files changed

+3619
-783
lines changed

Some content is hidden

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

66 files changed

+3619
-783
lines changed

.github/scripts/spellcheck_conf/wordlist.txt

Lines changed: 36 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
@@ -1415,3 +1428,26 @@ xH
14151428
unquantized
14161429
eom
14171430
ipython
1431+
CPUs
1432+
modelUpgradeExample
1433+
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: 28 additions & 3 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
@@ -145,7 +146,7 @@ Contains examples are organized in folders by topic:
145146
[use_cases](./recipes/use_cases)|Scripts showing common applications of Meta Llama3
146147
[3p_integrations](./recipes/3p_integrations)|Partner owned folder showing common applications of Meta Llama3
147148
[responsible_ai](./recipes/responsible_ai)|Scripts to use PurpleLlama for safeguarding model outputs
148-
[experimental](./experimental)|Meta Llama implementations of experimental LLM techniques
149+
[experimental](./recipes/experimental)|Meta Llama implementations of experimental LLM techniques
149150

150151
### `src/`
151152

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

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "llama-recipes"
7-
version = "0.0.2"
7+
version = "0.0.3"
88
authors = [
99
{ name="Hamid Shojanazeri", email="[email protected]" },
1010
{ name="Matthias Reso", email="[email protected]" },

0 commit comments

Comments
 (0)