Lightweight ONNX Runtime predictor for Helicon SequenceAI models.
Project description
helicon-sequenceai
A small inference-only Python package for running ONNX models exported from the internal sequence-ai training repository.
What this package provides
helicon.sequenceai.predict(...): a simple function that loads an ONNX model and runs inference.helicon.sequenceai.Predictor: a reusable predictor that caches the ONNX Runtime session.
What this package does NOT include
- The ONNX model file(s) themselves.
- Training pipelines (MLflow/Metaflow/Kedro), preprocessing/windowing, or the FastAPI UI.
You must provide the ONNX model path at runtime.
Install
pip install helicon-sequenceai
GPU (Linux x86_64 only, CUDA-enabled):
pip install "helicon-sequenceai[gpu]"
Note: the default install uses CPU-only onnxruntime. To use GPU, install the gpu extra and pass providers when calling:
preds = predict(features=X, model_path="model.onnx",
providers=["CUDAExecutionProvider", "CPUExecutionProvider"])
Usage
from helicon.sequenceai import predict
preds = predict(features=[[1.0, 2.0, 3.0]], model_path="/path/to/model.onnx")
Development
With uv (recommended)
Create a virtualenv and install with dev extras:
uv venv
uv sync --group dev
Run tests:
uv run pytest
Build locally:
uv build
With pip
Install in editable mode with dev extras:
python -m pip install -e ".[dev]"
pytest
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 helicon_sequenceai-0.1.0.tar.gz.
File metadata
- Download URL: helicon_sequenceai-0.1.0.tar.gz
- Upload date:
- Size: 9.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2c1bb666542a8aba630dec3354ea92e18ef4d8167b953ef3b21a1fd5da84832f
|
|
| MD5 |
40404528cd313cb2e6e2efe34fff90df
|
|
| BLAKE2b-256 |
23e3687222ad5446f8d19ac97488b0a7c406a840351473b890acff2b08bf517a
|
File details
Details for the file helicon_sequenceai-0.1.0-py3-none-any.whl.
File metadata
- Download URL: helicon_sequenceai-0.1.0-py3-none-any.whl
- Upload date:
- Size: 12.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
66c9c71c01ab7d0721d0d8d3591f24327e8d447ef325287e77df177a43a73431
|
|
| MD5 |
32fffa89e2e6b8f48790722567707e4b
|
|
| BLAKE2b-256 |
61a269b49cd2c5d5490e61cac7213f609e799204ca81b0b478ce251a7955eb06
|