model-customization
Use SageMaker Python SDK v3 foundation-model customization, evaluation, AI Registry assets, recipe overrides, data mixing, notifications, and Agentic RFT workflows.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- model-customization
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Use SageMaker Python SDK v3 foundation-model customization, evaluation, AI Registry assets, recipe overrides, data mixing, notifications, and Agentic RFT workflows.
- disable-model-invocation
- true
02 资源文件 4
- 参考文档references/evaluation-and-ai-registry.md1.9 KB
- 参考文档references/foundation-model-customization.md2.6 KB
- 参考文档references/recipes-data-mixing-notifications.md2.2 KB
- 参考文档references/troubleshooting.md1.8 KB
03 SKILL.md 正文
SageMaker Python SDK v3 Model Customization Sub-skill
Use this sub-skill for foundation model customization with the specialized
SFTTrainer, DPOTrainer, RLVRTrainer, RLAIFTrainer, CPTTrainer, and
MultiTurnRLTrainer APIs, plus evaluation jobs, AI Registry datasets and
evaluators, Nova data mixing, recipe overrides, notifications, and job
monitoring.
Trigger phrases
Read this sub-skill when the user asks to:
- fine-tune, customize, or align a foundation model with SageMaker v3
- use
SFTTrainer,DPOTrainer,RLVRTrainer,RLAIFTrainer,CPTTrainer, orMultiTurnRLTrainer - run Nova data mixing, recipe overrides, or
get_resolved_recipe() - validate a training or evaluation config with
dry_run=True - create or use AI Registry
DataSetorEvaluatorassets - launch benchmark, custom-scorer, LLM-as-judge, InspectAI, or multi-turn RL evaluations
- configure SNS/EventBridge notifications for training jobs
- inspect
show_metrics(),stream_logs(), orAgentRFTJobartifacts
When not to read this sub-skill
- Generic training jobs, local training, distributed training, HPO, or JumpStart
training: use
../training/SKILL.md. - Deploying a customized model to an endpoint, local container, or Bedrock
serving path: use
../serving/SKILL.md. - Session/default-bucket/image URI/resource-chain questions: use
../core-resources/SKILL.md. - Pipeline orchestration, registry workflows outside evaluation assets, feature
store, or governance steps: use
../mlops/SKILL.md.
Short workflow
- Identify the task family: SFT, DPO, RLVR, RLAIF, CPT, or MultiTurnRL.
- Pick the compute path:
- serverless when
compute=None TrainingJobCompute/Computefor serverful SMTJHyperPodComputefor cluster-backed jobs- CPT is HyperPod-only
- MultiTurnRL uses
agent_envandAgentRFTJob, notTrainingJobCompute
- serverless when
- Use the right asset type:
DataSetfor registered training/evaluation dataEvaluatorfor reward functions, reward prompts, or judge assetsDataMixingConfigfor Nova data mixing
- Resolve recipe and validation intent early with
get_resolved_recipe()anddry_run=Truebefore launching a chargeable job. - Keep
accept_eula=Trueand explicit role / region / S3 outputs ready for gated models and cloud execution. - After submission, inspect logs and metrics with
stream_logs()andshow_metrics(); for MTRL inspect the returnedAgentRFTJob. - When the task becomes deployment, hand it to
../serving/SKILL.md.
Reference map
references/foundation-model-customization.md: specialized trainer APIs, compute choices, recipes, data mixing, dry-run, logs, and model-specific operating patterns.references/evaluation-and-ai-registry.md: evaluator classes, evaluation execution objects, AI RegistryDataSetandEvaluatorassets, and multi-turn RL artifacts.references/recipes-data-mixing-notifications.md: recipe precedence,get_resolved_recipe(),DataMixingConfig, notifications, metrics, and log streaming after restart.references/troubleshooting.md: region, credentials, role, EULA, model access, data validation, recipe, notification, and evaluation failure recovery.
Quick API map
- Training:
SFTTrainer,DPOTrainer,RLVRTrainer,RLAIFTrainer,CPTTrainer,MultiTurnRLTrainer,TrainingType,CustomizationTechnique. - Data and assets:
DataMixingConfig,DataSet,Evaluator. - Evaluation:
BenchMarkEvaluator,CustomScorerEvaluator,LLMAsJudgeEvaluator,InspectAIEvaluator,MultiTurnRLEvaluator,EvaluationPipelineExecution. - Monitoring:
show_metrics(),stream_logs(),plot_training_metrics(),AgentRFTJob.get_training_metrics().
Guardrails
- Use v3 imports only.
- Do not hardcode account IDs, region names, role ARNs, bucket names, subnets, or credentials in public guidance.
- Keep deployment guidance out of this sub-skill; route customized-model serving to the sibling serving sub-skill.
- If you only need general
ModelTrainerflow, leave this sub-skill and use the training sub-skill instead.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).