opencompass / models /hgrn2 /__init__.py
msj19's picture
Add files using upload-large-folder tool
b64301c verified
Raw History Blame Contribute Delete
499 Bytes
# -*- coding: utf-8 -*-
from transformers import AutoConfig, AutoModel, AutoModelForCausalLM
from fla.models.hgrn2.configuration_hgrn2 import HGRN2Config
from fla.models.hgrn2.modeling_hgrn2 import HGRN2ForCausalLM, HGRN2Model
AutoConfig.register(HGRN2Config.model_type, HGRN2Config, exist_ok=True)
AutoModel.register(HGRN2Config, HGRN2Model, exist_ok=True)
AutoModelForCausalLM.register(HGRN2Config, HGRN2ForCausalLM, exist_ok=True)
__all__ = ['HGRN2Config', 'HGRN2ForCausalLM', 'HGRN2Model']