Verta
Search…
How to version code
You can log and track the exact version of the model code as part of an experiment run. This can be done by capturing metadata about the git commit with the specified branch, tag, or commit_hash.
Here is the example to automatically capture git commit information:
1
#Model training
2
#log code versions during experiment runs
3
4
from verta.code import Git
5
run = client.set_experiment_run()
6
run.log_code()
Copied!
This information can be visualized in the web UI.
Here is the example to manually provide git commit information:
1
#Model training
2
#log code versions during experiment runs
3
4
from verta.code import Git
5
run = client.set_experiment_run()
6
# log git information
7
run.log_code(
8
repo_url="[email protected]:VertaAI/modeldb.git",
9
commit_hash="d412a0d9",
10
autocapture=False,
11
)
Copied!
Last modified 3mo ago
Copy link