forked from aliyun/ros-templates
-
Notifications
You must be signed in to change notification settings - Fork 1
/
pai-lingjun-serverless-LLM-best-practice.yml
92 lines (92 loc) · 2.25 KB
/
pai-lingjun-serverless-LLM-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
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
Default: bucket-llm
Resources:
ModuleVpcAndVswitch:
Type: MODULE::ACS::VPC::OptionalVpcAndVSwitch
Properties:
ZoneId:
Ref: ZoneId
Version: default
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灵骏智算资源(Serverless版)大模型最佳实践