Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/sagemaker/modules/train/model_trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -865,7 +865,7 @@ def _prepare_train_script(
working_dir = f"cd {SM_CODE_CONTAINER_PATH} \n"
if source_code.source_dir.endswith(".tar.gz"):
tarfile_name = os.path.basename(source_code.source_dir)
working_dir += f"tar --strip-components=1 -xzf {tarfile_name} \n"
working_dir += f"tar -xzf {tarfile_name} \n"

if base_command:
execute_driver = EXECUTE_BASE_COMMANDS.format(base_command=base_command)
Expand Down
Binary file modified tests/data/modules/script_mode/code.tar.gz
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this just updating or removing? Also is there already an integ for this?

Binary file not shown.