Repository navigation
NeuralOps v1.6.0 — CPU Stability, Modern Tier Architecture & Production Release
NeuralOps v1.6.0: CPU Stability, Modern Tier Architecture & Lazy Loading
NeuralOps v1.6.0 marks a major architectural release focusing on CPU portability, clean tier separation, PEP 562 lazy loading, and robust verification.
Highlights
- Modern 3-Tier Architecture: Physical separation of core subsystems into
neuralops.layers(131 attention mechanisms),neuralops.compression(72 model compression engines), andneuralops.ops(112 CUDA C++ packages housing 114 native kernels, and 26 Triton kernel modules housing 62 unified operators). Full backward-compatibility shims are preserved at legacy paths. - PEP 562 Lazy Loading: Bare import
import neuralopsexecutes in<30msusing standard library only, completely decoupling import-time execution from PyTorch, CUDA, or Triton runtimes. - Duplicate Primitive Consolidation: Consolidated multiple legacy variants into single canonical classes (
LoRALinear,SVDLinear,FactorizedLinear,NeuralOpsConfig,compute_flops_estimate). Deleted redundant dead packages (neuralops/monitor, legacyneuralops/attention) and unified training underneuralops.trainer. - Decoupled Telemetry & Benchmarking: Heavy analysis and plotting tools (
paper_export,results_ledger,roofline,inspector) relocated out of core toneuralops.analysisandneuralops.benchmarks, decoupling the core engine frommatplotlibandpandas. - Silent Failure Elimination & Honest Stubs: Replaced bare exception swallows and hardcoded numeric fallbacks with explicit diagnostic warnings. Serving integrations (
vllm,sglang,tensorrt_llm,tgi) updated to honest stubs raisingIntegrationNotImplementedErrorwhen optional backends are missing. - CPU Distributed Test Suite: Added
tests/distributed/test_distributed_cpu.pywith 9 CPU-safe tests for context and tensor parallel modules, collective uninitialized state guards, and single-process linear projections. - Quality Gates & Security Hygiene: Zero AST dead-code issues across 1,377 Python files, universal MIT headers, and automated code hygiene tests (
tests/test_code_quality.py).
Installation & PyPI Distribution
- PyPI Release: https://pypi.org/project/neuralops/1.6.0/
- Install (CPU):
pip install neuralops==1.6.0 - Install (NVIDIA CUDA):
pip install "neuralops[cuda]==1.6.0"