Spaces:
Running
on
T4
Running
on
T4
File size: 377 Bytes
b03a8f2 |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
from transformers import PretrainedConfig
from omegaconf import OmegaConf
class CamnAudioConfig(PretrainedConfig):
model_type = "camn_audio"
def __init__(self, config_obj=None, **kwargs):
if config_obj is not None:
cfg_dict = OmegaConf.to_container(config_obj, resolve=True)
kwargs.update(cfg_dict)
super().__init__(**kwargs)
|