zaydzuhri's picture
Add files using upload-large-folder tool
ee2cdd2 verified
raw
history blame
429 Bytes
# -*- coding: utf-8 -*-
from transformers import AutoConfig, AutoModel, AutoModelForCausalLM
from fla.models.nsa.configuration_nsa import NSAConfig
from fla.models.nsa.modeling_nsa import NSAForCausalLM, NSAModel
AutoConfig.register(NSAConfig.model_type, NSAConfig)
AutoModel.register(NSAConfig, NSAModel)
AutoModelForCausalLM.register(NSAConfig, NSAForCausalLM)
__all__ = [
'NSAConfig', 'NSAModel', 'NSAForCausalLM',
]