Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

sagemaker-start 685 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
  1. #!/bin/bash
  2. #set -e
  3. set -x
  4. # create symlinks if not existing
  5. echo "Creating symlinks"
  6. [ ! -L "/home/ec2-user/.torch" ] && ln -s /home/ec2-user/SageMaker/.torch /home/ec2-user/.torch
  7. [ ! -L "/home/ec2-user/.fastai" ] && ln -s /home/ec2-user/SageMaker/.fastai /home/ec2-user/.fastai
  8. # check if the onCreate script has finished running
  9. if [ -f "/home/ec2-user/.fastai/create_complete" ]; then
  10. echo "Running the standard start script"
  11. /home/ec2-user/SageMaker/.fastai/std-start-script.sh
  12. echo "Running the custom start script"
  13. /home/ec2-user/SageMaker/custom-start-script.sh
  14. else
  15. echo "Still running create script..Exiting"
  16. fi
  17. echo "Finished running onStart script"
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...