This release is a pre-release and may not be stable for production use.
omle-spark
Score OMLE models on Spark DataFrames.
OMLEModel is a Spark ML Transformer that delegates to the JVM-side
io.github.openmle.spark.OMLEModel, so scoring runs natively on each executor
rather than through a Python UDF.
from omle.spark import OMLEModel
model = OMLEModel(modelPath="/path/to/model.omle")
predictions = model.transform(df)
Input columns are resolved from the model's own input specs. A model with a
single rank-2 input reads from featuresCol, following the usual Spark ML
convention for a pre-assembled vector:
from pyspark.ml.feature import VectorAssembler
assembler = VectorAssembler(inputCols=["f0", "f1"], outputCol="features")
predictions = model.transform(assembler.transform(df))
A model with multiple or scalar inputs reads each one by name straight from the
DataFrame, so no VectorAssembler is needed.
Output depends on the model's output count: a single output produces
predictionCol (DoubleType); multiple outputs produce probabilityCol
(VectorType) plus predictionCol holding the argmax.
Requirements
Two JARs on the driver and executor class-paths: omle-spark and
omle-runtime. The released omle-runtime jar carries the native library for
linux, macOS and Windows on x86-64, plus linux and macOS on arm64, and JNA
extracts the right one per JVM — so there is nothing to install on the nodes and
no jna.library.path to set. A locally built jar has no bundled library, and
then JNA does need pointing at one on every node.
Spark 3.5 (Scala 2.12) and Spark 4.x (Scala 2.13) are both supported, each with
its own build of the omle-spark JAR.
Related packages
omle— the model IR and convertersomle-runtime— the local runtime
License
Apache-2.0
Release files for omle-spark 0.1.0rc4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| omle_spark-0.1.0rc4.tar.gz | 11.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| omle_spark-0.1.0rc4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 17.6 kB
Release files / omle_spark-0.1.0rc4.tar.gz
| Download URL | omle_spark-0.1.0rc4.tar.gz |
|---|---|
| Size | 11.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2db988161ee4d357e7bb512d10b99f1db5cc1c0621f76c74c7b3e73fb86f9ab2
|
|
BLAKE2b-256 checksum How to use checksums |
829ef6f2a3ebc0f9e3566d28172d46709269b4c762db2da34baabf206204f739
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 18, 2026.
Transparency logRelease files / omle_spark-0.1.0rc4-py3-none-any.whl
| Download URL | omle_spark-0.1.0rc4-py3-none-any.whl |
|---|---|
| Size | 5.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f63f06155f6bc161043554875675e0c201f6285e285bfad8413c5671de21c1cc
|
|
BLAKE2b-256 checksum How to use checksums |
50df63d81e3567a7cfe45aaa710dac7ca894d68dbd8c621674b3425b26c82dae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 18, 2026.
Transparency log