Skip to content

NeuralOps v1.6.0 — CPU Stability, Modern Tier Architecture & Production Release

Choose a tag to compare

@tahamajs tahamajs released this 23 Oct 19:11
· 1621 commits to main since this 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), and neuralops.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 neuralops executes in <30ms using 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, legacy neuralops/attention) and unified training under neuralops.trainer.
  • Decoupled Telemetry & Benchmarking: Heavy analysis and plotting tools (paper_export, results_ledger, roofline, inspector) relocated out of core to neuralops.analysis and neuralops.benchmarks, decoupling the core engine from matplotlib and pandas.
  • 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 raising IntegrationNotImplementedError when optional backends are missing.
  • CPU Distributed Test Suite: Added tests/distributed/test_distributed_cpu.py with 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