However, please note that if you add files to your code and don't git add
them, they will not be detected by git diff
and so won't be updated in the Uncommitted Changes
section
Hi SubstantialElk6 .
ClearML with add you entire script to the uncommitted changes section if its a standalone script (not part of a git repository).
If you run a script that is part of a git repository, the uncommitted changes section will contain the git diff of you work, along with the git repository address, branch, commit id or tag.
In order to re run a clone of this task, the agent running it will need to have the credentials to the repository (in order to clone it)
Hi thanks.
So i suppose ClearML make use of the information in .git folder at the root of the script folder to gather those info.
I have yet to go through thoroughly with ClearML agent. TimelyPenguin76 , so if i run a training with uncommited changes and didn't commit/push after. When i clone the task, isn't ClearML agent unable to pull that script from the git repo?
Another tip - if you have uncommitted changes on top of a commit, you will have to push that commit before the agent can successfully apply the diff in remote mode 😓
SubstantialElk6 it will store these differences in the Uncommitted Changes
section (obtained using the git diff
command). When cloning and running this experiment using a ClearML Agent, the Agent will first clone the repo, than apply the uncommitted changes, so the code it will run will be identical to the one you executed
Just to make sure the point got through, the server will never have your Git credentials, but you can configure a ClearML Agent with these credentials so it can run your experiment.