Missing module: torch.utils.checkpoint

#13
by hiyouga - opened
Files changed (1) hide show
  1. modeling_baichuan.py +1 -0
modeling_baichuan.py CHANGED
@@ -8,6 +8,7 @@ from threading import Thread
8
  from typing import List, Optional, Tuple, Union
9
 
10
  import torch
 
11
  from torch import nn
12
  from torch.nn import CrossEntropyLoss
13
  from torch.nn import functional as F
 
8
  from typing import List, Optional, Tuple, Union
9
 
10
  import torch
11
+ import torch.utils.checkpoint
12
  from torch import nn
13
  from torch.nn import CrossEntropyLoss
14
  from torch.nn import functional as F