July 4, 2026 · 15 min read

Loihi 2 PyTorch Without Lava

Intel archived Lava. Teams still need Loihi 2 oriented PyTorch workflows. This guide covers Loihi 2 PyTorch without Lava using NeuroCUDA: convert, simulate IF dynamics, export NIR, and know what still requires silicon.

TL;DR

Loihi 2 PyTorch without Lava: pip install neurocuda → convert PyTorch ANN → neurocuda.compile(snn, target="loihi2_sim"). Simulator validated vs Intel IF equations (100k+ checks, 0 deviations). Lava archived: see lava-archived-alternative. Physical Loihi still needs INRC; simulation does not.

For years, loihi 2 pytorch without lava was not a common search phrase because Lava was the assumed bridge between PyTorch-style development and Intel's neuromorphic stack. In 2026 the lava-nc repositories are archived. No public successor SDK ships yet. Teams with half-finished Lava projects and new PyTorch checkpoints need a path that does not depend on unmaintained Intel packaging.

NeuroCUDA is one answer - not a Lava drop-in, but a pip-installable pipeline from PyTorch to a Loihi 2 equation simulator plus GPU/CPU validation. This guide explains what that covers, what it does not, and how it compares to staying on archived Lava.

What Lava was and why archival matters

Intel Lava provided a Python framework for describing spiking processes, mapping them to Loihi hardware, and integrating with Lava-DL (SLAYER) for gradient-based training. When Intel archived Lava:

Full context: Intel Lava archived: alternatives guide. The question is no longer "how do I install Lava" but "what replaces the PyTorch-to-Loihi validation loop."

Loihi 2 PyTorch without Lava: the NeuroCUDA path

pip install neurocuda[all]

import neurocuda

# 1. Start from trained PyTorch (not Lava Process models)
snn = neurocuda.convert(pytorch_model, calibration_loader, timesteps=32)

# 2. Validate on GPU first (fast iteration)
neurocuda.compile(snn, target="gpu")
gpu_acc = neurocuda.evaluate(snn, test_loader)

# 3. Switch to Loihi 2 IF simulator
neurocuda.compile(snn, target="loihi2_sim")
loihi_sim_acc = neurocuda.evaluate(snn, test_loader)

# 4. Optional NIR export for ecosystem tooling
neurocuda.to_nir(snn, "model_loihi_ready.nir")

This is Loihi 2 PyTorch without Lava in practice: standard torch.nn in, spiking network out, Loihi IF dynamics in simulation. No lava.proc imports, no Lava message passing runtime, no SLAYER training loop required.

Lava vs NeuroCUDA comparison

CapabilityIntel Lava (archived)NeuroCUDA
Maintenance statusArchived 2026Active (QuantaraCore)
InstallComplex dep treepip install neurocuda
PyTorch ANN inputVia Lava-DL / manualCore convert() API
Physical Loihi 2Was primary targetNot direct (INRC separate)
Loihi equation simVia Lava + hardwareloihi2_sim backend
INRC required for simOften tied to ecosystemNo
NIR exportEcosystem dependentBuilt-in, ResNet verified
Loihi 2 PyTorch without Lava means honest simulation labels - equation conformance in software, not claiming silicon energy or latency.

What loihi2_sim validates

NeuroCUDA's Loihi 2 backend implements integrate-and-fire dynamics per Intel's published Loihi neuron specification. Validation protocol from the technical report:

Use this backend to catch threshold and reset bugs before you invest in hardware porting. Do not cite simulator accuracy as Loihi silicon benchmarks. See Loihi 2 vs GPU energy for reporting discipline.

Recommended workflow in 2026

  1. Train ANN in PyTorch using your existing ML stack (same as pre-Lava archival)
  2. Convert with NeuroCUDA - QCFS + BPTT preserves accuracy (94.61% ResNet-18/CIFAR-10 published)
  3. Validate GPU vs CPU - bit-exact spike parity builds confidence in the graph
  4. Run loihi2_sim - equation-level Loihi IF check without Lava
  5. Export NIR - hand off to Open Neuromorphic tooling if needed
  6. Pursue silicon via INRC when Intel's next SDK or hardware path is clear

Step 6 is intentionally last. Most teams searching loihi 2 pytorch without lava need steps 1-5 today.

Who should still use archived Lava

Honest exceptions:

For greenfield PyTorch perception models, NeuroCUDA is the lower-friction path. For legacy Lava maintenance, read lava archived alternative before pinning old Python versions indefinitely.

Alternatives beyond NeuroCUDA

ToolLoihi 2 without Lava?Notes
NeuroCUDAYes (sim + convert)PyTorch checkpoint path
snnTorch / NorsePartialTrain SNNs; no Loihi sim backend
NIR toolchainPartialExchange format; needs executor
Archived LavaNo (is Lava)Frozen, unmaintained

See also PyTorch to Loihi 2 guide and best neuromorphic compiler for the wider landscape.

Code example: ResNet on Loihi sim

import torch
import torchvision
import neurocuda
from torch.utils.data import DataLoader

model = torchvision.models.resnet18(num_classes=10)
model.load_state_dict(torch.load("resnet18_cifar10.pth"))
model.eval()

test_loader = DataLoader(...)  # CIFAR-10 test
cal_loader = DataLoader(...)   # calibration split

snn = neurocuda.convert(model, cal_loader, timesteps=32)
neurocuda.compile(snn, target="loihi2_sim")

acc = neurocuda.evaluate(snn, test_loader)
print(f"Loihi 2 sim accuracy: {acc:.2%}")  # expect ~94.61% per PDF

Full tutorial: ResNet-18 SNN conversion.

Common misconceptions

Robotics and ROS2 angle

Teams building neuromorphic perception on robots often paired Lava with custom bridges. NeuroCUDA ROS2 wraps the compiler in standard nodes so Loihi 2 PyTorch without Lava extends to Jetson and x86 deploy graphs without maintaining a fork of archived Intel packages. Event camera pipelines: DVS ROS2 guide.

Primary sources

  1. Intel Lava archival context, quantaracore.in/blog/lava-archived-alternative
  2. NeuroCUDA Loihi 2 validation, quantaracore.in/neurocuda/paper.pdf
  3. NeuroCUDA GitHub, github.com/Krishnav1/neurocuda
  4. Intel Loihi research, intel.com neuromorphic computing
  5. Open Neuromorphic, open-neuromorphic.org

Frequently asked questions

Is Loihi 2 PyTorch without Lava production-ready?

Simulation and GPU validation are production-grade for software pipelines. Silicon deployment is a separate qualification step.

Does loihi2_sim need Intel drivers?

No. It runs in NeuroCUDA's Python process like GPU/CPU backends.

Can I migrate Lava models automatically?

No universal migrator exists. Rebuild from PyTorch weights or reimplement in NIR where possible.

What replaces SLAYER training?

Train ANN in PyTorch, convert with NeuroCUDA BPTT, or use snnTorch for native SNN training.

Start: pip install neurocuda · Lava archived alternative · Product page