Text Generation
Transformers
PyTorch
Safetensors
English
stripedhyena
custom_code
Zymrael commited on
Commit
8b401ae
1 Parent(s): 4277797

chore: add checkpoint import

Browse files
Files changed (1) hide show
  1. model.py +1 -0
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