Metadata-Version: 2.4
Name: hugpy-core
Version: 0.1.44
Summary: hugpy central, minimal: live worker registry (register/heartbeat), model->worker pick, and the OpenAI /v1 relay to workers. Lifted from legacy hugpy central without evict-to-fit, discovery, admission or DB state.
Author-email: putkoff <support@hugpy.ai>
License: Proprietary
Project-URL: UI, https://www.npmjs.com/package/@hugpy/ui
Project-URL: Homepage, https://hugpy.ai
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Web Environment
Classifier: Framework :: Flask
Classifier: Intended Audience :: Developers
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Requires-Dist: flask>=2
Requires-Dist: abstract_flask
Requires-Dist: psycopg[binary]>=3
Requires-Dist: hugpy-storage
Requires-Dist: hugpy-engine>=0.3.1
Provides-Extra: test
Requires-Dist: pytest; extra == "test"
Provides-Extra: video
Requires-Dist: hugpy-video>=0.2.7; extra == "video"
Provides-Extra: media
Requires-Dist: hugpy-media>=0.2.7; extra == "media"

# hugpy_core

hugpy central, minimal. Workers (`hugpy_worker`, one per box, over fitevict)
register and heartbeat here; the registry is live in memory. `/v1/chat/completions`
picks an online worker that has the model (resident first; `alloc.worker` pins one)
and relays to its `/infer/stream`. No evict-to-fit, discovery, admission or DB
state — each box's fitevict owns placement and the call log.

    hugpy-core --host 127.0.0.1 --port 7020


### Benchmark call-log history

`POST /llm/benchmark/run` opens a core call-log row before validation or planning.
Accepted runs keep that row pending until their asynchronous outcome is known.
Rejected plans retain their constraint reasons in the core response and error.
The response and `X-Hugpy-Request-Id` expose its request ID.

Benchmark history/status read `call_log`; the JSON state and run archives are no
longer read or written. Existing files are left intact as legacy evidence and
are not converted into invented historical call records. Grading entries store
call pointers and verdicts. History resolves answers and measurements from the
referenced execution records. Each benchmark inference core row points back to
the orchestration row, and its execution pointer identifies the wrapper row.
Pending benchmark rows from a previous core process are marked interrupted.
