Skip to content
프로젝트

소개

LLM용 분산 학습기

AI 및 머신러닝

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
+1
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

Megatron-LLM

This library enables pre-training and fine-tuning of large language models (LLMs) at scale. Our repository is a modification of the original Megatron-LM codebase by Nvidia.

Added key features include:

  • architectures supported: Llama, Llama 2, Code Llama, Falcon and Mistral
  • support training of large models (70B Llama 2, 65B Llama 1, 34B Code Llama, 40B Falcon and Mistral) on commodity hardware on multiple nodes
  • 3-way parallelism: tensor parallel, pipeline parallel and data parallel training (inherited from Megatron)
  • full pretraining, finetuning and instruct tuning support
  • Support for special tokens & tokenizers
  • grouped-query attention (GQA) and multi-query attention (MQA)
  • Rotary Position Embeddings (RoPE), RMS layer norm, Lima dropout
  • RoPE scaling for longer attention context support
  • FlashAttention 2
  • BF16 / FP16 training
  • WandB integration
  • Metrics support: Ease to add custom metrics to evaluate on the validation set while training
  • Conversion to and from Hugging Face hub

Documentation

Take a look at the online documentation.

Alternatively, build the docs from source:

cd docs/
pip install -r requirements.txt
make html

Example models trained with Megatron-LLM

(Let us know about yours!)

Citation

If you use this software please cite it:

@software{epfmgtrn,
  author       = {Alejandro Hernández Cano  and
                  Matteo Pagliardini  and
                  Andreas Köpf  and
                  Kyle Matoba  and
                  Amirkeivan Mohtashami  and
                  Xingyao Wang  and
                  Olivia Simin Fan  and
                  Axel Marmet  and
                  Deniz Bayazit  and
                  Igor Krawczuk  and
                  Zeming Chen  and
                  Francesco Salvi  and
                  Antoine Bosselut  and
                  Martin Jaggi},
  title        = {epfLLM Megatron-LLM},
  year         = 2023,
  url          = {https://github.com/epfLLM/Megatron-LLM}
}

관련 프로젝트 살펴보기

불러오는 중…