Skip to main content

Lightning Core: macOS-first CUDA-style runtime with Metal backend

Project description

Lightning Core

Lightning Core is a macOS-first CUDA-style runtime focused on custom attention training/inference paths.

Quick Start (Beginner)

Documentation entrypoint:

  • docs/index.md

Use this path first:

  1. Install and import-check
  2. Build and run one C API example
  3. Run tests
python3 -m pip install .
python -c "import lightning_core; print(lightning_core.backend_name())"

cmake -S . -B build -DCJ_ENABLE_METAL=ON -DCJ_BUILD_TESTS=ON -DCJ_BUILD_PYTHON=ON -DCJ_BUILD_EXAMPLES=ON
cmake --build build -j

cmake --build build --target lightning_core_c_api_example -j
./build/lightning_core_c_api_example

ctest --test-dir build --output-on-failure

Detailed beginner guide:

  • docs/quickstart.md

Scope (Current)

This project is an optimization-focused runtime prototype, not a full deep learning framework.

  • Core focus: runtime, attention path, selected matrix/vector ops
  • Model-family wrappers are advanced policy/fastpath helpers, not full model implementations
  • API and internals are still actively evolving

Identity and Naming

  • Public package/module: lightning-core / lightning_core
  • Public C++ include path/namespace: lightning_core/* and lightning_core::...
  • Internal canonical headers: include/lightning_core/core/*
  • Legacy include/cudajun/* remains as compatibility shim

Advanced Topics

For advanced usage and operations, see:

  • docs/advanced.md

For contributor workflow and coding conventions, see:

  • docs/contributor.md

Includes:

  • benchmark sweeps and generated artifacts
  • resident session and policy tuning
  • model-family wrapper examples and caveats
  • runtime profile/env tuning
  • release and publishing workflow notes
  • repository rename transition operations

Build Targets

Useful targets:

  • library: lightning_core::lightning_core
  • python module: lightning_core
  • c api example: lightning_core_c_api_example

Repository Rename Status

Current GitHub live URL may still be lightining-core until rename is completed.

Use helper script after rename:

./scripts/sync_remote_after_repo_rename.sh --dry-run
./scripts/sync_remote_after_repo_rename.sh

The script automatically checks target repository availability and skips safely when rename is not ready.

Project Layout

  • include/lightning_core: public wrappers
  • include/lightning_core/core: canonical internal headers
  • include/cudajun: compatibility shims for legacy integrations
  • src: runtime + tensor + ops implementation
  • tests: C++ unit tests
  • benchmarks: benchmark binaries and sweep scripts
  • python: pybind11 bindings
  • docs: split docs (index/quickstart/advanced/contributor)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lightning_core-0.1.2.tar.gz (80.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lightning_core-0.1.2-cp312-cp312-macosx_14_0_arm64.whl (197.4 kB view details)

Uploaded CPython 3.12macOS 14.0+ ARM64

File details

Details for the file lightning_core-0.1.2.tar.gz.

File metadata

  • Download URL: lightning_core-0.1.2.tar.gz
  • Upload date:
  • Size: 80.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for lightning_core-0.1.2.tar.gz
Algorithm Hash digest
SHA256 b583c3c976fa003f1c543e43064d038e4bbc3403a77711e24c19f84e50fe3690
MD5 408f0c5a9a302fd393a658f5fee3a564
BLAKE2b-256 0d2d744c48f8deeb45483e9e4b6fa45b7e76b408dc1d4d76e030e0dac1b26413

See more details on using hashes here.

Provenance

The following attestation bundles were made for lightning_core-0.1.2.tar.gz:

Publisher: python-wheel-publish.yml on wnsgus00114-droid/lightining-core

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file lightning_core-0.1.2-cp312-cp312-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for lightning_core-0.1.2-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 0ece12b60b7e67015af8ae69d74143a61bced24f86549a9bbeb98d5c18987ef6
MD5 9018ef19e9743c03600c9ef46bc6cd52
BLAKE2b-256 9caaf951fcca598c80e035b4e879b6cd544ed15a31b9405ca989ddeb3e130e8c

See more details on using hashes here.

Provenance

The following attestation bundles were made for lightning_core-0.1.2-cp312-cp312-macosx_14_0_arm64.whl:

Publisher: python-wheel-publish.yml on wnsgus00114-droid/lightining-core

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page