You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is the intended workflow to locally store artifacts such as e.g. model checkpoints?
As far as I can see (https://aimstack.readthedocs.io/en/latest/using/artifacts.html) we can use run.log_artifact() to store artifacts that are already on disk and upload them somewhere. This makes sense for S3 / remote storage, but what about local storage? Is there a way to directly store something as an artifact on disk? Basically, I want to store a checkpoint of my model every n epochs.
Something along the line of (here for PyTorch):
log_path=self.run.get_this_from_somewhere() # Get path for current runtorch.save(self.state_dict(), os.path.join(log_path, f"model_{epoch}.pt"))
self.run.log_artifact(os.path.join(log_path, f"model_{epoch}.pt"), name=f"model_{epoch}.pt") # without upload
The text was updated successfully, but these errors were encountered:
❓Question
What is the intended workflow to locally store artifacts such as e.g. model checkpoints?
As far as I can see (https://aimstack.readthedocs.io/en/latest/using/artifacts.html) we can use
run.log_artifact()
to store artifacts that are already on disk and upload them somewhere. This makes sense for S3 / remote storage, but what about local storage? Is there a way to directly store something as an artifact on disk? Basically, I want to store a checkpoint of my model every n epochs.Something along the line of (here for PyTorch):
The text was updated successfully, but these errors were encountered: