Skip to main content

A model zoo for non-Euclidean embedding models (hyperbolic, spherical, product manifolds)

Project description

hyper-models

A model zoo for non-Euclidean embedding models
Hyperbolic · Spherical · Product Manifolds

Hugging Face License: MIT


Why?

  • Standardized access to non-Euclidean embedding models
  • Torch-free runtime via ONNX (models published to Hugging Face Hub)
  • Simple APIload() and encode_images()

Installation

pip install hyper-models

Usage

import hyper_models
from PIL import Image

# List available models
hyper_models.list_models()
# ['hycoclip-vit-s', 'hycoclip-vit-b', 'meru-vit-s', 'meru-vit-b']

# Load model (auto-downloads from Hugging Face Hub)
model = hyper_models.load("hycoclip-vit-s")
model.geometry  # 'hyperboloid'
model.dim       # 513

# Encode PIL images
images = [Image.open("image.jpg")]
embeddings = model.encode_images(images)  # (1, 513) ndarray

# Get model info
info = hyper_models.get_model_info("hycoclip-vit-s")
info.hub_id     # 'mnm-matin/hyperbolic-clip'
info.license    # 'CC-BY-NC'

# Low-level: preprocess images yourself
batch = hyper_models.preprocess_images(images)  # (B, 3, 224, 224)
embeddings = model.encode(batch)

Models

Hyperbolic

Model Available Paper Code
hycoclip-vit-s HF ICLR 2025 PalAvik/hycoclip
hycoclip-vit-b HF ICLR 2025 PalAvik/hycoclip
meru-vit-s HF ICML 2023 facebookresearch/meru
meru-vit-b HF ICML 2023 facebookresearch/meru
hyp-vit CVPR 2022 htdt/hyp_metric
hie CVPR 2020 leymir/hyperbolic-image-embeddings
hcnn ICLR 2024 kschwethelm/HyperbolicCV

Spherical

Model Available Paper Code
sphereface CVPR 2017 wy1iu/sphereface
arcface CVPR 2019 deepinsight/insightface

Product Manifolds

Model Available Paper Code
hyperbolics ICLR 2019 HazyResearch/hyperbolics

Export Tooling

This repo also contains tooling to export PyTorch models to ONNX:

cd export/hycoclip
uv run python export_onnx.py --checkpoint model.pth --onnx model.onnx

See export/hycoclip/README.md for details.

References

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

hyper_models-0.1.0.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

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

hyper_models-0.1.0-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file hyper_models-0.1.0.tar.gz.

File metadata

  • Download URL: hyper_models-0.1.0.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for hyper_models-0.1.0.tar.gz
Algorithm Hash digest
SHA256 19c6b3aec0aa1dd9a268fec5b9a1c79e0403e23c89926912d6e3ef71bcea3c0c
MD5 0b9cf031cba8baad686f2bc9c9162823
BLAKE2b-256 549d9f319eab3bace5b569d7390dc73953a458d17ea505849091431260a069be

See more details on using hashes here.

Provenance

The following attestation bundles were made for hyper_models-0.1.0.tar.gz:

Publisher: release.yml on Hyper3Labs/hyper-models

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

File details

Details for the file hyper_models-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: hyper_models-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for hyper_models-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 15125835d7a444bb4c023eb3d2dbd4313d971408d32bee5c276ca782fafb639e
MD5 e4534bfa2de6f3b9ae5b91598a7c5acd
BLAKE2b-256 2ab423d57a97df843519f473012487e019394fd08916e5cdcb81817d4f1502ce

See more details on using hashes here.

Provenance

The following attestation bundles were made for hyper_models-0.1.0-py3-none-any.whl:

Publisher: release.yml on Hyper3Labs/hyper-models

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