-
Notifications
You must be signed in to change notification settings - Fork 49
Expand file tree
/
Copy pathaigc-text-generation-video.yml
More file actions
266 lines (265 loc) · 6.6 KB
/
aigc-text-generation-video.yml
File metadata and controls
266 lines (265 loc) · 6.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
ROSTemplateFormatVersion: '2015-09-01'
Description:
en: AIGC text generation video.
zh-cn: AIGC文本生成视频。
Mappings:
Images:
v2.3.0:
cn-beijing: m-2ze2355f061213z7wkmd
cn-chengdu: m-2vc8gw95jt1a3pnekhaf
cn-guangzhou: m-7xv5jmgay1umv241fuhl
cn-hangzhou: m-bp1e796nsjeuruq879fs
cn-heyuan: m-f8zbcsng6b538is8kncl
cn-huhehaote: m-hp3dor1c0g6m42vkaqmc
cn-qingdao: m-m5eey29yp3ohwkcl08ig
cn-shanghai: m-uf69rd86195a1kq6tcca
cn-shenzhen: m-wz97ya51lhoajugj52fs
cn-wulanchabu: m-0jlay21qst1a1u7twuwp
cn-zhangjiakou: m-8vb16qkofm9zvs2ifq34
Parameters:
EcsInstanceType:
Type: String
Label:
en: Instance Type
zh-cn: 实例类型
Description:
en: This solution requires GPU computing type gn7i series servers. If there
are no instance specifications that meet the conditions, please change the
region.
zh-cn: 此方案需要 GPU 计算型 gn7i 系列服务器,如果没有满足条件的实例规格,请更换地域。
AssociationProperty: ALIYUN::ECS::Instance::InstanceType
AssociationPropertyMetadata:
SpotStrategy: SpotAsPriceGo
AllowedValues:
- ecs.gn7i-c16g1.4xlarge
- ecs.gn7i-c32g1.8xlarge
- ecs.gn7i-c48g1.12xlarge
ZoneId:
Type: String
Label:
en: VSwitch Availability Zone
zh-cn: 交换机可用区
AssociationProperty: ALIYUN::ECS::Instance::ZoneId
InstancePassword:
Type: String
Label:
en: Instance Password
zh-cn: 实例密码
Description:
en: Server login password, Length 8-30, must contain three(Capital letters,
lowercase letters, numbers, ()`~!@#$%^&*_-+=|{}[]:;'<>,.?/ Special symbol
in)
zh-cn: 服务器登录密码,长度8-30,必须包含三项(大写字母、小写字母、数字、 ()`~!@#$%^&*_-+=|{}[]:;'<>,.?/ 中的特殊符号)
ConstraintDescription:
en: Length 8-30, must contain three(Capital letters, lowercase letters, numbers,
()`~!@#$%^&*_-+=|{}[]:;'<>,.?/ Special symbol in)
zh-cn: 长度8-30,必须包含三项(大写字母、小写字母、数字、 ()`~!@#$%^&*_-+=|{}[]:;'<>,.?/ 中的特殊符号)
AssociationProperty: ALIYUN::ECS::Instance::Password
AllowedPattern: ^[a-zA-Z0-9-\(\)\`\~\!\@\#\$\%\^\&\*\_\-\+\=\|\{\}\[\]\:\;\<\>\,\.\?\/]*$
MinLength: 8
MaxLength: 30
NoEcho: true
Resources:
EcsVpc:
Type: ALIYUN::ECS::VPC
Properties:
CidrBlock: 192.168.0.0/16
VpcName:
Ref: ALIYUN::StackName
EcsSecurityGroup:
Type: ALIYUN::ECS::SecurityGroup
Properties:
VpcId:
Ref: EcsVpc
SecurityGroupName:
Ref: ALIYUN::StackName
SecurityGroupEgress:
- PortRange: '-1/-1'
Priority: 1
IpProtocol: all
DestCidrIp: 0.0.0.0/0
NicType: internet
- PortRange: '-1/-1'
Priority: 1
IpProtocol: all
DestCidrIp: 0.0.0.0/0
NicType: intranet
EcsVSwitch:
Type: ALIYUN::ECS::VSwitch
Properties:
ZoneId:
Ref: ZoneId
VpcId:
Ref: EcsVpc
CidrBlock: 192.168.0.0/24
VSwitchName:
Ref: ALIYUN::StackName
EcsInstanceGroup:
Type: ALIYUN::ECS::InstanceGroup
Properties:
ZoneId:
Ref: ZoneId
VpcId:
Ref: EcsVpc
VSwitchId:
Ref: EcsVSwitch
SecurityGroupId:
Ref: EcsSecurityGroup
ImageId:
Fn::FindInMap:
- Images
- v2.3.0
- Ref: ALIYUN::Region
IoOptimized: optimized
SystemDiskSize: 500
MaxAmount: 1
SystemDiskCategory: cloud_essd
InternetMaxBandwidthOut: 100
InstanceType:
Ref: EcsInstanceType
AllocatePublicIP: true
SpotStrategy: SpotAsPriceGo
Password:
Ref: InstancePassword
InstanceRunCommand:
Type: ALIYUN::ECS::RunCommand
Properties:
InstanceIds:
Fn::GetAtt:
- EcsInstanceGroup
- InstanceIds
CommandContent:
Fn::Sub: |-
#!/bin/bash
export PATH=/workspace/miniconda/condabin/conda:$PATH
source ~/.bashrc
echo 'Clown fish swimming through the coral reef.' | /workspace/miniconda/condabin/conda run -n modelscope --no-capture-output python /root/scripts/text2video.py > /root/scripts/output.txt 2>&1
Type: RunShellScript
Timeout: '30000'
Sync: true
Outputs:
EcsLoginAddress:
Description:
en: Ecs login address.
zh-cn: ECS登录地址。
Value:
Fn::Sub:
- https://ecs-workbench.aliyun.com/?from=EcsConsole&instanceType=ecs®ionId=${Region}&instanceId=${InstanceId}
- InstanceId:
Fn::Select:
- 0
- Fn::GetAtt:
- EcsInstanceGroup
- InstanceIds
Region:
Ref: ALIYUN::Region
Metadata:
ALIYUN::ROS::Interface:
ParameterGroups:
- Parameters:
- ImageId
- EcsInstanceType
- ZoneId
- InstancePassword
Label:
default:
en: Instance
zh-cn: ECS实例配置
TemplateTags:
- acs:document-help:ecs:AIGC文本生成视频
- acs:public_template:Example:aigc-text-generation-video
ALIYUN::ROS::Composer:
097efb2b:
Rect:
- 569
- 476
- 8
- 100
- 1
- 0
ResT: Composer::ROSParameter::AlibabaCloud
9a67cb8a:
Parent: 097efb2b
Rect:
- 520
- 404
- 24
- 150
- 2
- 0
ResT: Composer::ROSParameter::Region
5fbd027e:
Res:
- EcsVpc
Parent: 9a67cb8a
Rect:
- 368
- 338
- 141
- 200
- 3
- 0
002308a6:
Res:
- InstanceRunCommand
Parent: 9a67cb8a
Rect:
- 40
- 40
- 64
- 382
- 3
- 0
5dda86dd:
Res:
- ZoneId
Parent: 5fbd027e
Rect:
- 305
- 272
- 161
- 250
- 4
- 0
ResT: Composer::ROSParameter::Zone
8e330edf:
Res:
- EcsVSwitch
Parent: 5dda86dd
Rect:
- 248
- 203
- 181
- 300
- 5
- 0
cb75a05d:
Res:
- EcsSecurityGroup
Parent: 5fbd027e
Rect:
- 190
- 123
- 201
- 350
- 10
- 0
0e9192e8:
Parent: 9a67cb8a
Edge:
- 002308a6
- 4c08946f
Line: 0:0:0:gray:0
4c08946f:
Res:
- EcsInstanceGroup
Parent: 8e330edf
Rect:
- 40
- 40
- 272
- 382
- 11
- 0
Layer:
- cb75a05d