appledora commited on
Commit
9e1b20a
1 Parent(s): 6f6cf5a

Upload recastmlp_llama/__init__.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. recastmlp_llama/__init__.py +31 -0
recastmlp_llama/__init__.py ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from transformers.utils import (
2
+ OptionalDependencyNotAvailable,
3
+ _LazyModule,
4
+ is_torch_available,
5
+ )
6
+
7
+ try:
8
+ if not is_torch_available():
9
+ raise OptionalDependencyNotAvailable()
10
+ except OptionalDependencyNotAvailable:
11
+ pass
12
+ else:
13
+ from .modeling_recastmlp_llama import (
14
+ RECASTMLP_llamaModel,
15
+ RECASTMLP_LlamaForCausalLM,
16
+ )
17
+ from .configuration_recastmlp_llama import RECASTMLP_llama
18
+
19
+ from transformers import AutoConfig, AutoModel, AutoModelForCausalLM
20
+
21
+ # Register your models with Auto classes
22
+ AutoConfig.register("recastmlp_llama", RECASTMLP_llama)
23
+ AutoModel.register(RECASTMLP_llama, RECASTMLP_llamaModel)
24
+ AutoModelForCausalLM.register(RECASTMLP_llama, RECASTMLP_LlamaForCausalLM)
25
+
26
+ _import_structure = {
27
+ "configuration_recastmlp_llama": ["RECASTMLP_llama"],
28
+ "modeling_recastmlp_llama": ["RECASTMLP_llamaModel", "RECASTMLP_LlamaForCausalLM"],
29
+ }
30
+
31
+ __all__ = ["RECASTMLP_llamaModel", "RECASTMLP_LlamaForCausalLM", "RECASTMLP_llama"]