Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/InternLM/InternLM
/ load
Function
load
tools/transformers/convert2hf.py:134–137 ·
view source on GitHub ↗
(fp)
Source
from the content-addressed store, hash-verified
132
args = parser.parse_args()
133
134
def
load(fp):
135
with
open(fp,
"rb"
)
as
f:
136
pt_data = torch.load(f, map_location=
"cpu"
)
137
return
pt_data
138
139
folder = args.src_folder
140
target_folder = args.tgt_folder
Callers
1
convert2hf.py
File · 0.85
Calls
1
load
Method · 0.45
Tested by
no test coverage detected