← 开源
huggingface

large_language_model_training_playbook

An open collection of implementation tips, tricks and resources for training large language models

TutorialsLLM fundamentalsPython
在 GitHub 打开
增长势头
+024 小时新增 Star0.0%
505
Star
22
Fork
+0
本周
2
贡献者
创建于 2023-03-06 · 更新于 2026-09-26 · 今日第 16034 名
主要开发者
README

📖 The Large Language Model Training Playbook

This playbook is a companion to the LLM Training Handbook which contains a lot more details and scripts.

An open collection of implementation tips, tricks and resources for training large language models.

The following covers questions related to various topics which are interesting or challenging when training large language models.

Deciding on a model architecture

Deciding on a model parallelism strategy

Deciding on the model size

Scaling laws

Trade-off of large language model sizes

Issues and questions related to tensor precision

What to chose between fp32, fp16, bf16

Mixed-precisions for optimizers, weights, specifics modules

How to finetune and integrate a model trained in a precision in another precision

Selecting training hyper-parameters and model initializations

Learning rate and learning rate schedules

Questions on batch size

Maximizing throughput

Avoiding, recovering from and understanding instabilities

Detecting instabilities early

Training tips to reduce instabilities

Issues with data and data processing

Debugging software and hardware failures

Tips on what metrics to follow during the training

Resources