chore: add checkpoint import
Browse files
model.py
CHANGED
@@ -6,6 +6,7 @@
|
|
6 |
import torch
|
7 |
import torch.nn as nn
|
8 |
import torch.nn.functional as F
|
|
|
9 |
|
10 |
from .utils import print_rank_0, column_split
|
11 |
from .cache import InferenceParams, RecurrentInferenceParams
|
|
|
6 |
import torch
|
7 |
import torch.nn as nn
|
8 |
import torch.nn.functional as F
|
9 |
+
from torch.utils.checkpoint import checkpoint
|
10 |
|
11 |
from .utils import print_rank_0, column_split
|
12 |
from .cache import InferenceParams, RecurrentInferenceParams
|