Sub topic 8
Other options: TensorBoard, Comet, ClearML, Aim, and more
This chapter assumes you have read the earlier chapters on the shared run data model and on MLflow and Weights & Biases. You should be able to read short Python training scripts and run commands in a terminal. MLflow and Weights & Biases are the two most common choices, but several other trackers fit particular situations better. The goal here is to learn what each one is for, not to build a full ranking.
Why look beyond the two big names
A tracker choice usually comes down to a constraint, not a feature list. Common constraints are:
- You already use a framework that ships a viewer.
- You need to run orchestration and tracking in one open-source system.
- Your cloud provider already offers a managed option.
- You need to compare thousands of runs quickly in a self-hosted UI.
Every tracker in this chapter records the same things you already know: parameters, metric series, tags, and artifacts, grouped into runs. Only the surrounding system differs. Keep that in mind, because it makes the tools easier to compare.
TensorBoard
TensorBoard began as the visualization tool for TensorFlow, and PyTorch can write to it through torch.utils.tensorboard. It is a viewer over files, not a tracking server.
How it works
Your training code writes event files into a log directory. The tensorboard command reads that directory and serves a web UI. There is no database, no user accounts, and no central service. Each subdirectory under the log directory shows up as one run.
from torch.utils.tensorboard import SummaryWriter
writer = SummaryWriter(log_dir="runs/baseline")
for step, auc in enumerate([0.84, 0.88, 0.91]):
writer.add_scalar("val_auc", auc, step)
writer.add_hparams(
{"max_depth": 6, "learning_rate": 0.1},
{"hparam/val_auc": 0.91},
)
writer.close()Start the viewer with tensorboard --logdir runs. This example needs both torch and tensorboard installed.
Strengths
- It is free, local, and needs no setup beyond one package.
- It displays scalars, histograms, images, text, embeddings, and model graphs well.
- It has a profiler plugin for TensorFlow and PyTorch performance work.
- Other trackers, including MLflow and Weights & Biases, can import or sync TensorBoard logs.
Limits
- Parameters are second-class. The HParams tab exists, but you must log hyperparameters and final metrics deliberately. Note that
add_hparamswrites into a separate timestamped subdirectory, so the hyperparameters show up as a different run from your metric curves unless you handle that. - There is no artifact store and no model registry.
- Sharing means sharing the log directory. You can put it on a shared disk or object store, but there is no access control.
- The hosted sharing service, TensorBoard.dev, was shut down in 2023. Do not plan around it.
TensorBoard suits solo work, quick debugging of loss curves, and profiling. It is a poor fit once a team needs to answer "which run produced this model?"
Comet
Comet is a hosted-first tracker with a commercial model, similar in spirit to Weights & Biases. It also offers private-cloud and on-premises deployments for organizations that cannot send data out.
from comet_ml import Experiment
experiment = Experiment(project_name="churn-model")
experiment.set_name("baseline")
experiment.log_parameters({"max_depth": 6, "learning_rate": 0.1})
for step, auc in enumerate([0.84, 0.88, 0.91]):
experiment.log_metric("val_auc", auc, step=step)
experiment.end()The API key is read from the COMET_API_KEY environment variable or a config file, not from code. Import comet_ml before your ML framework, because automatic logging works by patching the framework when it loads.
Comet's notable points:
- It records code, installed packages, system metrics, and git information automatically.
- It has a model registry and artifact versioning.
- It offers evaluation and tracing tools for LLM applications under a separate product line.
Comet is worth a trial if you want the hosted experience of Weights & Biases and prefer its pricing, deployment options, or feature mix. Compare the two on your own workload, because plan limits and features change over time.
ClearML
ClearML is an open-source platform whose tracker is only one part. It also includes remote execution, pipelines, and data management. That makes it different in kind from the tools above.
Architecture
A ClearML deployment has these parts:
- A server with a web UI and an API. It stores experiment metadata and links to artifacts.
- A file server or object storage for artifacts.
- Optional agents, which are worker processes on your machines. An agent pulls a queued task, rebuilds the environment, and runs the code.
from clearml import Task
task = Task.init(project_name="churn-model", task_name="baseline")
params = task.connect({"max_depth": 6, "learning_rate": 0.1})
logger = task.get_logger()
for step, auc in enumerate([0.84, 0.88, 0.91]):
logger.report_scalar(title="val_auc", series="val", value=auc, iteration=step)
task.close()Task.init is ClearML's name for a run. It captures git state, uncommitted changes, command-line arguments, and installed packages by default. From the UI you can clone a task, edit its parameters, and send it to a queue for an agent to execute.
When it fits
ClearML fits teams that want one open-source system for tracking, scheduling jobs on their own GPUs, and data versioning. The cost is operational weight. You run and maintain more components than you would for a bare MLflow server, and you adopt ClearML's idea of a task. If you only need logging, it is more than you need.
Aim
Aim is an open-source, self-hosted tracker built around fast exploration of many runs. Its UI is designed for grouping, filtering, and plotting large numbers of metric series.
from aim import Run
run = Run(experiment="churn-model")
run["hparams"] = {"max_depth": 6, "learning_rate": 0.1}
for step, auc in enumerate([0.84, 0.88, 0.91]):
run.track(auc, name="val_auc", step=step, context={"subset": "val"})
run.close()Aim stores data in a local .aim directory in the working directory. Run aim up in the same directory to start the UI. A remote tracking server is available when several machines must write to one repository.
Notice two things in the code. Parameters are stored as nested dictionary entries on the run, not through a dedicated call. Metrics carry a context dictionary, so one metric name can have separate series, such as train and val.
Aim is a good fit when your main pain is comparing many runs and you want an open-source tool you host yourself. It has no built-in model registry comparable to MLflow's, so check what you need beyond metric exploration.
Other options worth knowing
| Option | What it is | Typical fit |
|---|---|---|
| DVC experiments | Git-based experiment tracking built on data version control | Teams that already version data and pipelines with Git and want experiments as commits or refs |
| Cloud-managed trackers | Amazon SageMaker, Google Vertex AI, and Azure Machine Learning each have experiment tracking, and some expose MLflow-compatible APIs | Teams committed to one cloud who want identity, billing, and storage handled there |
| Managed MLflow | MLflow hosted by a vendor such as Databricks, or by a cloud provider | Teams who want the MLflow API without running the server |
| Guild AI, Sacred | Lightweight open-source tools that wrap scripts and record runs | Small projects that want tracking without changing code much |
| Neptune | A hosted tracker focused on large-scale metadata logging | Check the product's current status and terms before adopting it |
Treat the last row as a reminder. Vendor products change, get acquired, and sometimes shut down, as TensorBoard.dev did. Before you commit, confirm that the product is actively maintained and that you can export your data.
Matching a tool to a situation
The diagram is a starting point, not a verdict. Real teams have more than one constraint, and the chapters on evaluation criteria and the decision process show how to weigh them.
Common errors when adopting a less common tracker
- Treating the first working demo as proof of fit. Every tracker can log a scalar. The differences appear when you need access control, large artifacts, or fifty concurrent users.
- Ignoring where data is stored. Aim's
.aimdirectory and TensorBoard's log directory live wherever you ran the command. If you run from different working directories, you create separate repositories and cannot compare their runs. - Mixing up a run's parameters and its metrics in TensorBoard. As noted above,
add_hparamscreates a separate subdirectory, which splits one logical run into two entries. - Importing order problems. Trackers that patch frameworks, such as Comet, expect to be imported first. If automatic logging is silent, check the import order.
- Underestimating operations. A self-hosted ClearML or MLflow server needs backups, upgrades, and authentication. Budget time for that.
- Logging to several trackers directly in training code. This couples your code to every tool. A thin interface, covered in a later chapter, avoids it.
Importing existing logs
If you already have TensorBoard logs, you rarely need to start over. Several trackers can read event files, so a team can keep using TensorBoard during a trial and sync the same logs into another tool. This lowers the cost of testing a second tracker. Check each tool's documentation for the current import or sync method, since these integrations change between releases.
Summary of trade-offs
| Tool | Hosting | Strongest point | Main gap |
|---|---|---|---|
| TensorBoard | Local files | Zero setup, rich visualization of training internals | No registry, weak run metadata, no access control |
| Comet | Hosted, private cloud, on-premises | Polished hosted experience | Commercial pricing, plan limits |
| ClearML | Self-hosted or hosted | Tracking plus orchestration and data management | More components to run |
| Aim | Self-hosted | Fast exploration of many runs | Narrower scope than full platforms |
The next chapters move from individual tools to the cross-cutting questions: where the data lives, what it costs, and how to keep your code portable.
Exercise
Your team of six trains models on a shared on-premises GPU cluster, cannot send data to external services, and wants one system that tracks experiments and also schedules training jobs onto the cluster. Which tool from this chapter is the closest match, and what is the main cost of choosing it over a bare TensorBoard setup?
Show answer
ClearML is the closest match. It is open source, can be fully self-hosted, and its agents run queued tasks on your own machines, so tracking and scheduling live in one system. The cost is operational: you run and maintain a server, a file or object store, and agents, and you adopt ClearML's task model. TensorBoard needs none of that, but it offers no job scheduling, access control, artifact storage, or registry.
Exercise
A colleague logs hyperparameters with writer.add_hparams(...) and metric curves with writer.add_scalar(...) in TensorBoard, and then reports that the two never appear together for one run. What is the likely cause, and what should the team do if it needs parameters and metrics tied together reliably?
Show answer
add_hparams writes to its own timestamped subdirectory under the log directory, and the viewer treats each subdirectory as a separate run, so the hyperparameters and the metric curves land in different runs. The team can work around it by careful log-directory handling, but if tying parameters to metrics matters, a tracker with an explicit run object, such as MLflow, Aim, ClearML, or Comet, records them on the same run by design.