Skip to main content

SERAPH with ONNX Runtime backend — maximum encoder throughput on NVIDIA GPUs

Project description

SERAPH — ONNX Runtime Backend

Maximum encoder throughput on NVIDIA GPUs.

This is the ONNX Runtime variant of SERAPH. It uses the ONNX Runtime CUDA Execution Provider for encoding, delivering ~3x faster ingest throughput compared to the standard GPU (candle) build.

For the standard build that works everywhere (GPU with CPU fallback), install seraph-db instead.


Install

pip install seraph-db-onnx

ONNX Runtime Dependency

This package ships the SERAPH engine compiled against ONNX Runtime, but does not bundle the ORT shared libraries. You must provide them:

Option 1 — pip (recommended):

pip install onnxruntime-gpu

Option 2 — system install: Download from ONNX Runtime releases and ensure the libraries are on your library search path.

Option 3 — manual placement: Place onnxruntime.dll (Windows) or libonnxruntime.so (Linux) alongside the installed seraph.pyd/seraph.so, or set ORT_DYLIB_PATH to point to them.

Requirements

  • NVIDIA GPU with compute capability >= 7.0 (Volta or newer)
  • NVIDIA driver >= 520
  • cuDNN 9.x (cudnn64_9.dll / libcudnn.so.9) on the library search path
  • ONNX Runtime 1.26+ with CUDA EP

If the CUDA EP fails to initialize (missing cuDNN, incompatible driver), the ONNX build falls back to CPU inference automatically.

Quick Start

import seraph

store = seraph.SeraphStore("my_store.sfg")
store.put("The quick brown fox jumps over the lazy dog.")
hits = store.search("fast animal", k=5)
for hit in hits:
    print(f"{hit.score:.3f}  {hit.text}")
store.close()

The API is identical to seraph-db — only the encoder backend differs.

API Reference


Licensing

SERAPH is proprietary software licensed by Tree D Interactive LLC. See the License Agreement and Pricing Schedule for full terms.


Copyright (c) 2025-2026 Tree D Interactive LLC. All rights reserved.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

seraph_db_onnx-0.1.2-cp38-abi3-win_amd64.whl (5.5 MB view details)

Uploaded CPython 3.8+Windows x86-64

File details

Details for the file seraph_db_onnx-0.1.2-cp38-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for seraph_db_onnx-0.1.2-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 23729b09e62aad6d10b8cc810a795dfdc1d7b59ca96c7ce9bcf1d265f611463f
MD5 4a5bfda05b8ef087bc806a13c9541547
BLAKE2b-256 d8560931a33e82851e83e2762c479e535d67e681ab0b0cb752454ca2a792395c

See more details on using hashes here.

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