DEPRECATED — This package (amzn-nova-forge) is deprecated and will no longer receive feature updates.
Please use the SageMaker Python SDK V3 (pip install "sagemaker>=3.19.0") for Amazon Nova model customization.
📓 SageMaker SDK sample notebook: Nova Serverless End-to-End Example on GitHub
Amazon Nova Forge SDK
A comprehensive Python SDK for fine-tuning and customizing Amazon Nova models. This SDK provides a unified interface for training, evaluation, deployment, and monitoring of Nova models across both SageMaker Training Jobs and SageMaker HyperPod.
Migrating from Nova Forge SDK to SageMaker Python SDK V3
Why Migrate
The amzn-nova-forge package is deprecated. Amazon Nova model customization functionality is available in the SageMaker Python SDK V3.
What’s Different (Summary)
Compute is a config object (HyperPodCompute, TrainingJobCompute), not a runtime manager
Model is a string identifier (e.g. "nova-textgeneration-lite-v2"), not an enum; also accepts S3 checkpoint paths for iterative training
Deployment uses ModelBuilder/BedrockModelBuilder pattern instead of ForgeDeployer
Overrides use full recipe paths (e.g. "recipes.training_config.trainer.lr"); use trainer.get_resolved_recipe() to inspect the final merged recipe
No ForgeConfig object — shared settings are passed directly to trainer constructors
Job notifications currently support SMTJ only — pass a notifications dict with SNS topic and EventBridge event bus ARNs
from sagemaker.train import SFTTrainer, CPTTrainer, DPOTrainer
from sagemaker.train.evaluate import BenchMarkEvaluator, get_benchmarks
from sagemaker.train.data_mixing_config import DataMixingConfig
from sagemaker.core.training.configs import HyperPodCompute, TrainingJobCompute
Amazon Nova Forge SDK
A comprehensive Python SDK for fine-tuning and customizing Amazon Nova models. This SDK provides a unified interface for training, evaluation, deployment, and monitoring of Nova models across both SageMaker Training Jobs and SageMaker HyperPod.
Migrating from Nova Forge SDK to SageMaker Python SDK V3
Why Migrate
The
amzn-nova-forgepackage is deprecated. Amazon Nova model customization functionality is available in the SageMaker Python SDK V3.What’s Different (Summary)
HyperPodCompute,TrainingJobCompute), not a runtime manager"nova-textgeneration-lite-v2"), not an enum; also accepts S3 checkpoint paths for iterative trainingModelBuilder/BedrockModelBuilderpattern instead ofForgeDeployer"recipes.training_config.trainer.lr"); usetrainer.get_resolved_recipe()to inspect the final merged recipeForgeConfigobject — shared settings are passed directly to trainer constructorsnotificationsdict with SNS topic and EventBridge event bus ARNsInstallation
Requires Python 3.10 or later.
Concept Mapping
ForgeTrainer(SFT)sagemaker.train.sft_trainer.SFTTrainerForgeTrainer(CPT)sagemaker.train.cpt_trainer.CPTTrainerForgeTrainer(DPO)sagemaker.train.dpo_trainer.DPOTrainerForgeTrainer(RFT)sagemaker.train.rlvr_trainer.RLVRTrainerForgeTrainer(MTRL)sagemaker.train.multi_turn_rl_trainer.MultiTurnRLTrainerForgeEvaluatorBenchMarkEvaluator,LLMAsJudgeEvaluator,InspectAIEvaluator,CustomScorerEvaluator,MultiTurnRLEvaluatorSMHPRuntimeManagersagemaker.core.training.configs.HyperPodComputeSMTJRuntimeManagerTrainingJobComputefor serverful or omit for serverlessdata_mixing_enabledsagemaker.train.data_mixing_config.DataMixingConfigNovaModelCustomizerForgeDeployerBedrockModelBuilderorModelBuilderForgeInferencePredictor/ BedrockInvokeModelFull Quickstart Migration (Step-by-Step)
Step 1: Import Modules
Before (Forge SDK):
After (SageMaker SDK V3):
Step 2: Configure Compute
Before (Forge SDK) — SMTJ:
After (SageMaker SDK V3) — SMTJ:
Before (Forge SDK) — SMHP:
After (SageMaker SDK V3) — SMHP:
Before (Forge SDK) — Serverless:
After (SageMaker SDK V3) — Serverless:
Omit the
computeparameter entirely. The trainer runs serverless by default.Step 3: Training (SFT)
Before (Forge SDK):
After (SageMaker SDK V3):
Step 4: Data Mixing (Optional)
Before (Forge SDK):
After (SageMaker SDK V3):
Step 5: Monitor, Notifications & Dry Run
Log Streaming
Before (Forge SDK):
After (SageMaker SDK V3):
Metrics Visualization
Before (Forge SDK):
After (SageMaker SDK V3):
Job Notifications (SMTJ only)
Before (Forge SDK):
After (SageMaker SDK V3):
Requires a pre-created SNS topic. Notifications fire on job state changes (Completed, Failed, Stopped).
Dry Run Mode
Before (Forge SDK):
After (SageMaker SDK V3):
Runs all validations (IAM, compute, dataset) without submitting a job.
Step 6: Evaluate
Before (Forge SDK):
After (SageMaker SDK V3) — Benchmark (MMLU):
After (SageMaker SDK V3) — Custom Evaluator:
After (SageMaker SDK V3) — InspectAI Evaluator:
Step 7: Deploy & Inference
Before (Forge SDK):
After (SageMaker SDK V3) — SageMaker Endpoint:
After (SageMaker SDK V3) — Bedrock:
Additional Training Methods
CPT (Continued Pre-Training)
Before:
After:
DPO (Direct Preference Optimization)
Before:
After:
RLVR (Reinforcement Learning with Verifiable Rewards)
Before:
After:
Iterative Training (Resume from Checkpoint)
Before:
After:
Support