opencompass / models /retnet /__init__.py
msj19's picture
Add files using upload-large-folder tool
b64301c verified
Raw History Blame Contribute Delete
515 Bytes
# -*- coding: utf-8 -*-
from transformers import AutoConfig, AutoModel, AutoModelForCausalLM
from fla.models.retnet.configuration_retnet import RetNetConfig
from fla.models.retnet.modeling_retnet import RetNetForCausalLM, RetNetModel
AutoConfig.register(RetNetConfig.model_type, RetNetConfig, exist_ok=True)
AutoModel.register(RetNetConfig, RetNetModel, exist_ok=True)
AutoModelForCausalLM.register(RetNetConfig, RetNetForCausalLM, exist_ok=True)
__all__ = ['RetNetConfig', 'RetNetForCausalLM', 'RetNetModel']