Lightning-AI/pytorch-lightning

Update deepspeed activation checkpointing docs

Open

#17,621 opened on 2023幎5月12日

GitHub で芋る
 (1 comment) (0 reactions) (0 assignees)Python (3,233 forks)batch import
docshelp wantedstrategy: deepspeed

Repository metrics

Stars
 (26,687 stars)
PR merge metrics
 (平均マヌゞ 9d 15h) (30d で 3 merged PRs)

説明

📚 Documentation

In your documentation, you refer to the function deepspeed.checkpointing.checkpoint, but it looks like it does not exist (anymore?). Can you update that section?

While we're at it, can you provide a more common use-case as an example? The guide warns against wrapping an entire model, but having a pretrained language model from transformers is probably the most common use case. What if someone is just using GPT-2 or T5 with no further mathematical layers? What should get wrapped then?

cc @borda @awaelchli

コントリビュヌタヌガむド