provide allow_remote

优化模版文件,提升独立repo接入成功率,降低用户阅读文档带来的歧义
Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/12354329
* provide allow_remote
This commit is contained in:
liugao.lg
2023-04-18 14:41:51 +08:00
committed by wenmeng.zwm
parent a40c6f452e
commit 4225048dbf

View File

@@ -122,10 +122,11 @@ class ${pipeline_name}(Pipeline):
# Tips: usr_config_path is the temporary save configuration location after upload modelscope hub, it is the model_id
usr_config_path = '${configuration_path}'
config = Config({
'framework': 'pytorch',
'task': '${task_name}',
'model': {'type': 'my-custom-model'},
"pipeline": {"type": "my-custom-pipeline"}
"framework": 'pytorch',
"task": '${task_name}',
"model": {'type': 'my-custom-model'},
"pipeline": {"type": "my-custom-pipeline"},
"allow_remote": True
})
config.dump('${configuration_path}' + 'configuration.json')