forked from aliyun/ros-templates
-
Notifications
You must be signed in to change notification settings - Fork 1
/
lingjun-LLAMA-2-best-practice.yml
104 lines (104 loc) · 2.55 KB
/
lingjun-LLAMA-2-best-practice.yml
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
ROSTemplateFormatVersion: '2015-09-01'
Description:
en: This template will create a VPC, switch, security group, and OSS bucket. PAI,
LingJun and NAS resources need to be created manually.
zh-cn: 该模板将会创建专有网络VPC、交换机、安全组以及OSS桶。PAI、灵骏以及NAS资源需要手动创建。
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: 22/22
NicType: internet
SourceCidrIp: 0.0.0.0/0
IpProtocol: tcp
- 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