William Caicedo
11/21/2023, 11:11 AMwith KedroSession.create(...) as session:
session.run(SageMakerPipelinesRunner())
and run a pipeline with kedro-sagemaker from inside a Jupyter notebook?datajoely
11/21/2023, 11:14 AMWilliam Caicedo
11/21/2023, 11:14 AMdatajoely
11/21/2023, 11:15 AMdatajoely
11/21/2023, 11:15 AMWilliam Caicedo
11/21/2023, 11:16 AMkedro sagemaker run from the CLIWilliam Caicedo
11/21/2023, 11:18 AMwith … approach and wanted to check if it was possible for the script to launch the pipelines in sagemaker instead, using the plugin runner instead of the default runnerdatajoely
11/21/2023, 11:20 AMmarrrcin
11/21/2023, 11:29 AMfor i in range(10):
python_variable = f"pipeline_to_run_{i}"
!kedro sagemaker run --pipeline={python_variable}
as a hackmarrrcin
11/21/2023, 11:30 AMwith KedroSession.create(...) as session:
session.run(SageMakerPipelinesRunner())
this approach will not work, since Sagemaker needs a docker image to run your code.
The idea behind the plugin is to stick to local execution (just using kedro run) as long as possible and then once the pipeline is implemented, run it on sagemaker. SageMaker itself is not the greatest piece of service IMHO.William Caicedo
11/21/2023, 11:37 AMkedro sagemaker run). If this is not possible, I guess I can launch a `subprocess.run(["kedro","sagemaker","run"])`and somehow pass different parameters to each run?
Or maybe there’s a whole different approach that works best in this casemarrrcin
11/21/2023, 1:34 PM--auto-build flag to kedro sagemake run).
2. If you want to run the same pipeline multiple times with different parameters in SageMaker, you can use kedro sagemaker run --params='<params JSON>' . Note that this --params is different from kedro run --params, because we DO support dicts/lists etc., so you can override any parameter.Nok Lam Chan
11/21/2023, 4:55 PMIf you want to run the same pipeline multiple times with different parameters in SageMaker, you can useIs it the same syntax. Note that thiskedro sagemaker run --params='<params JSON>'is different from--params, because we DO support dicts/lists etc., so you can override any parameter.kedro run --params
kedro run use? Is it possible to add this back to kedro?William Caicedo
11/21/2023, 5:59 PMauto-build cause I use Apple silicon and need to specify a target architecture for the image. I might try my hand at contributing such option to the plugin.
Also, regarding #2, is it possible to specify tags/pipeline as well?marrrcin
11/21/2023, 9:22 PM