I built a local-first alternative to W&B with the same syntax

Hi everyone! Wanted to share a project that I've been working on at Hugging Face. It's called Trackio and it lets you do experiment tracking in Python for free while keeping all of your logs & data local. It uses the same syntax as wandb so you could literally do:

```py import trackio as wandb import random import time

runs = 3 epochs = 8

for run in range(runs): wandb.init( project="my-project", config={"epochs": epochs, "learning_rate": 0.001, "batch_size": 64} )

for epoch in range(epochs):
    train_loss = random.uniform(0.2, 1.0)
    train_acc = random.uniform(0.6, 0.95)

    val_loss = train_loss - random.uniform(0.01, 0.1)
    val_acc = train_acc + random.uniform(0.01, 0.05)

    wandb.log({
        "epoch": epoch,
        "train_loss": train_loss,
        "train_accuracy": train_acc,
        "val_loss": val_loss,
        "val_accuracy": val_acc
    })

    time.sleep(0.2)

wandb.finish() ```

Anyways, if you have any feedback, I'd love to grow this with the ML community here: https://github.com/gradio-app/trackio

I built a local-first alternative to W&B with the same syntax

2 comments · 96% upvoted · other discussions

comments

[deleted]

[deleted]

k_means_clusterfuck

Tensorboard is solid, but it's about time we got something a little more modern and sexy

the__storm

More specifically, OP: What advantages does this have over Tensorboard? (aside from the wandb API)