Skip to main content

PROJECT LUMI

LuminaMoon (luminamoon) is the official reference implementation and central monorepo of PROJECT LUMI, providing low-precision numerical optimization, multimodal dataset streaming, and formal verification suites developed by Lumina Moon (@runnerx-id) and Silver Moon (@runnerxion).

Built with a modular architecture under the PROJECT LUMI specification, luminamoon connects specialized components for CPU/GPU hardware execution, low-latency streaming, and verified numerical stability:

System Architecture

flowchart TD
    Shards["Dataset Shards (Parquet / JSONL)"] --> DataLoader["LuminaMoon DataLoader (SIMD + XXH3 + Pre-RAM)"]
    DataLoader --> TrainLoop["Training Loop (Batch Stream)"]
    DataLoader --> Checkpoint["128B Ping-Pong Checkpoint & WAL"]
    TrainLoop --> Checkpoint
    TrainLoop --> Dispatcher["LuminaV Hardware Dispatcher"]
    Eval["LSO-Eval Suite (Z3 SMT & Parity Gate)"] -.-> Dispatcher
    Dispatcher --> Triton["Triton AOT/JIT GPU (CUDA / ROCm)"]
    Dispatcher --> Vulkan["Vulkan 1.3/1.4 Compute (UMA / SPIR-V)"]
    Dispatcher --> SIMD["Rayon CPU SIMD (AVX-512 / AVX2)"]
    Dispatcher --> Scalar["Reference Scalar Core (Fallback)"]

Projects & Components

Project / Component Path Status Description Documentation
LuminaV Optimizer optimizer/ Active (v1.0.0) Low-precision numerical optimizer with CPU SIMD (AVX-512/AVX2), Vulkan UMA, and Triton AOT/JIT kernels. Optimizer Guide
LuminaMoon DataLoader dataloader/ Active (v1.0.0) High-throughput $O(1)$ local/HTTP-206 streaming engine, 100-batch PRE-RAM watermark buffer, dual-metadata GPU crash recovery, two-stage XXH3-64 deduplication, AVX-512/AVX2 SIMD kernels, multimodal Parquet/JSONL/JSON, and HuggingFace Hub pipeline. DataLoader Guide
LSO-Eval Suite eval/ Active Formal verification suite: Z3 SMT solver invariants, 2D trajectory benchmarks, and numerical parity audits. Eval Guide
Documentation docs/ Active Centralized documentation portal, developer internal blueprints (docs/optimize/, docs/dataloader/), and ecosystem version audits. Docs Portal
Python Package python/luminamoon/ Active Unified free-threaded (abi3t) Python namespace exposing LuminaV Optimizer, DataStreamLoader, and PyTorch/NumPy/HuggingFace interop. API Reference

Quickstart

Installation

Install the compiled package wheel from PyPI:

pip install luminamoon

Or build from source using Maturin and the Rust 2024 toolchain:

git clone https://github.com/runnerx-id/luminamoon.git
cd luminamoon
pip install maturin
maturin develop --release

Basic Usage (LuminaV Optimizer)

import numpy as np
from luminamoon import LuminaV

# Initialize parameters
weights = np.random.randn(64, 10).astype(np.float32)
biases = np.zeros(10, dtype=np.float32)

# Instantiate LuminaV optimizer
optimizer = LuminaV([weights, biases], lr=1e-3, buffer=2)

# Execute optimization step with explicit gradients
grad_w = np.random.randn(64, 10).astype(np.float32)
grad_b = np.random.randn(10, dtype=np.float32)
optimizer.step(grads=[grad_w, grad_b])

For PyTorch deep learning workflows, see the PyTorch Integration Guide.

Basic Usage (LuminaMoon DataLoader & Official HuggingFace Pipeline)

import luminamoon as lm

# 1. Stream local or remote HuggingFace datasets with O(1) instant resume,
#    100-batch PRE-RAM watermark prefetching, multi-core download, and XXH3-64 deduplication
for batch in lm.stream(
    "hf://datasets/org/corpus@main/train/part-000.parquet",
    batch_size=64,
    preram_batches=100,
    refill_trigger=10,
    download_workers=4,
    deduplicate=True,
):
    # batch.records contains SIMD/Rayon-cleaned strings; deferred auto_commit persists GPU state
    pass

# 2. Push multimodal tables (text, image bytes, JSON, numbers, booleans) to HuggingFace Hub
lm.push_to_hub(
    repo="cleaned-multimodal-dataset",
    data=[
        {"prompt": "Hello", "score": 0.99, "verified": True, "meta": {"lang": "id"}},
    ],
    path_in_repo="train/part-00000.parquet",
)

For multimodal Parquet streaming, datasets / transformers integration, dual-metadata crash recovery, and Colab/Kaggle secret resolution, see the DataLoader Guide.

Verification & CI/CD

All pull requests and releases are validated across Linux, Windows, and macOS:

# Enforce zero-warning static analysis across the Rust workspace
cargo clippy --workspace --all-targets -- -D warnings

# Run Rust workspace unit and differential parity tests (Optimizer + DataLoader)
cargo test --workspace

# Run Python static type check
npx pyright python/luminamoon

# Run standalone NumPy, PyTorch, and DataLoader verification suites
python optimizer/tests/test_standalone_numpy.py
python optimizer/tests/test_end_to_end_training.py
python dataloader/tests/test_dataloader_python.py

# Run LSO-Eval formal verification suite
python -m eval

Developer Resources

For contributors and systems engineers building on or extending PROJECT LUMI (luminamoon):

Authors & Maintenance

PROJECT LUMI (luminamoon) is engineered and maintained by:

License

Licensed under the Apache License, Version 2.0. See LICENSE for details.

Metadata

Release files for luminamoon 1.0.0.post1

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

Source distribution (sdist)

Source distribution for luminamoon 1.0.0.post1
File Size Uploaded Provenance
luminamoon-1.0.0.post1.tar.gz 287.1 kB Without provenance Details

Built distributions (wheels)

Table of built distributions (wheels) for luminamoon 1.0.0.post1
File Interpreter ABI Platform
luminamoon-1.0.0.post1-py3-none-any.whl Python 3 none any Details
luminamoon-1.0.0.post1-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details

Total release size: 5.4 MB

Release files / luminamoon-1.0.0.post1.tar.gz

Download URL luminamoon-1.0.0.post1.tar.gz
Size 287.1 kB
Tags Source
SHA-256 checksum
How to use checksums
2b438776e9d9f7d8ef2c910bb7a92f210de0568d0423e5b2d1221ce6fb6725ac
BLAKE2b-256 checksum
How to use checksums
51b896150f0aacd60c17cfb3ecd60827991b308aad81a4dadccd8a6d06fda973
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.1

Release files / luminamoon-1.0.0.post1-py3-none-any.whl

Download URL luminamoon-1.0.0.post1-py3-none-any.whl
Size 57.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c8148d452875b63fd69e3b7d6905aeb3176b6f010a45206ddc7f0744a1b8949c
BLAKE2b-256 checksum
How to use checksums
cb0276f53b2e857f2198077be1fd5796eee79bd5d461478bc3fb3c8f0eed71ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.1

Release files / luminamoon-1.0.0.post1-cp310-abi3-win_amd64.whl

Download URL luminamoon-1.0.0.post1-cp310-abi3-win_amd64.whl
Size 5.0 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
068b1fca47cf286b898d9d5ed7c1a027ab823c277ceb27b860ed999b6f04f051
BLAKE2b-256 checksum
How to use checksums
0678c0371d7cc2802ef8288d530cdabf42a0d4a2c018eb2a0933e0ea864de332
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.1

Security for luminamoon 1.0.0.post1

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.

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