question: Keep only the best and the latest artifacts in wandb logger
context: Hey,
  I am not sure if I can currently keep only the best and latest models as a wandb artifact using the WandbLogger? That is, I am looking for a behavior similar to log_model='all', but which keeps only the latest and best models and deletes previous checkpoints from the wandb artifacts of the experiment.
  My checkpoints weigh about 1GB and I don't want to keep the entire history of checkpoints with the log_model='all' flag, but rather only the best and the latest models. I thought about inheriting from the WandbLogger and following the guideline here:
  https://gitbook-docs.wandb.ai/guides/artifacts/api#cleaning-up-unused-versions
  Any thoughts?
  Maybe this should be a feature request?
answer: Hey @ohayonguy
  Given the docs of WandbLogger I think you can just set log_model=True. This will then upload the checkpoints at the end of training. And if you have set save_top_k=n it will only upload the best n ones.