Skip to main content

hugpy-core

Hugpy Core connects workers into a fleet. Clients send an inference request to one address. Core finds a Wrapper offering the requested model, relays the request and streams its answer. Operators use the web console to inspect workers, models, calls and grading results.

Installation

Use a Python 3.11 or later environment on the coordinating host. A local GPU is optional. Core stores fleet state in SQLite.

python -m pip install 'hugpy-core>=0.5,<0.6'

Quick start

Start Core in one terminal.

hugpy-core serve

Open http://127.0.0.1:7002/console. If this host also has a system-installed Wrapper, run the following in another terminal.

hugpy-core connect local
hugpy-core wrappers
hugpy-core models

For a remote worker, use hugpy-core connect URL --key KEY with the Wrapper address and its key. A worker behind a router can initiate the connection with hugpy-wrapper system register --core URL --core-key KEY --link.

Compute

hugpy-core compute shows connected workers, their memory and their serving model variations. Select a worker by name to inspect its routing, residency and hardware. Add --json to include the complete worker report and per-model measurements. The same controls are available in the web Compute panel.

hugpy-core compute
hugpy-core compute --worker NAME --query gguf --json
hugpy-core compute options --worker NAME --model 'org/model::variation'
hugpy-core compute test-history --worker NAME

Use a full model_key from the worker report for model operations. compute assign adds a routing allocation, compute pin protects it, and compute load asks the worker to load the variation. hugpy-core compute --help lists the available controls and options.

Inference and discovery

GET /v1/models lists models across connected workers. Model entries describe supported endpoints. Send the request to the advertised path, such as POST /v1/chat/completions. The responding worker owns queueing, memory placement and execution. GET /v1/requests/{request_id} reports progress, and GET /v1/artifacts/{id} retrieves files produced by a call.

GET /api/schema describes Core routes and inspects standalone services registered under /usr/share/hugpy/arms.d. Use it to discover the routes available on a particular installation.

Model downloads

With the Downloader daemon running on the same host, Core exposes the Hugging Face and Civitai catalogs and the download queue under /api/downloads/. The console can inspect a job, enqueue a download, cancel or retry it. Core forwards these operations to Downloader on loopback. HUGPY_DOWNLOADER_HTTP_PORT sets the upstream port (default 8767).

Grading and operations

Use hugpy-core schedule MODEL to inspect the grading queries for a model. hugpy-core test-fire WRAPPER submits the next outstanding queries as inference calls on that worker. hugpy-core rounds lists runs, and hugpy-core grading reports results derived from the recorded answers.

Inference activity by worker in the Hugpy metrics console

Core binds to loopback by default. Console reads and some console actions are available to callers who can reach it. Worker enrollment and key management require credentials. The API-key setting controls whether model calls need a key. Configure access at the proxy when making the console reachable outside the host.

For a host service, run hugpy-core system install with administrative privileges from an installation readable by the service account. The service keeps its database and keys under /var/lib/hugpy/core. Per-user runs use ~/.local/share/hugpy/core by default.

Metadata

Release files for hugpy-core 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hugpy-core 0.5.0
File Size Uploaded Provenance Actions
hugpy_core-0.5.0.tar.gz 7.0 MB Without provenance Details for hugpy_core-0.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hugpy-core 0.5.0
File Interpreter ABI Platform Actions
hugpy_core-0.5.0-py3-none-any.whl Python 3 none any Details for hugpy_core-0.5.0-py3-none-any.whl

Total release size: 14.1 MB

Release files / hugpy_core-0.5.0.tar.gz

Download URL hugpy_core-0.5.0.tar.gz
Size 7.0 MB
Tags Source
SHA-256 checksum
How to use checksums
341b13acfe8462a29768f56027c7177c712b97480926572efc69d1701b9b7c01
BLAKE2b-256 checksum
How to use checksums
2782f18fbc2b6f3ec6ebdd2803b6e3ca03638f9c79f8645ecc66df9b3609b26a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / hugpy_core-0.5.0-py3-none-any.whl

Download URL hugpy_core-0.5.0-py3-none-any.whl
Size 7.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
58d2b8a9077d57efdcd9c9290e816a3c851f64b1ed62892649621de6b1bc13dc
BLAKE2b-256 checksum
How to use checksums
9e55df1bf13e7ca9e07adfd2a3d66f092f90b3c9e79cb0260bfde9c199e3956f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Security for hugpy-core 0.5.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.5.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page