KitsuVp commited on
Commit
04da2a7
·
verified ·
1 Parent(s): d081347

Update modeling_neollm.py

Browse files
Files changed (1) hide show
  1. modeling_neollm.py +7 -7
modeling_neollm.py CHANGED
@@ -30,6 +30,7 @@ from transformers.utils.import_utils import (
30
  )
31
  from configuration_neollm import NeoLLMConfig
32
 
 
33
 
34
  if is_causal_conv1d_available():
35
  from causal_conv1d import causal_conv1d_fn, causal_conv1d_update
@@ -1016,6 +1017,12 @@ class NeoLLMForCausalLM(NeoLLMPreTrainedModel, GenerationMixin):
1016
  attentions=outputs.attentions,
1017
  )
1018
 
 
 
 
 
 
 
1019
 
1020
  __all__ = [
1021
  "NeoLLMForCausalLM",
@@ -1025,10 +1032,3 @@ __all__ = [
1025
  "FANLayer",
1026
  ]
1027
 
1028
- # ==================== AUTOMODEL REGISTRATION ====================
1029
- from transformers import AutoConfig, AutoModel, AutoModelForCausalLM
1030
-
1031
- # Register the configuration and model for AutoClass support
1032
- AutoConfig.register("neollm", NeoLLMConfig)
1033
- AutoModel.register(NeoLLMConfig, NeoLLMModel)
1034
- AutoModelForCausalLM.register(NeoLLMConfig, NeoLLMForCausalLM)
 
30
  )
31
  from configuration_neollm import NeoLLMConfig
32
 
33
+ from transformers import AutoConfig, AutoModel, AutoModelForCausalLM
34
 
35
  if is_causal_conv1d_available():
36
  from causal_conv1d import causal_conv1d_fn, causal_conv1d_update
 
1017
  attentions=outputs.attentions,
1018
  )
1019
 
1020
+ # ==================== AUTOMODEL REGISTRATION ====================
1021
+
1022
+ # Register the configuration and model for AutoClass support
1023
+ AutoConfig.register("neollm", NeoLLMConfig)
1024
+ AutoModel.register(NeoLLMConfig, NeoLLMModel)
1025
+ AutoModelForCausalLM.register(NeoLLMConfig, NeoLLMForCausalLM)
1026
 
1027
  __all__ = [
1028
  "NeoLLMForCausalLM",
 
1032
  "FANLayer",
1033
  ]
1034