Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ckpt_path in Trainer accepts URIs to automatically load checkpoints from remote paths #19849

Open
aretor opened this issue May 5, 2024 · 0 comments
Labels
feature Is an improvement or enhancement needs triage Waiting to be triaged by maintainers

Comments

@aretor
Copy link

aretor commented May 5, 2024

Description & Motivation

If I set up a Trainer with a WandbLogger and set log_model=True, I get that my model is saved locally and in a W&B server.

If I want to retrieve the model from the server I have to use the W&B use_artifact methods and the download methods to first retrieve the model, as described here

What I would like to have instead is to not specify the W&B logic explicitly and download the model by just passing a URI with the remote string, (e.g. wandb://user/project/model-run_id:version) as the ckpt_path in the Trainer, along with the WandbLogger.

In short, I would like to do something like that:

trainer = Trainer(logger=my_wandb_logger, "wanb://user/project/model-run_id:version")

Pitch

Specify a URI to a remote resource, automatically download it, and load it in the Trainer.

Alternatives

Write explicitly the W&B logic to download the model and then pass the checkpoint path to the Trainer.

Additional context

No response

cc @Borda

@aretor aretor added feature Is an improvement or enhancement needs triage Waiting to be triaged by maintainers labels May 5, 2024
@aretor aretor changed the title ckpt_path in trainer accepts URIs to automatically load checkpoint from remote paths ckpt_path in Trainer accepts URIs to automatically load checkpoints from remote paths May 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Is an improvement or enhancement needs triage Waiting to be triaged by maintainers
Projects
None yet
Development

No branches or pull requests

1 participant