-
Notifications
You must be signed in to change notification settings - Fork 35
/
use-pai-to-deploy-stable-diffusion-for-AI-painting.yml
92 lines (92 loc) · 2.86 KB
/
use-pai-to-deploy-stable-diffusion-for-AI-painting.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:
zh-cn: 创建PAIDSW实例,配置GPU规格、镜像地址,命名规范,指定工作空间,输出实例ID、名称及工作空间ID。
en: Create a PAIDSW instance, configure GPU specifications, image address, adhere
to naming conventions, specify the workspace, and output the instance ID, name,
and workspace ID.
Parameters:
EcsSpec:
Type: String
Label:
en: The ECS specification of the instance.
zh-cn: ECS实例规格。
Description:
en: The ECS specification of the instance. This tutorial recommends selecting
the GPU specification, and the specification name is ecs.gn7i-c8g1.2xlarge.
zh-cn: ECS实例规格。本教程推荐选择GPU规格,规格名称为ecs.gn7i-c8g1.2xlarge。
Default: ecs.gn7i-c8g1.2xlarge
InstanceName:
Type: String
Label:
en: The name of PAIDSW instance.
zh-cn: PAIDSW实例名称。
Description: |-
'The instance name. Format requirements:\n'
'- Can only contain letters, numbers and underscores (_).\n'
'- It cannot exceed 27 characters.'
AllowedPattern: ^[_a-zA-Z0-9]{1,27}$
WorkspaceId:
Type: String
Label:
en: The ID of workspace.
zh-cn: 工作空间ID
Description:
en: The ID of the workspace where the DSW instance is deployed.
zh-cn: 部署DSW实例的工作空间ID
ImageUrl:
Type: String
Label:
en: The mirror address.
zh-cn: 镜像地址
Description:
en: Select stable-diffusion-webui-env:pytorch1.13-gpu-py310-cu117-ubuntu22.04
in the official image.
zh-cn: 选择官方镜像中的stable-diffusion-webui-env:pytorch1.13-gpu-py310-cu117-ubuntu22.04。
Default: dsw-registry-vpc.cn-beijing.cr.aliyuncs.com/cloud-dsw/eas-service:aigc-torch113-cu117-ubuntu22.04-v0.2.1_accelerated
Resources:
PAIDWSInstance:
Type: ALIYUN::PaiDswApi::Instance
Properties:
EcsSpec:
Ref: EcsSpec
ImageUrl:
Ref: ImageUrl
InstanceName:
Ref: InstanceName
WorkspaceId:
Ref: WorkspaceId
Outputs:
InstanceId:
Description:
en: The first ID of the resource.
zh-cn: PAIDSW实例ID。
Value:
Fn::GetAtt:
- PAIDWSInstance
- InstanceId
InstanceName:
Description:
en: The instance name.
zh-cn: PAIDSW实例名称。
Value:
Fn::GetAtt:
- PAIDWSInstance
- InstanceName
WorkspaceId:
Description:
en: The Id of the workspace.
zh-cn: PAIDWS所在工作空间ID。
Value:
Fn::GetAtt:
- PAIDWSInstance
- WorkspaceId
Metadata:
ALIYUN::ROS::Interface:
ParameterGroups:
- Parameters:
- ImageURL
- EcsSpec
- InstanceName
- WorkspaceId
TemplateTags:
- acs:technical-solution:AI:如何在阿里云快速启动Stable Diffusion轻松玩转AI绘画