Skip to main content
warning

🚧 Cortex.cpp is currently under development. Our documentation outlines the intended behavior of Cortex, which may not yet be fully implemented in the codebase.

cortex ps

info

This CLI command calls the following API endpoint:

This command shows the running model and its status.

Usage


cortex ps [options]

For example, it returns the following table:


√ Dependencies loaded in 2882ms
√ Getting models...
√ Running PS command...
┌─────────┬──────────────────────┬───────────────────┬───────────┬──────────┬─────┬──────┐
│ (index) │ modelId │ engine │ status │ duration │ ram │ vram │
├─────────┼──────────────────────┼───────────────────┼───────────┼──────────┼─────┼──────┤
│ 0 │ 'janhq/tinyllama/1b' │ 'llamacpp' │ 'running' │ '7s' │ '-' │ '-' │
└─────────┴──────────────────────┴───────────────────┴───────────┴──────────┴─────┴──────┘
√ API server is offline
## The ps command also provides information on the percentage of system resources being used.
┌─────────┬───────────┬──────────────┬────────────────────────┐
│ (index) │ CPU Usage │ Memory Usage │ VRAM │
├─────────┼───────────┼──────────────┼────────────────────────┤
│ 0 │ '4.13%' │ '83.11%' │ │
│ 1 │ │ │ [ [Object], [Object] ] │
└─────────┴───────────┴──────────────┴────────────────────────┘

Options

OptionDescriptionRequiredDefault valueExample
-h, --helpDisplay help information for the command.No--h