Skip to content
This repository was archived by the owner on Sep 20, 2025. It is now read-only.

Commit 59bc9fa

Browse files
committed
merge from main
2 parents 19cef26 + 6425971 commit 59bc9fa

File tree

140 files changed

+1193
-401
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

140 files changed

+1193
-401
lines changed

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ cython_debug/
129129
.vscode/
130130

131131
# data
132-
dmaa_models/
132+
emd_models/
133133
**artifacts
134-
src/pipeline/dmaa
134+
src/pipeline/emd
135135
*.log

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
2525
python3 get-pip.py
2626
```
2727

28-
### Installing DMAA
28+
### Installing EMD
2929

30-
To install the DMAA package, execute the following steps:
30+
To install the EMD package, execute the following steps:
3131

3232
1. **(Optional)** Create and activate a virtual environment:
3333

@@ -58,7 +58,7 @@ This command installs the package along with its dependencies.
5858
After successful installation, use the following command to access the CLI help:
5959

6060
```bash
61-
dmaa --help
61+
emd --help
6262
```
6363

64-
This command displays the available options and commands for the DMAA CLI.
64+
This command displays the available options and commands for the EMD CLI.

docs/time-sequence/applicability-check-after-initialization.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@ sequenceDiagram
77
autonumber
88
actor User
99
User->>+WebUI: List supported models for an application, e.g. Text2SQL
10-
box rgb(243, 255, 242) DMAA App Layer
10+
box rgb(243, 255, 242) EMD App Layer
1111
participant Application API
1212
end
1313
14-
box rgb(250, 233, 232) DMAA Core Layer
14+
box rgb(250, 233, 232) EMD Core Layer
1515
participant Core API
1616
participant DB
1717
end
1818
19-
WebUI->>+Application API: Call dmaa.app.list_app('Text2SQL')
20-
Application API->>Core API: Call dmaa.core.retrieve_db('Text2SQL')
19+
WebUI->>+Application API: Call emd.app.list_app('Text2SQL')
20+
Application API->>Core API: Call emd.core.retrieve_db('Text2SQL')
2121
Core API->>DB: Retrive relating db
2222
DB-->>Core API: Results of supported information relating to Text2SQL
2323
Core API-->>Application API: results from DB

docs/time-sequence/applicability-check-before-initialization.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,24 @@ sequenceDiagram
77
autonumber
88
actor User
99
User->>+WebUI: List supported models for an application, e.g. Text2SQL
10-
box rgb(243, 255, 242) DMAA App Layer
10+
box rgb(243, 255, 242) EMD App Layer
1111
participant Application API
1212
end
1313
14-
box rgb(250, 233, 232) DMAA Core Layer
14+
box rgb(250, 233, 232) EMD Core Layer
1515
participant Core API
1616
participant DB
1717
end
1818
19-
WebUI->>+Application API: Call dmaa.app.list_app('Text2SQL')
20-
Application API->>Core API: Call dmaa.core.retrieve_db('Text2SQL')
19+
WebUI->>+Application API: Call emd.app.list_app('Text2SQL')
20+
Application API->>Core API: Call emd.core.retrieve_db('Text2SQL')
2121
Core API->>DB: Retrive relating db
2222
DB-->>Core API: Db check results
2323
Core API-->>Application API: Fail to find valid db
24-
Application API->>Core API: Call dmaa.core.initialize_db('Text2SQL')
25-
Core API->>DB: Initialize db based on DMAA configuration file
24+
Application API->>Core API: Call emd.core.initialize_db('Text2SQL')
25+
Core API->>DB: Initialize db based on EMD configuration file
2626
DB-->>Core API: Initilization results
2727
Core API-->>Application API: Finish initilization
28-
Application API-->>WebUI: applicability check results from DMAA configuration file
28+
Application API-->>WebUI: applicability check results from EMD configuration file
2929
WebUI-->>User: display applicability check results: supported models/frameworks/infras/versions for Text2SQL
3030
```

docs/time-sequence/model-invokement.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,22 @@ sequenceDiagram
77
autonumber
88
actor User
99
User->>+WebUI: Invoke model for Text2SQL_config(Text2SQL+Qwen2.5-72B-instruct+vllm+Sagemaker-g5.12x.large)
10-
box rgb(243, 255, 242) DMAA App Layer
10+
box rgb(243, 255, 242) EMD App Layer
1111
participant Application API
1212
end
1313
14-
box rgb(250, 233, 232) DMAA Core Layer
14+
box rgb(250, 233, 232) EMD Core Layer
1515
participant Core API
1616
participant DB
1717
participant Sagemaker
1818
end
1919
20-
WebUI->>+Application API: Call dmaa.app.invoke(Text2SQL_config, param)
21-
Application API->>Core API: Call dmaa.core.retrieve_db_deploy(Text2SQL_config)
20+
WebUI->>+Application API: Call emd.app.invoke(Text2SQL_config, param)
21+
Application API->>Core API: Call emd.core.retrieve_db_deploy(Text2SQL_config)
2222
Core API->>DB: retrieve db
2323
DB-->>Core API: The deploy task is finished
2424
Core API-->>Application API: The deploy task is finished
25-
Application API->>Core API: Call dmaa.core.invoke() with parameters
25+
Application API->>Core API: Call emd.core.invoke() with parameters
2626
Core API->>Sagemaker: Call sagemaker endpoint
2727
Sagemaker-->>Core API: Return inference results
2828
Core API-->>Application API: Return inference results

docs/time-sequence/resource-management-deploy-rolling.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,47 +7,47 @@ sequenceDiagram
77
autonumber
88
actor User
99
User->>+WebUI: Deploy model for Text2SQL_config(Text2SQL+Qwen2.5-72B-instruct+vllm+Sagemaker-g5.12x.large)
10-
box rgb(243, 255, 242) DMAA App Layer
10+
box rgb(243, 255, 242) EMD App Layer
1111
participant Application API
1212
end
1313
14-
box rgb(250, 233, 232) DMAA Core Layer
14+
box rgb(250, 233, 232) EMD Core Layer
1515
participant Core API
1616
participant Batch
1717
participant DB
1818
participant Sagemaker
1919
end
2020
21-
WebUI->>+Application API: Call dmaa.app.deploy(Text2SQL_config, rolling=True)
22-
Application API->>Core API: Call dmaa.core.retrieve_db_deploy(Text2SQL_config)
21+
WebUI->>+Application API: Call emd.app.deploy(Text2SQL_config, rolling=True)
22+
Application API->>Core API: Call emd.core.retrieve_db_deploy(Text2SQL_config)
2323
Core API->>DB: Check the status of model/image/deploy task
2424
DB-->>Core API: Db resulsts of related task
2525
Core API-->>Application API: Model and image task id
2626
loop ModelTaskCheck
27-
Application API->>Core API: Call dmaa.core.batch_job_check(Text2SQL_config, model)
27+
Application API->>Core API: Call emd.core.batch_job_check(Text2SQL_config, model)
2828
Core API->>Batch: Model task check
2929
Batch-->>Core API: Batch job status
3030
Core API-->>Application API: Model task on-going
31-
Application API->>Core API: Call dmaa.core.batch_job_check(Text2SQL_config, image)
31+
Application API->>Core API: Call emd.core.batch_job_check(Text2SQL_config, image)
3232
Core API->>Batch: Image task check
3333
Batch-->>Core API: Batch job status
3434
Core API-->>Application API: Image task on-going
3535
end
36-
Application API->>Core API: Call dmaa.core.update_db() for model/image task
36+
Application API->>Core API: Call emd.core.update_db() for model/image task
3737
Core API->>DB: Update model/image to finished
3838
DB-->>Core API: Update results
3939
Core API-->>Application API: Update results
40-
Application API->>Core API: Call dmaa.core.sagemaker_deploy() to deploy model
40+
Application API->>Core API: Call emd.core.sagemaker_deploy() to deploy model
4141
Core API->>Sagemaker: Initilize Amazon sagemaker endpoint deployment
4242
Sagemaker-->>Core API: Amazon sagemaker deployment task id
4343
Core API-->>Application API: Launch the deployment task
4444
loop DeployTaskCheck
45-
Application API->>Core API: Call dmaa.core.sagemaker_job_check(Text2SQL_config)
45+
Application API->>Core API: Call emd.core.sagemaker_job_check(Text2SQL_config)
4646
Core API->>Sagemaker: deployment task check
4747
Sagemaker-->>Core API: deployment task on-going
4848
Core API-->>Application API: deployment task on-going
4949
end
50-
Application API->>Core API: Call dmaa.core.update_db()
50+
Application API->>Core API: Call emd.core.update_db()
5151
Core API->>DB: Update the status of model/image/deploy task
5252
DB-->>Core API: Task results
5353
Core API-->>Application API: Update model/image/deploy task status

docs/time-sequence/resource-management-deploy.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,30 +7,30 @@ sequenceDiagram
77
autonumber
88
actor User
99
User->>+WebUI: Deploy model for Text2SQL_config(Text2SQL+Qwen2.5-72B-instruct+vllm+Sagemaker-g5.12x.large)
10-
box rgb(243, 255, 242) DMAA App Layer
10+
box rgb(243, 255, 242) EMD App Layer
1111
participant Application API
1212
end
1313
14-
box rgb(250, 233, 232) DMAA Core Layer
14+
box rgb(250, 233, 232) EMD Core Layer
1515
participant Core API
1616
participant DB
1717
participant Batch
1818
end
1919
20-
WebUI->>+Application API: Call dmaa.app.deploy(Text2SQL_config)
21-
Application API->>Core API: Call dmaa.core.retrieve_db_deploy(Text2SQL_config)
20+
WebUI->>+Application API: Call emd.app.deploy(Text2SQL_config)
21+
Application API->>Core API: Call emd.core.retrieve_db_deploy(Text2SQL_config)
2222
Core API->>DB: Check the status of model/image/deploy task
2323
DB-->>Core API: Task results
2424
Core API-->>Application API: No available model/image/deploy task status
25-
Application API->>Core API: Call dmaa.core.model_prepare(Text2SQL_config)
25+
Application API->>Core API: Call emd.core.model_prepare(Text2SQL_config)
2626
Core API->>Batch: Initilize batch job for preparing model file
2727
Batch-->>Core API: Batch job launched
2828
Core API-->>Application API: Batch job launched
29-
Application API->>Core API: Call dmaa.core.image_build(Text2SQL_config)
29+
Application API->>Core API: Call emd.core.image_build(Text2SQL_config)
3030
Core API->>Batch: Initilize batch job for building images
3131
Batch-->>Core API: Batch job launched
3232
Core API-->>Application API: Batch job launched
33-
Application API->>Core API: Call dmaa.core.update_db()
33+
Application API->>Core API: Call emd.core.update_db()
3434
Core API->>DB: Update the status of model/image/deploy task
3535
DB-->>Core API: Task results
3636
Core API-->>Application API: Update model/image/deploy task status

pybuild.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
22

33
COMMIT_HASH=$(git rev-parse --short=8 HEAD)
4-
sed -i "s/^COMMIT_HASH = .*/COMMIT_HASH = \"$COMMIT_HASH\"/" src/dmaa/revision.py
4+
sed -i "s/^COMMIT_HASH = .*/COMMIT_HASH = \"$COMMIT_HASH\"/" src/emd/revision.py
55
poetry build

pyproject.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[project]
2-
name = "dmaa"
2+
name = "emd"
33
description = "Deploy Model Anywhere on AWS"
44
version = "0.6.0"
55
authors = [
@@ -11,9 +11,9 @@ readme = "README.md"
1111

1212
[tool.poetry]
1313
packages = [
14-
{ include = "**/*", from = "src/dmaa", to = "dmaa" },
15-
{ include = "pipeline", from = "src", to = "dmaa" },
16-
{ include = "s5cmd", from = "assets", to = "dmaa/pipeline" }
14+
{ include = "**/*", from = "src/emd", to = "emd" },
15+
{ include = "pipeline", from = "src", to = "emd" },
16+
{ include = "s5cmd", from = "assets", to = "emd/pipeline" }
1717
]
1818
exclude = [".venv"]
1919

@@ -46,6 +46,6 @@ pytest = "^8.0.0"
4646
requires = ["poetry-core"]
4747
build-backend = "poetry.core.masonry.api"
4848
[tool.poetry.scripts]
49-
dmaa = "dmaa.cli:app"
49+
emd = "emd.cli:app"
5050
[project.scripts]
51-
dmaa = "dmaa.cli:app"
51+
emd = "emd.cli:app"
-2.16 MB
Binary file not shown.

0 commit comments

Comments
 (0)