Kowsher commited on
Commit
f212723
·
1 Parent(s): 3dc3074

Update ChatFalcon.py

Browse files
Files changed (1) hide show
  1. ChatFalcon.py +4 -0
ChatFalcon.py CHANGED
@@ -1271,3 +1271,7 @@ class FalconForQuestionAnswering(FalconPreTrainedModel):
1271
  AutoConfig.register("falcon", FalconConfig)
1272
  AutoModel.register(FalconConfig, FalconModel)
1273
  AutoModelForCausalLM.register(FalconConfig, FalconForCausalLM)
 
 
 
 
 
1271
  AutoConfig.register("falcon", FalconConfig)
1272
  AutoModel.register(FalconConfig, FalconModel)
1273
  AutoModelForCausalLM.register(FalconConfig, FalconForCausalLM)
1274
+
1275
+ FalconConfig.register_for_auto_class()
1276
+ FalconModel.register_for_auto_class("AutoModel")
1277
+ FalconForCausalLM.register_for_auto_class("AutoModelForCausalLM")