Download appVerify2.py from DonImages/Testing2: direct link, hf CLI and curl.
- Browser
- Download file 275 Bytes
-
https://huggingface.co/spaces/DonImages/Testing2/resolve/main/appVerify2.py
- Command line
-
hf download hf://spaces/DonImages/Testing2/appVerify2.py
-
curl -L -o appVerify2.py https://huggingface.co/spaces/DonImages/Testing2/resolve/main/appVerify2.py
275 Bytes
| import torch | |
| try: | |
| lora_checkpoint = torch.load("lora_trained_model.pt", map_location="cpu") | |
| print("Checkpoint loaded successfully!") | |
| print(type(lora_checkpoint)) # Print type to verify structure | |
| except Exception as e: | |
| print(f"Error loading checkpoint: {e}") |