⚜️ Sovereign-Metal
A zero-dependency, high-throughput Python-to-Metal GPGPU advection engine and local transformer pipeline. Program custom MSL (Metal Shading Language) kernels directly from Python with zero-copy unified memory alignment and zero PCIe bus latency.
🔱 Core Features
- Zero-Copy Unified Memory: Directly maps NumPy arrays into shared CPU/GPU buffers (
MTLResourceStorageModeShared), completely bypassing PCIe transfer bottlenecks. - Branchless Toroidal Boundary Wrapping: Implements hardware-level bitwise wrapping
(x - 1u) & (dim - 1u)inside MSL shaders, avoiding thread divergence and division stalls on integrated Apple/Intel GPUs. - Zero-Latency Reduction Tree: Runs a dedicated Shannon entropy, localization intensity, and energy proxy reduction kernel entirely in threadgroup scratchpad memory.
- Standalone GPGPU Transformer: Runs FP16 BERT-style embeddings (
all-MiniLM-L6-v2) locally on Metal with strict GPGPU acceleration.
📐 Mathematical Framework
Toroidal Fluid Dynamics (Soliton Advection)
The advection advects a continuous scalar field $S$ through a density field $\rho$ on a conjoined toroidal manifold:
$$\frac{\partial S}{\partial t} = -\nu \nabla^2 S - \alpha (\nabla \rho) \cdot \nabla S + \kappa |S|^2 S$$
Where:
- $\nu$ represents the dissipation/damping coefficient.
- $\alpha$ is the advection coupling strength.
- $\kappa$ is the non-linear soliton crystallization rate.
🚀 Quick Start
1. Installation
Clone the repository and install the dependencies:
cd sovereign-metal
pip install -e .
2. Run Semantic Embeddings Demo
Verify the local GPGPU transformer inference:
python examples/local_embeddings.py
3. Run Toroidal Advection Benchmark
Execute the soliton advection simulation and watch the real-time crystallization metrics stream from the GPU:
python examples/benchmark_advection.py
⚜️ License
MIT License. Crafted for the GPGPU developer community.
Metadata
Release files for sovereign-metal 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 | |
|---|---|---|---|---|
| sovereign_metal-1.0.1.tar.gz | 43.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sovereign_metal-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 87.8 kB
Release files / sovereign_metal-1.0.1.tar.gz
| Download URL | sovereign_metal-1.0.1.tar.gz |
|---|---|
| Size | 43.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9fe90ce1f9ee60035b3cf707e0d80ea23641e912224e4f7776e0ec02f3a4263d
|
|
BLAKE2b-256 checksum How to use checksums |
c0da2a8714e10ea1556becaac2275e8ad4ceef52442205a4937a9551a786596b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|
Release files / sovereign_metal-1.0.1-py3-none-any.whl
| Download URL | sovereign_metal-1.0.1-py3-none-any.whl |
|---|---|
| Size | 44.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d852d13a9580255b216f1313584686eb7a4978fee36f109f2f27cf4a7534073b
|
|
BLAKE2b-256 checksum How to use checksums |
4c5328a0400d850c823cfcc234dfa1a3fb64a8516cf345915a86b40783123789
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|
Security for sovereign-metal 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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.