BitNet3-8B-Converted / auto_registration.py
ejbejaranos's picture
Upload folder using huggingface_hub
4d061f7 verified
raw
history blame contribute delete
398 Bytes
from .configuration_bitnet import BitNetConfig
from .modeling_bitnet import BitNetModel
from transformers import AutoConfig, AutoModel
# Registrar clases en AutoConfig y AutoModel
AutoConfig.register("bitnet", BitNetConfig)
AutoModel.register(BitNetConfig, BitNetModel)
# Registrar para auto_class en el Hub
BitNetConfig.register_for_auto_class()
BitNetModel.register_for_auto_class("AutoModel")