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
Why?
- Standardized access to non-Euclidean embedding models
- Torch-free runtime via ONNX (models published to Hugging Face Hub)
- Simple API —
load()andencode_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 |
ICLR 2025 | PalAvik/hycoclip | |
hycoclip-vit-b |
ICLR 2025 | PalAvik/hycoclip | |
meru-vit-s |
ICML 2023 | facebookresearch/meru | |
meru-vit-b |
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
19c6b3aec0aa1dd9a268fec5b9a1c79e0403e23c89926912d6e3ef71bcea3c0c
|
|
| MD5 |
0b9cf031cba8baad686f2bc9c9162823
|
|
| BLAKE2b-256 |
549d9f319eab3bace5b569d7390dc73953a458d17ea505849091431260a069be
|
Provenance
The following attestation bundles were made for hyper_models-0.1.0.tar.gz:
Publisher:
release.yml on Hyper3Labs/hyper-models
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hyper_models-0.1.0.tar.gz -
Subject digest:
19c6b3aec0aa1dd9a268fec5b9a1c79e0403e23c89926912d6e3ef71bcea3c0c - Sigstore transparency entry: 882379368
- Sigstore integration time:
-
Permalink:
Hyper3Labs/hyper-models@57fd1686f092634f5b930d6e099c12a731772ea2 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/Hyper3Labs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@57fd1686f092634f5b930d6e099c12a731772ea2 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
15125835d7a444bb4c023eb3d2dbd4313d971408d32bee5c276ca782fafb639e
|
|
| MD5 |
e4534bfa2de6f3b9ae5b91598a7c5acd
|
|
| BLAKE2b-256 |
2ab423d57a97df843519f473012487e019394fd08916e5cdcb81817d4f1502ce
|
Provenance
The following attestation bundles were made for hyper_models-0.1.0-py3-none-any.whl:
Publisher:
release.yml on Hyper3Labs/hyper-models
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hyper_models-0.1.0-py3-none-any.whl -
Subject digest:
15125835d7a444bb4c023eb3d2dbd4313d971408d32bee5c276ca782fafb639e - Sigstore transparency entry: 882379430
- Sigstore integration time:
-
Permalink:
Hyper3Labs/hyper-models@57fd1686f092634f5b930d6e099c12a731772ea2 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/Hyper3Labs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@57fd1686f092634f5b930d6e099c12a731772ea2 -
Trigger Event:
push
-
Statement type: