janhq / cortex.cpp

Local AI API Platform
https://cortex.so
Apache License 2.0
2.06k stars 116 forks source link

epic: `cortex ps` and Process Status #1187

Closed dan-homebrew closed 1 month ago

dan-homebrew commented 1 month ago

Goal

Key Questions

Linked PRs

DX

cortex start

cortex stop

cortex ps

gabrielle-ong commented 1 month ago

@vansangpfiev @namchuai v124, cortex ps on Windows seems broken VM: test-windows-app-1-rdp Image

Works well on Mac and Ubuntu

vansangpfiev commented 1 month ago

This is not cortex ps command issue. The root cause is the SIGINT signal (Ctrl + C) terminated the child process (server process). It works well when we use exit() to exit chat. Let me try to handle the SIGINT signal in this case.

vansangpfiev commented 1 month ago

@gabrielle-ong Please update cortex.llamacpp engine to latest (v0.1.34) to use the cortex ps command

cortex engines install cortex.llamacpp
0xSage commented 1 month ago

What attributes are we showing when there are models running?

For reference this is docker: image

gabrielle-ong commented 1 month ago

CLI UX request: cortex ps should show model alias

Models list Image