aws / sagemaker-python-sdk

A library for training and deploying machine learning models on Amazon SageMaker
https://sagemaker.readthedocs.io/
Apache License 2.0
2.09k stars 1.14k forks source link

"local code" strips the entry point path #1597

Open litaws opened 4 years ago

litaws commented 4 years ago

Describe the bug I cannot seem to run sagemaker in "local code" mode with an entry point that is not in the root of the source path. I think this is the reason (or one of them)

To reproduce place the entry point file in one (or more) folders under source_dir (i.e. not in the root folder itself, but a child thereof), and use LocalcSession() with "local code"

by "local code" I mean setting estimator.sagemaker_session.config = dict(local=dict(local_code=True))
before calling estimator.fit(...)

again, see here

Expected behavior A clear and concise description of what you expected to happen.

System information A description of your system. Please provide:

Additional context Add any other context about the problem here.

unibeck commented 3 years ago

I am having this issue as well. I found a workaround for it, but it is not pretty.

austinmw commented 1 year ago

Any updates on this?