Skip to main content

A helper library providing a way to work with the lists of generation models, utility models, and any other related files required for the AI-Horde ecosystem.

Project description

Horde Model Reference

Haidra Logo

Build Status PyPI Version Supported Python versions License: AGPL v3

Horde Model Reference is the authoritative source for AI model metadata in the AI-Horde ecosystem: download URLs, SHA-256 checksums, baselines, NSFW flags, and capabilities for image generation, text generation, and utility models used by workers, clients, and services.

It is three things in one package: a set of JSON reference files, a Python library, and a FastAPI service.

Install

pip install horde-model-reference

Quick try

from horde_model_reference import ModelReferenceManager, MODEL_REFERENCE_CATEGORY

manager = ModelReferenceManager()  # auto-fetches from the PRIMARY server, caches in memory

models = manager.get_model_reference(MODEL_REFERENCE_CATEGORY.image_generation)
for name, model in models.items():
    print(f"{name}: {model.baseline}, NSFW={model.nsfw}")

No configuration needed -- the defaults work out of the box. The library runs in read-only REPLICA mode, fetching from models.aihorde.net with automatic fallback to the original GitHub repositories if the PRIMARY server is unreachable.

For the fluent query API (filter, sort, aggregate, merge sources), HTTP API access, deploying your own server, or contributing model data, see the full documentation.

Documentation

Full docs at horde-model-reference.readthedocs.io/en/latest/. Build locally with mkdocs serve.

Runnable examples live in the examples/ directory.

Contributing

Contributions are welcome. Read CONTRIBUTING.md for setup and guidelines, and see the open issues.

Community

License

Licensed under the GNU Affero General Public License v3.0 (AGPL-3.0). See LICENSE for the full text. If you run a modified version as a network service, you must make your source code available to users. See the GNU AGPL FAQ for details.

Related Projects

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

horde_model_reference-5.2.0.tar.gz (783.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

horde_model_reference-5.2.0-py3-none-any.whl (356.3 kB view details)

Uploaded Python 3

File details

Details for the file horde_model_reference-5.2.0.tar.gz.

File metadata

  • Download URL: horde_model_reference-5.2.0.tar.gz
  • Upload date:
  • Size: 783.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for horde_model_reference-5.2.0.tar.gz
Algorithm Hash digest
SHA256 c7dd64645a4c0c4e98c098e0852ef089ab300de2ba5ea584764f76618df6472c
MD5 a8bee1c3d31326fd2d4446b62df6cae8
BLAKE2b-256 a42743fbc5efc84f8e7a57e14fbbdefa5d875d61e4e4fbbde7fb5f86229e29ee

See more details on using hashes here.

Provenance

The following attestation bundles were made for horde_model_reference-5.2.0.tar.gz:

Publisher: release.yml on Haidra-Org/horde-model-reference

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file horde_model_reference-5.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for horde_model_reference-5.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 02028c60c0a7bd32c017a966a3e7fa63f96a5ac0411d0fb5c366fac93e29d543
MD5 916f3e38b99ab820d070978858a5be05
BLAKE2b-256 8f0334a4e7165a6389409a1632474fe1c2d92bd267bcbf2dcd8e1b69f127fc5d

See more details on using hashes here.

Provenance

The following attestation bundles were made for horde_model_reference-5.2.0-py3-none-any.whl:

Publisher: release.yml on Haidra-Org/horde-model-reference

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page