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.1

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.1
File Size Uploaded Provenance Actions
hugpy_core-0.5.1.tar.gz 12.0 MB Without provenance Details for hugpy_core-0.5.1.tar.gz

Built distribution (wheel)

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

Total release size: 24.1 MB

Release files / hugpy_core-0.5.1.tar.gz

Download URL hugpy_core-0.5.1.tar.gz
Size 12.0 MB
Tags Source
SHA-256 checksum
How to use checksums
77c56e96bd5f289082f05a65cb1d4add28400f5c6e2d0ebf43d4c05d3d21d028
BLAKE2b-256 checksum
How to use checksums
bc1e50fb5c6e0600ee30c5e9d78aad16dae49c838e8fb0d31d9fe61844fb0261
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.1-py3-none-any.whl

Download URL hugpy_core-0.5.1-py3-none-any.whl
Size 12.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
575dbfd0374a031cd1f937d4167b0f60a9e2de3ace84df8fb5cc69d278713a9c
BLAKE2b-256 checksum
How to use checksums
909da0f2d958b342181ce07a68c6ba92343def20a00a79274cf9b93534aa3979
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.1

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.1 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