|
|
@ -3,12 +3,12 @@ |
|
|
|
## 📌 Table of Contents |
|
|
|
## 📌 Table of Contents |
|
|
|
|
|
|
|
|
|
|
|
- [🔌 Extensions](#-extensions) |
|
|
|
- [🔌 Extensions](#-extensions) |
|
|
|
- [📌 Table of Contents](#-table-of-contents) |
|
|
|
- [📌 Table of Contents](#-table-of-contents) |
|
|
|
- [📚 Introduction](#-introduction) |
|
|
|
- [📚 Introduction](#-introduction) |
|
|
|
- [🪅 Design](#-design) |
|
|
|
- [🪅 Design](#-design) |
|
|
|
- [🛠 API Usage](#-api-usage) |
|
|
|
- [🛠 API Usage](#-api-usage) |
|
|
|
- [🏗 Write a customized extension](#-write-a-customized-extension) |
|
|
|
- [🏗 Write a customized extension](#-write-a-customized-extension) |
|
|
|
- [✏️ Acknowledgement](#️-acknowledgement) |
|
|
|
- [✏️ Acknowledgement](#️-acknowledgement) |
|
|
|
|
|
|
|
|
|
|
|
## 📚 Introduction |
|
|
|
## 📚 Introduction |
|
|
|
|
|
|
|
|
|
|
@ -46,12 +46,12 @@ kernel = CPUAdamLoader().load() |
|
|
|
|
|
|
|
|
|
|
|
- Case 2: Load a specific kernel |
|
|
|
- Case 2: Load a specific kernel |
|
|
|
|
|
|
|
|
|
|
|
This case applies if you are familar with the extensions available. |
|
|
|
This case applies if you are familiar with the extensions available. |
|
|
|
|
|
|
|
|
|
|
|
```python |
|
|
|
```python |
|
|
|
from colossalai.kernel.kernel_loader import CPUAdamLoader |
|
|
|
from colossalai.kernel.kernel_loader import CPUAdamLoader |
|
|
|
|
|
|
|
|
|
|
|
# load the kernel by giving the kernal name |
|
|
|
# load the kernel by giving the kernel name |
|
|
|
kernel = CPUAdamLoader().load(ext_name="cpu_adam_arm") |
|
|
|
kernel = CPUAdamLoader().load(ext_name="cpu_adam_arm") |
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|