Skip to main content

hugpy-wrapper

Hugpy Wrapper serves models on one worker. It exposes OpenAI-compatible inference routes, queues requests and chooses a placement that fits the worker’s available GPU and host memory.

Installation

Use Python 3.11 or later. For inference, install Hugpy Discovery and the 0.4 worker edition of Hugpy Engine on the same host. Make their commands available on the Wrapper process’s PATH.

python -m pip install 'hugpy-wrapper>=0.2,<0.3'

Quick start

After declaring model drives in Discovery and installing a suitable engine, start the worker.

hugpy-wrapper serve

Run hugpy-wrapper in a second terminal to open its console. Inspect /health at the configured worker address, then request GET /v1/models to find the model identifiers this worker advertises.

How a request runs

  1. Discovery supplies the model files, tensor facts and drive route through its SQLite export. Wrapper can ask Discovery to prepare a model on its selected drive.
  2. Engine publishes the model formats, request inputs and allocation methods each backend supports. Wrapper asks Engine for a launch command and starts the child process.
  3. Wrapper selects an allocation for the requested context using current free memory and resident models. The queue tracks the call through staging, loading and execution.

Inspect GET /v1/feasibility?model=KEY::VARIATION for the available allocations of a model variation. hugpy-wrapper settings shows the active sources for configuration, including the Discovery and Engine command and export paths.

Running as a service

hugpy-wrapper system install provisions the service account, API key, systemd unit and endpoint descriptor. Run it with administrative privileges from a shared installation path. Use hugpy-wrapper system register --help for Core enrollment options. System state lives under /var/lib/hugpy/wrapper and per-user state defaults to ~/.local/share/hugpy/wrapper.

Core connects directly to Wrapper by default. Give Core a reachable Wrapper URL on the private network. Use hugpy-wrapper system register --core URL --link for workers that must connect outbound. Successful direct enrollment removes a previous reverse-link record. Core pauses disconnected reverse links, and a rejected credential stays idle until the link is registered again.

Metadata

Release files for hugpy-wrapper 0.2.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-wrapper 0.2.1
File Size Uploaded Provenance Actions
hugpy_wrapper-0.2.1.tar.gz 294.1 kB Without provenance Details for hugpy_wrapper-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hugpy-wrapper 0.2.1
File Interpreter ABI Platform Actions
hugpy_wrapper-0.2.1-py3-none-any.whl Python 3 none any Details for hugpy_wrapper-0.2.1-py3-none-any.whl

Total release size: 615.8 kB

Release files / hugpy_wrapper-0.2.1.tar.gz

Download URL hugpy_wrapper-0.2.1.tar.gz
Size 294.1 kB
Tags Source
SHA-256 checksum
How to use checksums
b4de5146a88da28c743cdfd92cd9fd795c988776d87302e9e636125ee89f2d0e
BLAKE2b-256 checksum
How to use checksums
d1ab0e4079e3dd4b0134f183ee017f6e9dd9d1ae9ef38b340a65d80edb8e9911
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / hugpy_wrapper-0.2.1-py3-none-any.whl

Download URL hugpy_wrapper-0.2.1-py3-none-any.whl
Size 321.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
21e62d0fc60ef395b4f046792765cbda009cb75610a211ada2b802f90963e496
BLAKE2b-256 checksum
How to use checksums
3068a45e3db7ff4b6dd4013b9ebc8593839b61c18239a32eb620c673c8737aba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Security for hugpy-wrapper 0.2.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.2.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