custom-model / __init__.py
toind's picture
Update __init__.py
919b526 verified
raw
history blame contribute delete
241 Bytes
# __init__.py
from transformers import AutoConfig, AutoModel
from .custom_model import CustomConfig, CustomModel
# Register the custom classes
AutoConfig.register("custom_model", CustomConfig)
AutoModel.register(CustomConfig, CustomModel)