nos.common.system
nos.common.system ¶
cpu_info
cached
¶
sh ¶
Execute shell command, returning stdout.
Source code in nos/common/system.py
get_nvidia_smi ¶
Get nvidia-smi details, if installed.
Parameters:
-
df
(bool
, default:False
) –Return as pandas DataFrame.
Returns:
-
Optional[Union[str, DataFrame]]
–nvidia-smi details as string or DataFrame.
Source code in nos/common/system.py
has_gpu ¶
has_docker ¶
docker_compose_command ¶
Return the docker-compose command.
Source code in nos/common/system.py
has_docker_compose ¶
is_inside_docker ¶
is_apple ¶
is_apple_silicon ¶
Check if CPU is Apple Silicon.
Note (spillai): >> arch = "arm64" if is_apple_silicon() else "x86_64"
Source code in nos/common/system.py
is_aws_inf1 ¶
is_aws_inf2 ¶
has_nvidia_docker ¶
has_nvidia_docker_runtime_enabled ¶
get_torch_info ¶
get_torch_cuda_info ¶
Get torch CUDA info, if installed and available.
Source code in nos/common/system.py
get_torch_mps_info ¶
Get torch MPS info, if installed and available.
Source code in nos/common/system.py
get_docker_info ¶
Get docker version, if installed.
Source code in nos/common/system.py
get_system_info ¶
Get system information (including CPU, GPU, RAM, etc.)
Source code in nos/common/system.py
check_runtime_dependencies ¶
Check if runtime dependencies are installed.