opencompass / models /lightnet /__init__.py
msj19's picture
Add files using upload-large-folder tool
b64301c verified
Raw History Blame Contribute Delete
547 Bytes
# -*- coding: utf-8 -*-
from transformers import AutoConfig, AutoModel, AutoModelForCausalLM
from fla.models.lightnet.configuration_lightnet import LightNetConfig
from fla.models.lightnet.modeling_lightnet import LightNetForCausalLM, LightNetModel
AutoConfig.register(LightNetConfig.model_type, LightNetConfig, exist_ok=True)
AutoModel.register(LightNetConfig, LightNetModel, exist_ok=True)
AutoModelForCausalLM.register(LightNetConfig, LightNetForCausalLM, exist_ok=True)
__all__ = ['LightNetConfig', 'LightNetForCausalLM', 'LightNetModel']