AGENT SKILL

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

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, or MultiTurnRLTrainer
  • 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 DataSet or Evaluator assets
  • 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(), or AgentRFTJob artifacts

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

  1. Identify the task family: SFT, DPO, RLVR, RLAIF, CPT, or MultiTurnRL.
  2. Pick the compute path:
    • serverless when compute=None
    • TrainingJobCompute/Compute for serverful SMTJ
    • HyperPodCompute for cluster-backed jobs
    • CPT is HyperPod-only
    • MultiTurnRL uses agent_env and AgentRFTJob, not TrainingJobCompute
  3. Use the right asset type:
    • DataSet for registered training/evaluation data
    • Evaluator for reward functions, reward prompts, or judge assets
    • DataMixingConfig for Nova data mixing
  4. Resolve recipe and validation intent early with get_resolved_recipe() and dry_run=True before launching a chargeable job.
  5. Keep accept_eula=True and explicit role / region / S3 outputs ready for gated models and cloud execution.
  6. After submission, inspect logs and metrics with stream_logs() and show_metrics(); for MTRL inspect the returned AgentRFTJob.
  7. When the task becomes deployment, hand it to ../serving/SKILL.md.

Reference map

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 ModelTrainer flow, leave this sub-skill and use the training sub-skill instead.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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).

★ 351