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:
- Install and import-check
- Build and run one C API example
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b583c3c976fa003f1c543e43064d038e4bbc3403a77711e24c19f84e50fe3690
|
|
| MD5 |
408f0c5a9a302fd393a658f5fee3a564
|
|
| BLAKE2b-256 |
0d2d744c48f8deeb45483e9e4b6fa45b7e76b408dc1d4d76e030e0dac1b26413
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
lightning_core-0.1.2.tar.gz -
Subject digest:
b583c3c976fa003f1c543e43064d038e4bbc3403a77711e24c19f84e50fe3690 - Sigstore transparency entry: 1191459796
- Sigstore integration time:
-
Permalink:
wnsgus00114-droid/lightining-core@a9f07ab6dfa123ef66875e9dffab2b4a56d3777a -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/wnsgus00114-droid
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-wheel-publish.yml@a9f07ab6dfa123ef66875e9dffab2b4a56d3777a -
Trigger Event:
push
-
Statement type:
File details
Details for the file lightning_core-0.1.2-cp312-cp312-macosx_14_0_arm64.whl.
File metadata
- Download URL: lightning_core-0.1.2-cp312-cp312-macosx_14_0_arm64.whl
- Upload date:
- Size: 197.4 kB
- Tags: CPython 3.12, macOS 14.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0ece12b60b7e67015af8ae69d74143a61bced24f86549a9bbeb98d5c18987ef6
|
|
| MD5 |
9018ef19e9743c03600c9ef46bc6cd52
|
|
| BLAKE2b-256 |
9caaf951fcca598c80e035b4e879b6cd544ed15a31b9405ca989ddeb3e130e8c
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
lightning_core-0.1.2-cp312-cp312-macosx_14_0_arm64.whl -
Subject digest:
0ece12b60b7e67015af8ae69d74143a61bced24f86549a9bbeb98d5c18987ef6 - Sigstore transparency entry: 1191459800
- Sigstore integration time:
-
Permalink:
wnsgus00114-droid/lightining-core@a9f07ab6dfa123ef66875e9dffab2b4a56d3777a -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/wnsgus00114-droid
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-wheel-publish.yml@a9f07ab6dfa123ef66875e9dffab2b4a56d3777a -
Trigger Event:
push
-
Statement type: