Team Ai
Apppublic

xdecoder/Instruct-X-Decoder

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