Skip to main content

Neuralk OSS

Neuralk-AI open-source models.

Seldon

Seldon is a tabular in-context-learning foundation model: fit keeps the training table as context, predict_proba classifies new rows against it in one forward pass, with no gradient step.

from neuralk_oss import SeldonClassifier

clf = SeldonClassifier.from_pretrained("seldon-small-classifier")
clf.fit(X_train, y_train)  # pandas DataFrame (or array) and labels
proba = clf.predict_proba(X_test)  # (n_rows, n_classes), columns in clf.classes_ order

Checkpoints

name task parameters
seldon-small-classifier classification, up to 10 classes per model call 27.4M

A checkpoint is a directory holding config.json and model.safetensors. from_pretrained takes:

  • a checkpoint name, such as "seldon-small-classifier": downloaded from the Hugging Face repository Neuralk-AI/seldon, where each checkpoint is a directory, on the first call, then read from the Hugging Face cache (~/.cache/huggingface, or HF_HOME);
  • a local directory, read in place: from_pretrained("path/to/seldon-small-classifier");
  • any Hugging Face repository, with the checkpoint's directory and a revision: from_pretrained("org/repo", subfolder="seldon-small-classifier", revision="v1").

The repository is private for now: log in once with an account that can read it (hf auth login), or pass token=... to from_pretrained.

Column types are inferred (categorical columns are embedded as such, NaNs are kept for the model's own imputation), each of the n_estimators ensemble members (8 by default) sees its own preprocessing, and their logits are averaged. Inference runs in float16 autocast on CUDA by default (amp=False for float32). Tables with more classes than the model's head (10) go through error-correcting output codes.

Preprocessing

The preprocessing and ensembling come from structured-data-models (sdm, Apache-2.0), pinned in pyproject.toml. SeldonRecipe builds its recipe one overridable method per step:

import sdm.processing as sp
from neuralk_oss import SeldonClassifier, SeldonRecipe


class MyRecipe(SeldonRecipe):
    max_features = 200

    def numerical_transforms(self):
        return [sp.Identity(), sp.RankGaussian(max_knots=self.rank_gaussian_knots)]


clf = SeldonClassifier.from_pretrained("seldon-small-classifier", recipe=MyRecipe())

The model alone

from neuralk_oss import Seldon

model = Seldon.from_pretrained("seldon-small-classifier")
context = model.encode_context(X_context, y_context, categorical_mask)  # (B, T, H), (B, T), (B, H)
logits = model.predict_query(X_query, context, categorical_mask)  # (B, T_query, 10)

Layout

src/neuralk_oss/
├── model/       # Seldon's architecture, config and checkpoint format
└── inference/   # sdm estimator, preprocessing recipe, scikit-learn style classifier
tests/

Development

With uv:

uv sync
uv run pytest
uv run ruff check . && uv run ruff format --check .

tests/test_golden.py compares the outputs of tiny random-weight checkpoints (tests/golden/) to saved references. After an intended change of outputs, regenerate them with UPDATE_GOLDEN=1 uv run pytest tests/test_golden.py and commit the new tests/golden/expected/. With CUDA, the same cases also run on the GPU in float16 autocast; the classifier's CUDA references (tests/golden/expected/cuda/) are only regenerated on a CUDA machine.

Metadata

Release files for neuralk-oss 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for neuralk-oss 0.1.0
File Size Uploaded Provenance Actions
neuralk_oss-0.1.0.tar.gz 461.2 kB With provenance Details for neuralk_oss-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for neuralk-oss 0.1.0
File Interpreter ABI Platform Actions
neuralk_oss-0.1.0-py3-none-any.whl Python 3 none any Details for neuralk_oss-0.1.0-py3-none-any.whl

Total release size: 489.4 kB

Release files / neuralk_oss-0.1.0.tar.gz

Download URL neuralk_oss-0.1.0.tar.gz
Size 461.2 kB
Tags Source
SHA-256 checksum
How to use checksums
724bb5f9dab4543dc8899a1932e4be33b5de060bd8306a664e316bc2fa66a896
BLAKE2b-256 checksum
How to use checksums
a9bcf2e8455b0f133e90857651f26b02e132e5d96d73696dd13754c48ff791eb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Oct 29, 2026.

Transparency log

Release files / neuralk_oss-0.1.0-py3-none-any.whl

Download URL neuralk_oss-0.1.0-py3-none-any.whl
Size 28.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5f871f901b2c2607b90db7b6e5ae428095f79e6976f37576c2dfa650293e836f
BLAKE2b-256 checksum
How to use checksums
21e69ceb5054ca3fdded8ae43769fc96711c54ce1d90a0c88cd71c9f2f09b331
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Oct 29, 2026.

Transparency log

Security for neuralk-oss 0.1.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for neuralk_oss-0.1.0.tar.gz

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 Oct 29, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page