Skip to content

Instantly share code, notes, and snippets.

@prabhatsharma
Last active December 2, 2024 17:06
Show Gist options
  • Save prabhatsharma/c34e634cce4877b2414c189486820f99 to your computer and use it in GitHub Desktop.
Save prabhatsharma/c34e634cce4877b2414c189486820f99 to your computer and use it in GitHub Desktop.
Instructions to setup sagemaker locally
#!/bin/bash
# local sagemaker setup
conda update conda # update conda
conda create -n localsm python==3.7
conda activate localsm
conda install -c conda-forge jupyterlab
conda install pip pandas pytorch scikit-learn
pip install sagemaker
pip install 'sagemaker[local]'
conda install ipykernel
python -m ipykernel install --user --name=localsm --display-name="Local Sagemaker"
# Using Jupyter, but this would obviously work with any IDE (PyCharm, etc.)
jupyter lab
@prabhatsharma
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment