Hugging Face
Models
Datasets
Spaces
Buckets
new
Docs
Enterprise
Pricing
Website
Tasks
HuggingChat
Collections
Languages
Organizations
Community
Blog
Posts
Daily Papers
Learn
Discord
Forum
GitHub
Solutions
Team & Enterprise
Hugging Face PRO
Enterprise Support
Inference Providers
Inference Endpoints
Storage Buckets
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
xet
Community
4
refs/pr/3
ShaNet
/
test.py
umm-dev
Upload 8 files (
#1
)
336661a
verified
9 months ago
raw
Copy download link
history
blame
Safe
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)