Open
Description
Describe the bug
Setting source_dir and entry_point arguments for Estimator in local mode results in wrong entry_point path if the script is not located at the source dir root but inside a sub folder
sagemaker-python-sdk/src/sagemaker/estimator.py
Lines 884 to 890 in 697c465
To reproduce
Using for example
source_dir='/home/ubuntu/src
entry_point='pipeline/program/run.py
results in
self.source_dir='/home/ubuntu/src
self.entry_point='run.py
Which raises a ValueError due to the wrong path:
Expected behavior
Keep entry point path unchanged if source_dir is provided
Screenshots or logs
If applicable, add screenshots or logs to help explain your problem.
System information
A description of your system. Please provide:
- SageMaker Python SDK version: 2.179.0
- Framework name (eg. PyTorch) or algorithm (eg. KMeans):
- Framework version:
- Python version: 3.10
- CPU or GPU:
- Custom Docker image (Y/N):
Additional context
Add any other context about the problem here.