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.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-wrapper 0.2.0
File Size Uploaded Provenance Actions
hugpy_wrapper-0.2.0.tar.gz 293.0 kB Without provenance Details for hugpy_wrapper-0.2.0.tar.gz

Built distribution (wheel)

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

Total release size: 613.7 kB

Release files / hugpy_wrapper-0.2.0.tar.gz

Download URL hugpy_wrapper-0.2.0.tar.gz
Size 293.0 kB
Tags Source
SHA-256 checksum
How to use checksums
a1e44dccd75374d8caa931dc9fd29fba54009fb532f9e31102a774121221ee8b
BLAKE2b-256 checksum
How to use checksums
dba61be728fe8f0d88365880015395605b6d3072cc6254dfdde4172bd76a550d
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.0-py3-none-any.whl

Download URL hugpy_wrapper-0.2.0-py3-none-any.whl
Size 320.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5eefa609e21f648ece91dac038863c92947375dfce3cd03f45a55cbe2abd3fb4
BLAKE2b-256 checksum
How to use checksums
1836983e5100add7a7c765222e608b3993883030e19ec52e7a5bfabdb091bcc6
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.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.2.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