gsar78 commited on
Commit
d60c0f1
1 Parent(s): 7f0fb87

Update __init__.py

Browse files
Files changed (1) hide show
  1. __init__.py +5 -1
__init__.py CHANGED
@@ -1,4 +1,8 @@
1
  # __init__.py
2
  from .modeling_custom import CustomConfig, CustomModel
 
3
 
4
- __all__ = ["CustomConfig", "CustomModel"]
 
 
 
 
1
  # __init__.py
2
  from .modeling_custom import CustomConfig, CustomModel
3
+ from transformers import AutoConfig, AutoModel, CONFIG_MAPPING, MODEL_MAPPING
4
 
5
+ CONFIG_MAPPING.update({"custom_model": CustomConfig})
6
+ MODEL_MAPPING.update({"custom_model": CustomModel})
7
+
8
+ __all__ = ["CustomConfig", "CustomModel"]