-
Notifications
You must be signed in to change notification settings - Fork 0
backend execution
Capability declaration becomes executable deployment.
targets/rewrite.py applies a target's
declared substitutions to produce a target-ready graph and reports what
changed (rewrite_report.py):
applied, skipped, unfixable. Two rules ship — IF→beta=0 LIF for
norse and AvgPool2d→SumPool2d+Scale for lava_loihi2. An unfixable
primitive is named, never dropped, and a post-rewrite drift check quantifies
any residual.
targets/backends.compile_run()
is the single entry point. It rewrites, optionally quantizes, gates on the
backend's availability, then compiles, runs, and compares the result to the
reference interpreter — returning a BackendResult whose status is ok,
unavailable, or error. Nothing raises and nothing is faked.
| Backend | Extra | Behavior |
|---|---|---|
reference |
— | In-process NIR interpreter; always available |
norse |
norse |
Pure-PyTorch simulator; runs when the extra is installed |
lava_loihi2 |
lava |
Lava/Loihi 2 path; runs when the SDK is installed |
An absent SDK yields status: "unavailable" with a note naming the extra. SDK
imports are confined to
backends/api.py.
spikeforge-verify deploy --topology conv_net --target reference # capability view
spikeforge-verify rewrite --topology conv_net --target norse # substitutions + drift
spikeforge-verify run --topology conv_net --target reference # compile + run + compareThe same commands are on spikeforge-targets. deploy exits 0 only when
deployable; run exits non-zero unless status == "ok" and the comparison
to the reference is within tolerance.
A deploy_run action (backend_run reply) adds the executed view beside the
existing deployment_report. The
BackendRunPanel renders the
status, the rewrite report, the drift, and the reference comparison.
- Home
- Architecture
- Backend Execution
- Benchmarks
- Dashboard
- Development
- Event Datasets
- Event Runtime And Energy
- Features
- Implications And Boundaries
- Interop Foldins
- Interpreter Spine
- Introspection
- Model Deployment
- Model Hub
- Notes
- Operational Maturity
- Production Workflows
- Project Layout
- Quickstart
- Requirements
- Sequence Primitives
- Streaming Timeseries
- Targets And Interop
- Usage
- Arch 0001 Adr Repo Topology
- Arch 0001 Core Boundary
- Arch 0001 Decision Metrics
- Arch 0001 Migration Plan
- Arch 0001 Packaging Versioning
- Arch 0001 Protocol Contract
- Arch 0001 Risk Register
- Arch 0001 Target Topology
- Backend Execution Plan
- Ecosystem Listings
- Ecosystem Roadmap
- Event Runtime Plan
- Hub Expansion Plan
- Plans
- Interop Foldins Plan
- Interpreter Spine Plan
- Memory System Research
- Model Hub Plan
- Operations Plan
- Production Toolkit Plan
- Production Use Cases
- Professional Roadmap
- Repo Topology Plan
- Sequence Primitives Plan
- Use Case Audio Keyword Spotting
- Use Case Biosignal Medical Monitoring
- Use Case Computational Neuroscience
- Use Case Edge Power Budgets
- Use Case Event Camera Vision
- Use Case Intrusion Anomaly Detection
- Use Case Low Latency Sensor Stream
- Use Case Rl Control Robotics
- Use Case Spiking Transformers
- Use Case Streaming Timeseries