-
Notifications
You must be signed in to change notification settings - Fork 48
Expand file tree
/
Copy pathlingjun-LLAMA-2-best-practice.yml
More file actions
165 lines (165 loc) · 3.46 KB
/
lingjun-LLAMA-2-best-practice.yml
File metadata and controls
165 lines (165 loc) · 3.46 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
ROSTemplateFormatVersion: '2015-09-01'
Description:
zh-cn: 创建VPC、交换机、安全组、OSS桶,PAI、灵骏、NAS需手动添。
en: Creation of VPCs, switches, security groups, OSS buckets, PAI, Ling骏 (assuming
this is a product name and保持原样), and NAS requires manual addition.
Parameters:
ZoneId:
Type: String
Label:
en: Zone ID.
zh-cn: 可用区ID。
Description:
en: Zone ID.
zh-cn: 可用区ID。
AssociationProperty: ZoneId
BucketName:
Type: String
Label:
en: OSS bucket name.
zh-cn: OSS bucket名字。
Description:
en: custom OSS bucket name. Default:bucket-llm.
zh-cn: 自定义对象存储桶的名称。 默认为bucket-llm
AssociationProperty: AutoCompleteInput
AssociationPropertyMetadata:
Length: 5
Prefix: bucket-llm-
CharacterClasses:
- Class: lowercase
min: 1
Resources:
ModuleVpcAndVswitch:
DependsOn:
- AutoEnableOSS
Type: MODULE::ACS::VPC::OptionalVpcAndVSwitch
Properties:
ZoneId:
Ref: ZoneId
Version: default
AutoEnableOSS:
Type: ALIYUN::ROS::AutoEnableService
Properties:
ServiceName: OSS
SecurityGroup:
Type: ALIYUN::ECS::SecurityGroup
Properties:
VpcId:
Fn::GetAtt:
- ModuleVpcAndVswitch
- VpcId
SecurityGroupIngress:
- Priority: 1
PortRange: 80/80
NicType: internet
SourceCidrIp: 0.0.0.0/0
IpProtocol: tcp
- Priority: 1
PortRange: 443/443
NicType: internet
SourceCidrIp: 0.0.0.0/0
IpProtocol: tcp
OssBucket:
Type: ALIYUN::OSS::Bucket
Properties:
BucketName:
Ref: BucketName
Outputs:
VpcId:
Description:
en: The ID of VPC.
zh-cn: 专有网络ID。
Value:
Fn::GetAtt:
- ModuleVpcAndVswitch
- VpcId
VSwitchId:
Description:
en: The ID of VSwitch.
zh-cn: 交换机ID。
Value:
Fn::GetAtt:
- ModuleVpcAndVswitch
- VSwitchId
OSSBucketName:
Description:
en: The name of OSS bucket.
zh-cn: OSS桶名称。
Value:
Fn::GetAtt:
- OssBucket
- Name
Metadata:
ALIYUN::ROS::Interface:
ParameterGroups:
- Parameters:
- ZoneId
- BucketName
TemplateTags:
- acs:technical-solution:ai:通过PAI-灵骏分布式训练和部署Llama2模型方案-tech_solu_69
ALIYUN::ROS::Composer:
28221aec:
Rect:
- 300
- 320
- 40
- 100
- 1
- 0
ResT: Composer::ROSParameter::AlibabaCloud
b76d8a9e:
Parent: 28221aec
Rect:
- 260
- 256
- 60
- 144
- 2
- 0
ResT: Composer::ROSParameter::Region
420f7ed5:
Res:
- AutoEnableOSS
Parent: b76d8a9e
Rect:
- 40
- 40
- 211
- 184
- 3
- 0
Hidden: true
303e4a07:
Res:
- OssBucket
Parent: b76d8a9e
Rect:
- 40
- 40
- 200
- 184
- 3
- 0
db5d6285:
Res:
- SecurityGroup
Parent: b76d8a9e
Rect:
- 160
- 120
- 140
- 260
- 10
- 0
a5eafcc4:
Res:
- ModuleVpcAndVswitch
Parent: b76d8a9e
Rect:
- 40
- 40
- 200
- 300
- 11
- 0
ResT: MODULE::ACS::VPC::OptionalVpcAndVSwitch