Just for the record - for who ever will be searching for a similar setup with colab
prerequisitecreate a dedicated Service Account (I was not able to authenticate with a regular User credentials (and not SA)) get SA key ( credentials.json ) Upload json to an ephemeral location (e.g. root of colab)login into ClearML Web UI - Create access key for user - https://clear.ml/docs/latest/docs/webapp/webapp_profile#creating-clearml-credentials prepare credentials` %%bash
export api=cat <<EOF api { web_server: <
> api_server: <
> files_server: <
> credentials { "access_key" = "<clearml USER access_key>" "secret_key" = "<clearmlUSER secret_key>" } } sdk { google.storage { credentials = [ { bucket: "<GCS-BUCKET>" # subdir: "path/in/bucket" # Not required project: "<GCP PROJECT_ID>" credentials_json: "/content/<clearml-SA.json>" }, ] } } EOF
echo "$api" > /root/clearml.conf Client/Task Setup
project_name = new_prj # or what ever you want
experiment_name = 'experiment1' # or whatever
output_uri=' '
When creating a new project
task = Task.init(project_name=project_name, task_name=experiment_name, output_uri=output_uri)
When connecting to an existing Project and want to create a new experiment
task = Task.create(project_name=project_name}, task_name='experiment2')
When connecting to an existing experiment
task=Task.get_task(project_name=project_name, task_name='experiment2')
logger = task.get_logger() `