Skip to main content

NEF2: Unified Multi-Backend AI Runtime. Use --extra-index-url for GPU-accelerated wheels.

Project description

NEF2 Logo

NEF2: The AI Operating Substrate

A hardware-native, framework-independent intelligence stack for the next generation of autonomous systems.

PyPI License Build Hardware

NEF2: The AI Operating Substrate

A hardware-native, framework-independent intelligence stack for the next generation of autonomous systems.


The Vision

NEF2 is not a library; it is a Substrate. It eliminates the "framework tax" by bypassing heavy abstractions like PyTorch and JAX, communicating directly with the silicon through a custom-built hardware-native stack.

It is designed for a world where AI is not just a model, but a distributed, agentic system requiring zero-copy memory movement, hardware-peak performance, and intelligent memory virtualization.

Key Pillars

  • Zero-Dependency Core: Pure Python/C++/Rust. No external ML frameworks.
  • Hardware-Native Stack (NEF-HNS): Direct NVIDIA Driver API integration using raw PTX assembly.
  • HyperCache Memory: Transparent virtualization of VRAM across System RAM and NVMe for trillion-parameter scale.
  • Agent-Native Primitives: Built-in support for model-chaining, shared tensor buses, and streaming inference.

Feature Matrix

Feature Status Technology
NEFCore Runtime ✅ Production Hybrid C++/Rust/Python execution
CUDA Driver Backend ✅ Production Raw PTX Kernel execution
HyperCache (VRAM/RAM) 🚧 Beta Intelligent memory paging
TurboQuant 🚧 Beta Adaptive precision (FP8, INT4, NF4)
Multi-GPU Fabric ✅ Active Unified logical accelerator
NEF Compiler ✅ Active Graph capture & kernel fusion

Documentation Suite

For deep dives into specific areas of the NEF2 ecosystem:


Quick Start

Installation

pip install nef2

Hardware-Native Tensors

from nef2 import Tensor
import nef2.gpu as gpu

# NEF2 automatically handles device placement
x = Tensor([[1, 2], [3, 4]], requires_grad=True)

if gpu.cuda_available():
    # Direct hardware-native matmul
    a, b = gpu.tensor([[1.0, 2.0]]), gpu.tensor([[3.0], [4.0]])
    c = a.matmul(b)
    print(f"Result on {gpu.device_name()}: {c.tolist()}")

Roadmap

  1. Phase 1 (Active): Establish the Foundation with NEFCore and custom CUDA kernels.
  2. Phase 2 (Active): Implement the Rust-based safe concurrency layer and distributed networking.
  3. Phase 3 (Active): Launch the HyperScale Multi-GPU Fabric for unified cluster execution.
  4. Phase 4 (Active): Realize Agent-Native Infrastructure for autonomous, model-agnostic intelligence.

Built for the future of Distributed Intelligence.

Join the revolution at github.com/Hexa08/NEF2

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

nef2-0.2.3.tar.gz (2.3 MB view details)

Uploaded Source

Built Distribution

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

nef2-0.2.3-cp312-cp312-manylinux_2_34_x86_64.whl (2.3 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

File details

Details for the file nef2-0.2.3.tar.gz.

File metadata

  • Download URL: nef2-0.2.3.tar.gz
  • Upload date:
  • Size: 2.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.1

File hashes

Hashes for nef2-0.2.3.tar.gz
Algorithm Hash digest
SHA256 cfa839a5921a8d92af9bc71ec390fc26258bf9f4e4cfc12196d97eb8506b4236
MD5 f0e07a5171e5fafd8ad66e85c9c02d0d
BLAKE2b-256 c6ecf6f287e6a46cf4e44636eaa1889852402d412f88aeec2a789450ff2b59c0

See more details on using hashes here.

File details

Details for the file nef2-0.2.3-cp312-cp312-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for nef2-0.2.3-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 b0374a6b71301d128f0f823d1b2e5c3ca6fdbf5bfb8d294c4c068e900cce8bb5
MD5 5dd935336f135b80d33da1e453362550
BLAKE2b-256 8cc4a1631c96ba8c74bb436af967555320f0e74539c5546d9e1bd71d8afce8db

See more details on using hashes here.

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