mirror of
https://github.com/modelscope/modelscope.git
synced 2025-12-25 12:39:25 +01:00
provide allow_remote
优化模版文件,提升独立repo接入成功率,降低用户阅读文档带来的歧义 Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/12354329 * provide allow_remote
This commit is contained in:
@@ -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')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user