teowu commited on
Commit
f75df80
1 Parent(s): cbd4518

Upload modeling_llama2.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. modeling_llama2.py +8 -0
modeling_llama2.py CHANGED
@@ -8,6 +8,14 @@ import torch.nn.functional as F
8
  import torch.utils.checkpoint
9
  from torch import nn
10
 
 
 
 
 
 
 
 
 
11
  import transformers
12
  from transformers.models.llama.modeling_llama import *
13
  from transformers.configuration_utils import PretrainedConfig
 
8
  import torch.utils.checkpoint
9
  from torch import nn
10
 
11
+
12
+ import copy
13
+ import os
14
+ import sys
15
+
16
+ dir_path = os.path.dirname(os.path.realpath(__file__))
17
+ sys.path.insert(0, dir_path)
18
+
19
  import transformers
20
  from transformers.models.llama.modeling_llama import *
21
  from transformers.configuration_utils import PretrainedConfig