Skip to content

fix/issue 5897 crlf sm train - #6088

Open
wasim-builds wants to merge 1 commit into
aws:masterfrom
wasim-builds:fix/issue-5897-crlf-sm-train
Open

fix/issue 5897 crlf sm train#6088
wasim-builds wants to merge 1 commit into
aws:masterfrom
wasim-builds:fix/issue-5897-crlf-sm-train

Conversation

@wasim-builds

@wasim-builds wasim-builds commented Jul 23, 2026

Copy link
Copy Markdown

Fixes #5897

Problem

ModelTrainer writes files with platform-default line endings, causing CRLF/LF inconsistencies on Windows.

Fix

Explicitly normalize line endings to LF when writing training artifacts.

Scope

Single-line change in sagemaker-train/src/sagemaker/train/model_trainer.py.

Verification

Training artifacts now have consistent LF line endings regardless of OS.

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.

Windows host writes sm_train.sh with CRLF in SDK v3, causing SageMaker training job bootstrap failure ($'\r': command not found)

1 participant