[to #42322933] update nlp models name in metainfo

Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/9134657
This commit is contained in:
zhangzhicheng.zzc
2022-06-23 11:58:22 +08:00
committed by yingda.chen
parent ace8af9246
commit 371530ed1d
3 changed files with 2 additions and 2 deletions

View File

@@ -13,7 +13,7 @@ class Models(object):
# nlp models
bert = 'bert'
palm2_0 = 'palm2.0'
palm = 'palm-v2'
structbert = 'structbert'
# audio models

View File

@@ -8,7 +8,7 @@ from ..builder import MODELS
__all__ = ['PalmForTextGeneration']
@MODELS.register_module(Tasks.text_generation, module_name=Models.palm2_0)
@MODELS.register_module(Tasks.text_generation, module_name=Models.palm)
class PalmForTextGeneration(Model):
def __init__(self, model_dir: str, *args, **kwargs):