Skip to content

Bug Fixes Model Customization#5558

Open
nargokul wants to merge 6 commits intoaws:masterfrom
nargokul:mc-bug-fix
Open

Bug Fixes Model Customization#5558
nargokul wants to merge 6 commits intoaws:masterfrom
nargokul:mc-bug-fix

Conversation

@nargokul
Copy link
Contributor

@nargokul nargokul commented Feb 16, 2026

Bug 1: inference_config ignored for model customization deployments deploy() accepted inference_config with ResourceRequirements (accelerator count, memory, CPUs) but never passed it to _deploy_model_customization(). Fixed by forwarding inference_config through deploy() and extracting its values into the CreateInferenceComponent API call.

Bug 2: Incorrect compute requirements causing deployment failures _fetch_and_cache_recipe_config() used metadata memory values that exceeded SageMaker limits, passed accelerator counts to CPU instances, and used a wrong artifact path for fine-tuned models. Fixed by using safe defaults (1024 MB memory), dynamically querying EC2 for GPU detection/counts, stripping accelerators for CPU instances, and returning None artifact URL for fine-tuned models.

Bug 3: Base model evaluation uses fine-tuned model weights (sagemaker-train) The EvaluateBaseInferenceModel step in the LLM-as-Judge pipeline template included ModelPackageConfig with SourceModelPackageArn, causing it to load fine-tuned weights instead of the base model. Fixed by removing ModelPackageConfig from the base model evaluation step so it uses only the base model from the public hub.

More info: https://tiny.amazon.com/1icjlpkmh


The train integ tests seem to be failing with a ResourceLimitExceeded Error . We will need to track this fix separately .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments