Exscientia / physicsml

A package for all physics based/related models
MIT License
40 stars 1 forks source link

Weights and Biases (wandb) integration #15

Closed JoshRackers closed 4 months ago

JoshRackers commented 4 months ago

I'm wondering if there are plans to integrate Weights and Biases for tracking experiments. I don't imagine this would be a difficult feature to add since W&B is already directly integrated into Lightning. Is it possible to add this in physicsml or would this need to go in molflux?

wardhaddadin1 commented 4 months ago

Hello! Thanks for reaching out.

If it's the logging to WandB you're looking for, then this should work out of the box by specifying the WandbLogger in the trainer config as

trainer = {
    "logger": {
        "name": "WandbLogger",
        "config": {
            **kwargs
        }
    }
}

since it's available here in molflux (and yes you're right, these sort of things would go in molflux).

The artefact tracking/etc.. is not currently supported (since it would have to be explicitly done in the code).

For a less intrusive solution, we recommend DVC which is an excellent open source package for tracking experiments and pipelines. We've found it very good for experimentation. Soon, we might have some examples of how to use DVC with the molflux ecosystem so keep an eye out!

Best, Ward

JoshRackers commented 4 months ago

This worked for W&B! Thanks

On Mon, Feb 12, 2024 at 2:02 PM Ward Haddadin @.***> wrote:

Closed #15 https://github.com/Exscientia/physicsml/issues/15 as completed.

— Reply to this email directly, view it on GitHub https://github.com/Exscientia/physicsml/issues/15#event-11780380858, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB4M3ONALUC5RLMVT57D4BLYTKGRDAVCNFSM6AAAAABDACKYFSVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJRG44DAMZYGA4DKOA . You are receiving this because you authored the thread.Message ID: @.***>