Download src/check.py from jade012/Alpha-250127: direct link, hf CLI and curl.
- Browser
- Download file 131 Bytes
-
https://huggingface.co/jade012/Alpha-250127/resolve/main/src/check.py
- Command line
-
hf download hf://jade012/Alpha-250127/src/check.py
-
curl -L -o check.py https://huggingface.co/jade012/Alpha-250127/resolve/main/src/check.py
131 Bytes
| import torch | |
| loaded_data = torch.load("loss_params.pth") | |
| loaded_metadata = loaded_data["metadata"]['author'] | |
| print(loaded_metadata) |