Skip to content

Commit c5b43ea

Browse files
committed
add dipper variable
1 parent 87d952e commit c5b43ea

File tree

3 files changed

+54
-21
lines changed

3 files changed

+54
-21
lines changed

publish.yaml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99

1010
Edition: 3.0.0
1111
Type: Project
12-
Name: start-modelscope-v3
12+
Name: start-dipper-modelscope
1313
Provider:
1414
- 阿里云
15-
Version: 0.1.6
15+
Version: 0.0.1
1616
Description: ModelScope应用(fc3.0)
17-
HomePage: https://github.com/devsapp/start-modelscope-v3
17+
HomePage: https://github.com/devsapp/start-modelscope
1818
Tags:
1919
- AIGC
2020
- 大模型
@@ -24,6 +24,13 @@ Service:
2424
函数计算:
2525
Authorities:
2626
- AliyunFCFullAccess
27+
硬盘挂载:
28+
Authorities:
29+
- AliyunFCServerlessDevsRolePolicy
30+
专有网络:
31+
Authorities:
32+
- AliyunFCServerlessDevsRolePolicy
33+
2734
Effective: Public
2835
Parameters:
2936
type: object

src/s.yaml

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -185,21 +185,15 @@ resources:
185185
- GET
186186
- POST
187187
- PUT
188-
189-
model_ui_func_domain:
190-
component: 'fc3-domain'
191-
props:
192-
region: ${vars.region}
193-
domainName: auto
194-
protocol: HTTP
195-
routeConfig:
196-
routes:
197-
- functionName: ${resources.model_ui_func.props.functionName}
198-
methods:
199-
- GET
200-
- POST
201-
- PUT
202-
- DELETE
203-
- OPTIONS
204-
path: /*
205-
qualifier: LATEST
188+
customDomain:
189+
domainName: "auto"
190+
protocol: HTTP
191+
route:
192+
methods:
193+
- GET
194+
- POST
195+
- PUT
196+
- DELETE
197+
- OPTIONS
198+
path: /*
199+
qualifier: LATEST

src/variable.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
shared: #共享变量
2+
modelId:
3+
title: 模型ID
4+
type: string
5+
default: 'damo/nlp_structbert_sentiment-classification_chinese-ecommerce-base'
6+
description: ModelScope的模型ID, 可以从 https://modelscope.cn/models 模型页获取
7+
modelRevision:
8+
title: 模型版本
9+
type: string
10+
default: 'v1.0.0'
11+
description: ModelScope的模型版本,可以从 https://modelscope.cn/models 模型页获取
12+
modelTask:
13+
title: 模型任务类型
14+
type: string
15+
default: 'text-classification'
16+
description: ModelScope的模型任务类型,可以从 https://modelscope.cn/models 模型页获取
17+
accessToken:
18+
title: Access Token
19+
type: string
20+
sensitive: true
21+
description: ModelScope的访问令牌(SDK令牌),从https://modelscope.cn/my/myaccesstoken获取
22+
23+
services: #服务变量
24+
tgpu_basic_func:
25+
gpuInstanceType:
26+
title: GPU实例类型
27+
type: string
28+
default: "fc.gpu.tesla.1"
29+
description: GPU实例类型
30+
enum:
31+
- "fc.gpu.tesla.1"
32+
- "fc.gpu.ampere.1"

0 commit comments

Comments
 (0)