Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

🌀 KairosFM

PyPI arXiv GitHub Hugging Face

Kairos Foundation Model — less parameters, more signal.

Status: pre-1.0. The only result so far is a set of convergence sanity checks at 1--15M parameters (see the paper). Generalization, multimodal training and any comparison with existing models are not yet measured. Expect breaking changes until v1.0.0.

Kairos is an experimental byte-level, multimodal, hybrid MoE diffusion model designed to be trained on a single local machine. It combines bidirectional gated DeltaNet and sliding-window attention over shared projections (LiZAttention2), block-wise Attention Residuals (AttnRes), a sparse MoE feed-forward layer and a multi-scale byte PyramidalCodec, trained with a uniform-noise denoising objective over one byte space shared by text, image, audio, video, lidar and control streams.

The design target (200M total / 25M active parameters, 4 of 32 experts) is sized analytically in the paper; it has not been instantiated or trained.

What the paper shows

  • The implementation optimizes: tiny networks drive the denoising loss of a fixed 440-byte sentence near zero.
  • Codec ranking after 600 steps is stable over 3 seeds (patch codec 0.018 to depthwise conv codec 0.354).
  • The advantage of shared over separate attention projections is a convergence-speed effect, not a capacity effect.
  • The curriculum and the memory gate have no supporting result yet.
@misc{furfaro2026kairos,
  title         = {Kairos: Toward a Byte-Level Foundation Model for Every Modality},
  author        = {Furfaro, Fabien},
  year          = {2026},
  eprint        = {2610.12495},
  archivePrefix = {arXiv},
  url           = {https://arxiv.org/abs/2610.12495}
}

Architecture

scheme

  • Tokenizer: one 290-entry byte vocabulary for every modality (ByT5-based), plus modality and octet-family streams.
  • PyramidalCodec: parallel views of the sequence at growing patch sizes, fused after upsampling.
  • Backbone block: pre-norm LiZAttention2 (DeltaNet + window attention, shared Q/K/V/O) and a shared-expert MoE FFN.
  • AttnRes: learned, block-windowed aggregation of earlier layer outputs.
  • Objective: uniform-replacement denoising with a three-stage curriculum (MAE, transition, diffusion).
  • Memory gate: seeds each DeltaNet state from states left by earlier sequences.

Quick start

uv sync --group dev          # dev tools
uv sync --extra cli          # `kairos` command (train, overfit, evaluate, generate)
uv run kairos --help
make test                    # pytest

Example configs live in configs/ (ablation configs in configs/ablations/).

Fused DeltaNet / causal-conv1d kernels are optional (pure-PyTorch fallback otherwise):

  • NVIDIA/CUDA: uv sync --extra fast-attn.
  • AMD/ROCm: uv sync --extra rocm (PyTorch ROCm build only); add --extra fast-attn-rocm to compile the fused kernels (needs the ROCm HIP toolchain). fast-attn is mutually exclusive with the ROCm extras.

Data & training

  1. Build the multimodal pilot dataset (resumable, pushes to ffurfaro/keep-it-simple-multimodal): make build-multimodal. Two sources are gated on the Hub (finevideo, Cosmos-Transfer-LidarGen): accept their terms, then huggingface-cli login or export HF_TOKEN.
  2. Train with the marimo notebook: make notebook (notebook/kairos_pretraining.py). It uses ffurfaro/keep-it-simple (text) and ffurfaro/keep-it-simple-multimodal, and logs to TensorBoard.
  3. Push: pipe.push_to_hub("ffurfaro/kairos") (native HF format, checkpoints, TensorBoard run, model card).

Next step (from the paper): a pretraining run with held-out loss per stage and modality, and a bits-per-byte comparison with Pythia-14M.

Code structure

Path Role
kairos/modeling.py KairosConfig, top-level model, DeltaNet/SWA blocks, MoE wiring, memory bank
kairos/attentions.py LiZAttention2 and the sliding-window kernel
kairos/tokenizer.py Shared byte-level multimodal tokenizer
kairos/dataset.py Pretraining/SFT/RL dataset builders, multimodal packing
kairos/pipeline.py Tokenizer, dataset, model, train and push_to_hub pipeline
kairos/trainer.py Masked-diffusion loss and curriculum
kairos/cli.py kairos command line
docs/paper/ LaTeX source of the preprint
docs/experiments/ Ablation logs and paper audits

Release

CI publishes to PyPI on v*.*.* tags (OIDC). Manual fallback: copy .env.example to .env, set UV_PUBLISH_TOKEN, run make publish.

References

Metadata

Release files for kairos-fm 0.4.1.dev52

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

Source distribution (sdist)

Source distribution for kairos-fm 0.4.1.dev52
File Size Uploaded Provenance Actions
kairos_fm-0.4.1.dev52.tar.gz 1.2 MB Without provenance Details for kairos_fm-0.4.1.dev52.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for kairos-fm 0.4.1.dev52
File Interpreter ABI Platform Actions
kairos_fm-0.4.1.dev52-py3-none-any.whl Python 3 none any Details for kairos_fm-0.4.1.dev52-py3-none-any.whl

Total release size: 1.2 MB

Release files / kairos_fm-0.4.1.dev52.tar.gz

Download URL kairos_fm-0.4.1.dev52.tar.gz
Size 1.2 MB
Tags Source
SHA-256 checksum
How to use checksums
80075baf38e0ffee107b350212818397579fe3ade5389f99c45a7bdbf032156d
BLAKE2b-256 checksum
How to use checksums
7e335f0c8b8a4cb3ea9dfaef6a6c454f68bfe6ac3b3992d4e0a0f75e46d0111a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.2 {"installer":{"name":"uv","version":"0.12.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / kairos_fm-0.4.1.dev52-py3-none-any.whl

Download URL kairos_fm-0.4.1.dev52-py3-none-any.whl
Size 83.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
acfefa9e7e0da655f28f80729a1139f2b2fcf069fe419ebf01dda33ffc0f9cb4
BLAKE2b-256 checksum
How to use checksums
7cec20d42e941918817b5ead7b6261494b0de7d97c641a8a6afe2ea9f017fe95
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.2 {"installer":{"name":"uv","version":"0.12.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for kairos-fm 0.4.1.dev52

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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