CoolFace
Apppublic

xdecoder/Instruct-X-Decoder

sourceHugging Faceafl-3.0updated 3y agoView on Hugging Face
163likes
build.py10 linesDownload Raw Back to architectures
1from .registry import model_entrypoints2from .registry import is_model3 4def build_model(config, **kwargs):5    model_name = config['MODEL']['NAME']6 7    if not is_model(model_name):8        raise ValueError(f'Unkown model: {model_name}')9 10    return model_entrypoints(model_name)(config, **kwargs)