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 (@cloverx-id) and Silver Moon (@cloverxion).
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/cloverx-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):
- Optimizer Modular Documentation:
docs/optimize/ - DataLoader Modular Documentation:
docs/dataloader/ - Optimizer Library Audits:
docs/library_audit/ - DataLoader Standalone Library Audits:
dataloader/docs/library_audit/ - DataLoader Architecture & User Guide:
dataloader/README.md - User Documentation:
docs/en/
Authors & Maintenance
PROJECT LUMI (luminamoon) is engineered and maintained by:
- Silver Moon (@cloverxion)
- Lumina Moon (@cloverx-id)
License
Licensed under the Apache License, Version 2.0. See LICENSE for details.
Metadata
Release files for luminamoon 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| luminamoon-1.0.1.tar.gz | 285.9 kB | Without provenance | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| luminamoon-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
| luminamoon-1.0.1-cp310-abi3-win_amd64.whl | CPython 3.10 | abi3 | Windows x86-64 | Details |
| luminamoon-1.0.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl | CPython 3.10 | abi3 | Linux glibc 2.17+ x86-64 | Details |
| luminamoon-1.0.1-cp310-abi3-macosx_11_0_arm64.whl | CPython 3.10 | abi3 | macOS 11.0+ ARM64 | Details |
Total release size: 16.8 MB
Release files / luminamoon-1.0.1.tar.gz
| Download URL | luminamoon-1.0.1.tar.gz |
|---|---|
| Size | 285.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d6cfe26501a1ceee7d9cad2df39b1ed7c3bd080d65148f3fbe9c96bdb923cde5
|
|
BLAKE2b-256 checksum How to use checksums |
53d8828f9c510f1247830753a61e7c47893e07943f64ffef88a10b3a864c0daf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / luminamoon-1.0.1-py3-none-any.whl
| Download URL | luminamoon-1.0.1-py3-none-any.whl |
|---|---|
| Size | 57.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
84b447388af63921d0ce6656d6c221f115c00fd5ff7e7b9d3632f7ba64613da5
|
|
BLAKE2b-256 checksum How to use checksums |
a05bca4b42b954296f52beec874f959d1eb0ecf55377d0047c19b4331070d3d3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / luminamoon-1.0.1-cp310-abi3-win_amd64.whl
| Download URL | luminamoon-1.0.1-cp310-abi3-win_amd64.whl |
|---|---|
| Size | 5.2 MB |
| Tags | CPython 3.10 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
e4e888d2004193bc81aafca67a11569398d209c515e96d732ba1b852410d4a57
|
|
BLAKE2b-256 checksum How to use checksums |
4bc4bb608504c589c9841b71c7e62234afcb191f73cbda42c9229537afa65d2f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / luminamoon-1.0.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | luminamoon-1.0.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 6.0 MB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
1f606fec348823d0c47720f7565d731a3fc2e82844e82aa4d1d4217d9b3affb0
|
|
BLAKE2b-256 checksum How to use checksums |
84de0de4f836718c4be0cb59fc32e0582dd7ea5b41d8fa514f3aada9139c86e8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / luminamoon-1.0.1-cp310-abi3-macosx_11_0_arm64.whl
| Download URL | luminamoon-1.0.1-cp310-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 5.2 MB |
| Tags | CPython 3.10 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
ac5d7a22feceb0bf58a8e1f586a99a97f521dc9ac157152b49534d18316b377a
|
|
BLAKE2b-256 checksum How to use checksums |
ede7f4dcd8d9130f6cccd75f38d916682d2e3bbb047b2b7d1e6d5c11b93a6fc2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Security for luminamoon 1.0.1
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.