@aws/ml-container-creator 0.8.0 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE-THIRD-PARTY +50760 -16218
- package/bin/cli.js +31 -137
- package/package.json +7 -2
- package/servers/lib/catalogs/instances.json +52 -1275
- package/servers/lib/catalogs/models.json +0 -132
- package/servers/lib/catalogs/popular-diffusors.json +1 -110
- package/src/app.js +29 -2
- package/src/lib/config-manager.js +17 -0
- package/src/lib/generated/cli-options.js +467 -0
- package/src/lib/generated/validation-rules.js +202 -0
- package/src/lib/mcp-client.js +16 -1
- package/src/lib/mcp-command-handler.js +10 -2
- package/src/lib/prompt-runner.js +16 -2
- package/src/lib/train-config-parser.js +136 -0
- package/src/lib/train-config-persistence.js +143 -0
- package/src/lib/train-config-validator.js +112 -0
- package/src/lib/train-feedback.js +46 -0
- package/src/lib/train-idempotency.js +97 -0
- package/src/lib/train-request-builder.js +120 -0
- package/templates/code/serve +5 -134
- package/templates/code/serve.d/lmi.ejs +19 -0
- package/templates/code/serve.d/sglang.ejs +47 -0
- package/templates/code/serve.d/tensorrt-llm.ejs +53 -0
- package/templates/code/serve.d/vllm.ejs +48 -0
- package/templates/do/.train_build_request.py +141 -0
- package/templates/do/.train_poll_parser.py +135 -0
- package/templates/do/.train_status_parser.py +187 -0
- package/templates/do/clean +1 -1387
- package/templates/do/clean.d/async-inference.ejs +508 -0
- package/templates/do/clean.d/batch-transform.ejs +512 -0
- package/templates/do/clean.d/hyperpod-eks.ejs +481 -0
- package/templates/do/clean.d/managed-inference.ejs +1043 -0
- package/templates/do/deploy +1 -1766
- package/templates/do/deploy.d/async-inference.ejs +501 -0
- package/templates/do/deploy.d/batch-transform.ejs +529 -0
- package/templates/do/deploy.d/hyperpod-eks.ejs +339 -0
- package/templates/do/deploy.d/managed-inference.ejs +726 -0
- package/templates/do/lib/feedback.sh +41 -0
- package/templates/do/train +786 -0
- package/templates/do/training/config.yaml +140 -0
- package/templates/do/training/train.py +463 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
#
|
|
5
|
+
# Shared helper: post-completion feedback loop for training and tuning jobs.
|
|
6
|
+
# Sourced by do/tune and do/train — prints artifact locations and deployment suggestions.
|
|
7
|
+
|
|
8
|
+
# print_completion_feedback()
|
|
9
|
+
# Display completion summary with artifact path and next-step deployment commands.
|
|
10
|
+
# Tailors suggestions based on the detected artifact type (adapter vs full model).
|
|
11
|
+
#
|
|
12
|
+
# Arguments:
|
|
13
|
+
# $1 - output_path: S3 URI to the output artifacts
|
|
14
|
+
# $2 - output_type: "adapter" or "full-model"
|
|
15
|
+
# $3 - job_name: Job name for reference
|
|
16
|
+
# $4 - model_package_arn: (optional) Model package ARN if registered
|
|
17
|
+
print_completion_feedback() {
|
|
18
|
+
local output_path="$1"
|
|
19
|
+
local output_type="$2"
|
|
20
|
+
local job_name="$3"
|
|
21
|
+
local model_package_arn="${4:-}"
|
|
22
|
+
|
|
23
|
+
echo ""
|
|
24
|
+
echo "✅ Training complete: ${job_name}"
|
|
25
|
+
echo ""
|
|
26
|
+
echo " Artifacts: ${output_path}"
|
|
27
|
+
if [ -n "${model_package_arn}" ]; then
|
|
28
|
+
echo " Model Package: ${model_package_arn}"
|
|
29
|
+
fi
|
|
30
|
+
echo ""
|
|
31
|
+
echo " Next steps:"
|
|
32
|
+
|
|
33
|
+
if [ "${output_type}" = "adapter" ]; then
|
|
34
|
+
echo " • Deploy as LoRA adapter: ./do/adapter add my-adapter --weights ${output_path}"
|
|
35
|
+
echo " • (Requires running endpoint with LoRA enabled)"
|
|
36
|
+
elif [ "${output_type}" = "full-model" ]; then
|
|
37
|
+
echo " • Deploy as new IC: ./do/add-ic my-model --model-data ${output_path}"
|
|
38
|
+
echo " • Replace current base: ./do/deploy --force-ic --model-data ${output_path}"
|
|
39
|
+
fi
|
|
40
|
+
echo ""
|
|
41
|
+
}
|