pi-omlx-tps
v0.1.2
Published
Pi extension that shows OMLX inference data in the processing prompt
Downloads
357
Readme
pi-omlx-tps
This extension is basic and adds omlx stat reporting using the built in omlx stats endpoint. The goal was to bring the stats given by the webui to the processing prompt. It also adds data each turn to the bottom status bar on tokens in/out and time elapsed.
Example:
⠴ Loading model... (17.0% complete, 31.2s remaining, 3.4gb/25.4gb used)
⠼ Preparing... (91% cached, 6.4s queued, 30.1gb/35.6gb used)
⠼ Prefilling... (83.7% complete, 31.6s remaining, 22.7gb/25.1gb used)
⠸ Generating... (20.0 tok/s, 2.1s elapsed, 20.1gb/25.3gb used)
The maxmium ram defaults to the hard limit value, not soft. This is not configurable at the moment.
If you have a api key configured in the web ui, the extension will use the api key stored in the pi auth storage as a first try. This lets it work with pi-omlx-picker. It is reccomended to just use this for omlx model configuration and API key confgiuration. As a fall back, it will use the OMLX_API_KEY env variable.
Install
# npm
pi install npm:pi-omlx-stats
# git
pi install git:github.com/nathandaven/pi-omlx-tpsConfiguration
Below env variables are available (defaults given):
# Used to create a log file. Log file stored at `/tmp/omlx-tps.log`. Set to 1 to enable.
OMLX_TPS_EXTENSION_DEBUG=
# Omlx base url.
OMLX_BASE_URL="http://127.0.0.1:8000/v1"
# If you have set up an API key for the web ui, set it here.
OMLX_API_KEY=Screenshots




License
MIT
