Lightning-AI/pytorch-lightning

CLI for inspecting checkpoints

開放

#5,551 建立於 2021年1月18日

 (2 則留言) (7 個反應) (1 位負責人)Python (3,233 個分叉)batch import
checkpointingdesignfeaturehelp wanted

倉庫指標

星標
 (26,687 顆星)
PR 合併指標
 (平均合併 9天 15小時) (30 天內合併 3 個 PR)

描述

🚀 Feature

A quick way to inspect checkpoint files.

Motivation

We don't know what's inside a checkpoint. Loading one and checking the contents requires us to write a python script. A command line tool could help us load and inspect these checkpoint files conveniently. Useful for debugging too.

Pitch

My implementation is here. Docs

Usage:

> peek path/to/checkpoint.ckpt
displays all top-level variables in a checkpoint file


> peek -i path/to/checkpoint.ckpt
interactive mode, loads the contents in a python interactive shell and let's you modify the contents

peek

Let me know if you want it

cc @borda @tchaton @justusschock @awaelchli @ananthsub @ninginthecloud @rohitgr7

貢獻者指南