mirror of
https://github.com/modelscope/modelscope.git
synced 2026-09-01 19:49:03 +02:00
[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:
committed by
yingda.chen
parent
ace8af9246
commit
371530ed1d
Binary file not shown.
@@ -13,7 +13,7 @@ class Models(object):
|
||||
|
||||
# nlp models
|
||||
bert = 'bert'
|
||||
palm2_0 = 'palm2.0'
|
||||
palm = 'palm-v2'
|
||||
structbert = 'structbert'
|
||||
|
||||
# audio models
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user