Skip to content

Commit

Permalink
updated to work with the sagemaker PR container image
Browse files Browse the repository at this point in the history
  • Loading branch information
azograby committed May 7, 2024
1 parent bf3be9a commit 74028e2
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions use-cases/text-to-image-fine-tuning/kohya-ss-fine-tuning.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -183,17 +183,14 @@
"!pip install git-remote-codecommit\n",
"\n",
"# Clone the CodeCommit repository\n",
"# ************** IMPORTANT NOTE: Make sure the region and the repository name below match the CodeCommit repository name that was created in Step One **************\n",
"# **************\n",
"!git clone codecommit::us-west-2://$CODECOMMIT_REPO_NAME /home/sagemaker-user/$CODECOMMIT_REPO_NAME\n",
"\n",
"# Change directories because this is where we cloned the repo in the step above\n",
"# We will clone in a separate git directory because we don't want it to conflict with the amazon-sagemaker-examples repo that we cloned earlier\n",
"# Change directories to the newly cloned repo\n",
"os.chdir(\"/home/sagemaker-user/\" + os.environ[\"CODECOMMIT_REPO_NAME\"])\n",
"\n",
"# Copy the \"code\" directory files from the amazon-sagemaker-examples repository to the local git repository\n",
"# We will commit the changes to this local git repository to the CodeCommit repository in our AWS account\n",
"!cp -r ~/$LOCAL_CODE_BASE_PATH/code/* ~/$CODECOMMIT_REPO_NAME\n",
"# Copy the \"code\" directory files from the amazon-sagemaker-examples repository to the new git repository\n",
"# We will add files to the new git repository and commit the changes to the CodeCommit repository in our AWS account\n",
"!cp -r ~/$LOCAL_CODE_BASE_PATH/code/* /home/sagemaker-user/$CODECOMMIT_REPO_NAME\n",
"!git add .\n",
"!git -c user.name=Author -c user.email=author@example.com commit -m \"initial commit\"\n",
"!git push origin master:main"
Expand Down

0 comments on commit 74028e2

Please sign in to comment.