Skip to main content

hugpy-discovery

Hugpy Discovery inventories model files on declared drives. It records model facts, tensors, weight chunks and available copies, then publishes an SQLite export that Wrapper uses to decide which models it can serve.

Installation

Use Python 3.11 or later on a host with readable model storage.

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

Quick start

Replace the example path with a model store. The immutable role lets Discovery inventory a drive while excluding it as a write destination.

hugpy-discovery drives add /data/models immutable
hugpy-discovery scan
hugpy-discovery routes

Start hugpy-discovery serve to browse the record. Use hugpy-discovery watch to track changes to declared drives and refresh the export.

Drives and placement

Declare drives as central, worker or immutable. Discovery records a model once and associates its files with each drive that holds them. It compares the measured cost of loading a complete copy with the cost of moving and then loading one. hugpy-discovery routes MODEL explains a choice. hugpy-discovery accommodate MODEL prepares the selected copy and may write model files on a writable drive.

Consumer interface

The api_*_v1 tables in export.sqlite3 describe the model inventory for other processes. hugpy-discovery export refreshes them from the record, and hugpy-discovery request accepts JSON requests. Engine’s export supplies backend capabilities used when matching files to engines.

For host-wide operation, hugpy-discovery system install provisions the watcher under systemd and sets access to declared drives. Its state lives under /var/lib/hugpy/discovery. Per-user operation defaults to ~/.local/share/hugpy/discovery.

Host service

On a systemd host, hugpy-discovery system install provisions the watcher and its data directory. It can declare a drive during installation or apply access permissions for one added later. For a single-user installation the default data directory is ~/.local/share/hugpy/discovery. The system service uses /var/lib/hugpy/discovery. Use hugpy-discovery settings to inspect the effective configuration and hugpy-discovery system status to inspect the service.

Metadata

Release files for hugpy-discovery 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-discovery 0.2.0
File Size Uploaded Provenance Actions
hugpy_discovery-0.2.0.tar.gz 140.3 kB Without provenance Details for hugpy_discovery-0.2.0.tar.gz

Built distribution (wheel)

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

Total release size: 310.9 kB

Release files / hugpy_discovery-0.2.0.tar.gz

Download URL hugpy_discovery-0.2.0.tar.gz
Size 140.3 kB
Tags Source
SHA-256 checksum
How to use checksums
716f791bc34ecb0587293f482490aa1c9934664c3368629f6f2401270b8d1755
BLAKE2b-256 checksum
How to use checksums
25ca5c945a880955a6247fef085905bd0d4bd3ac94aac71e5a1a5d18f6e702a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / hugpy_discovery-0.2.0-py3-none-any.whl

Download URL hugpy_discovery-0.2.0-py3-none-any.whl
Size 170.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ec8389245ce0017bff614bb17aff143876e8c1cd63aab5be7ae5d487fb851e23
BLAKE2b-256 checksum
How to use checksums
c8984583df2da2557e58d485a153c51bdcbb3eacca92ebe18c4b0427a681503d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Security for hugpy-discovery 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.

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