mirror of https://github.com/hpcaitech/ColossalAI
[doc] add deprecated warning on doc Basics section (#3754)
* Update colotensor_concept.md * Update configure_parallelization.md * Update define_your_config.md * Update engine_trainer.md * Update initialize_features.md * Update model_checkpoint.md * Update colotensor_concept.md * Update configure_parallelization.md * Update define_your_config.md * Update engine_trainer.md * Update initialize_features.md * Update model_checkpoint.mdpull/3795/head
parent
72688adb2f
commit
d9393b85f1
|
@ -2,6 +2,8 @@
|
|||
|
||||
Author: [Jiarui Fang](https://github.com/feifeibear), [Hongxin Liu](https://github.com/ver217) and [Haichen Huang](https://github.com/1SAA)
|
||||
|
||||
> ⚠️ The information on this page is outdated and will be deprecated.
|
||||
|
||||
**Prerequisite:**
|
||||
- [Colossal-AI Overview](../concepts/colossalai_overview.md)
|
||||
- [Distributed Training](../concepts/distributed_training.md)
|
||||
|
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
Author: Shenggui Li, Siqi Mai
|
||||
|
||||
> ⚠️ The information on this page is outdated and will be deprecated. Please check [Booster Plugins](../basics/booster_plugins.md) for more information.
|
||||
|
||||
**Prerequisite:**
|
||||
- [Distributed Training](../concepts/distributed_training.md)
|
||||
- [Paradigms of Parallelism](../concepts/paradigms_of_parallelism.md)
|
||||
|
|
|
@ -2,6 +2,9 @@
|
|||
|
||||
Author: Guangyang Lu, Shenggui Li, Siqi Mai
|
||||
|
||||
> ⚠️ The information on this page is outdated and will be deprecated. Please check [Booster API](../basics/booster_api.md) for more information.
|
||||
|
||||
|
||||
**Prerequisite:**
|
||||
- [Distributed Training](../concepts/distributed_training.md)
|
||||
- [Colossal-AI Overview](../concepts/colossalai_overview.md)
|
||||
|
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
Author: Shenggui Li, Siqi Mai
|
||||
|
||||
> ⚠️ The information on this page is outdated and will be deprecated. Please check [Booster API](../basics/booster_api.md) for more information.
|
||||
|
||||
**Prerequisite:**
|
||||
- [Initialize Features](./initialize_features.md)
|
||||
|
||||
|
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
Author: Shenggui Li, Siqi Mai
|
||||
|
||||
> ⚠️ The information on this page is outdated and will be deprecated. Please check [Booster API](../basics/booster_api.md) for more information.
|
||||
|
||||
**Prerequisite:**
|
||||
- [Distributed Training](../concepts/distributed_training.md)
|
||||
- [Colossal-AI Overview](../concepts/colossalai_overview.md)
|
||||
|
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
Author : Guangyang Lu
|
||||
|
||||
> ⚠️ The information on this page is outdated and will be deprecated. Please check [Booster Checkpoint](../basics/booster_checkpoint.md) for more information.
|
||||
|
||||
**Prerequisite:**
|
||||
- [Launch Colossal-AI](./launch_colossalai.md)
|
||||
- [Initialize Colossal-AI](./initialize_features.md)
|
||||
|
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
Author: [Jiarui Fang](https://github.com/feifeibear), [Hongxin Liu](https://github.com/ver217) and [Haichen Huang](https://github.com/1SAA)
|
||||
|
||||
> ⚠️ 此页面上的信息已经过时并将被废弃。
|
||||
|
||||
**Prerequisite:**
|
||||
- [Colossal-AI Overview](../concepts/colossalai_overview.md)
|
||||
- [Distributed Training](../concepts/distributed_training.md)
|
||||
|
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
作者: Shenggui Li, Siqi Mai
|
||||
|
||||
> ⚠️ 此页面上的信息已经过时并将被废弃。请在[Booster插件](../basics/booster_plugins.md)页面查阅更新。
|
||||
|
||||
**预备知识:**
|
||||
- [分布式训练](../concepts/distributed_training.md)
|
||||
- [并行技术](../concepts/paradigms_of_parallelism.md)
|
||||
|
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
作者: Guangyang Lu, Shenggui Li, Siqi Mai
|
||||
|
||||
> ⚠️ 此页面上的信息已经过时并将被废弃。请在[Booster API](../basics/booster_api.md)页面查阅更新。
|
||||
|
||||
**预备知识:**
|
||||
- [分布式训练](../concepts/distributed_training.md)
|
||||
- [Colossal-AI 总览](../concepts/colossalai_overview.md)
|
||||
|
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
作者: Shenggui Li, Siqi Mai
|
||||
|
||||
> ⚠️ 此页面上的信息已经过时并将被废弃。请在[Booster API](../basics/booster_api.md)页面查阅更新。
|
||||
|
||||
**预备知识:**
|
||||
- [初始化功能](./initialize_features.md)
|
||||
|
||||
|
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
作者: Shenggui Li, Siqi Mai
|
||||
|
||||
> ⚠️ 此页面上的信息已经过时并将被废弃。请在[Booster API](../basics/booster_api.md)页面查阅更新。
|
||||
|
||||
**预备知识:**
|
||||
- [分布式训练](../concepts/distributed_training.md)
|
||||
- [Colossal-AI 总览](../concepts/colossalai_overview.md)
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
# 模型检查点
|
||||
# 模型Checkpoint
|
||||
|
||||
作者 : Guangyang Lu
|
||||
|
||||
> ⚠️ 此页面上的信息已经过时并将被废弃。请在[Booster Checkpoint](../basics/booster_checkpoint.md)页面查阅更新。
|
||||
|
||||
**预备知识:**
|
||||
- [Launch Colossal-AI](./launch_colossalai.md)
|
||||
- [Initialize Colossal-AI](./initialize_features.md)
|
||||
|
@ -13,9 +15,9 @@
|
|||
|
||||
## 简介
|
||||
|
||||
本教程将介绍如何保存和加载模型检查点。
|
||||
本教程将介绍如何保存和加载模型Checkpoint。
|
||||
|
||||
为了充分利用Colossal-AI的强大并行策略,我们需要修改模型和张量,可以直接使用 `torch.save` 或者 `torch.load` 保存或加载模型检查点。在Colossal-AI中,我们提供了应用程序接口实现上述同样的效果。
|
||||
为了充分利用Colossal-AI的强大并行策略,我们需要修改模型和张量,可以直接使用 `torch.save` 或者 `torch.load` 保存或加载模型Checkpoint。在Colossal-AI中,我们提供了应用程序接口实现上述同样的效果。
|
||||
|
||||
但是,在加载时,你不需要使用与存储相同的保存策略。
|
||||
|
||||
|
@ -24,7 +26,7 @@
|
|||
### 保存
|
||||
|
||||
有两种方法可以使用Colossal-AI训练模型,即使用engine或使用trainer。
|
||||
**注意我们只保存 `state_dict`.** 因此,在加载检查点时,需要首先定义模型。
|
||||
**注意我们只保存 `state_dict`.** 因此,在加载Checkpoint时,需要首先定义模型。
|
||||
|
||||
#### 同 engine 保存
|
||||
|
||||
|
|
Loading…
Reference in New Issue