Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/InternLM/InternBootcamp
/ _get_cpu_memory
Function
_get_cpu_memory
verl/scripts/diagnose.py:208–213 ·
view source on GitHub ↗
Get the total CPU memory capacity in GB.
()
Source
from the content-addressed store, hash-verified
206
207
208
def
_get_cpu_memory():
209
""
"
210
Get the total CPU memory capacity in GB.
211
""
"
212
memory = psutil.virtual_memory()
213
return
memory.total / (1024**3)
214
215
216
def
_get_gpu_info():
Callers
1
_get_system_info
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected