# __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) | |
# __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) | |