Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
umm-dev
/
ShaNet
like
1
Text Generation
lmsys/lmsys-chat-1m
English
License:
gpl-3.0
Model card
Files
Files and versions
Community
4
main
ShaNet
/
test.py
umm-dev
Upload 8 files (
#1
)
336661a
verified
2 days ago
raw
Copy download link
history
blame
contribute
delete
214 Bytes
import
torch
try
:
ckpt = torch.load(
"out/ckpt.pt"
, map_location=
"cpu"
)
print
(
"✅ Checkpoint has been loaded successfully"
)
except
Exception
as
e:
print
(
"❌ Failed to load the checkpoint:"
, e)