Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/OpenGVLab/InternVL
/ save_config
Function
save_config
classification/main_accelerate.py:91–95 ·
view source on GitHub ↗
(config)
Source
from the content-addressed store, hash-verified
89
90
91
def
save_config(config):
92
path = os.path.join(config.OUTPUT,
'config.json'
)
93
with
open(path,
'w'
)
as
f:
94
f.write(config.dump())
95
logger.info(f
'Full config saved to {path}'
)
96
97
98
def
build_criterion(config):
Callers
1
main
Function · 0.70
Calls
1
write
Method · 0.45
Tested by
no test coverage detected