-
Notifications
You must be signed in to change notification settings - Fork 0
quickstart
Two supported install paths: from PyPI (no clone needed), or editable from a clone for development.
pip install spikeforgefrom spikeforge import TrainingEngine
engine = TrainingEngine(dataset="mnist", hidden=32, epochs=1, num_steps=5)
for metrics in engine.train():
last = metrics
print(last)TrainingEngine is the entry point for new code: it owns the cancellable
training loop, topology selection, encoding, checkpointing, and evaluation.
SNNTrainer, also exported from the package root, is the older and narrower
MNIST rate-coding helper behind the spikeforge tutorial demo and the
animation walkthroughs — it is not the class to reach for when training a
network. See Benchmarks for what this configuration actually
scores and how long it takes.
CPU-only machines. The default torch wheels on PyPI carry the whole CUDA
stack, so a plain pip install spikeforge builds a ~5.5 GB environment even on
a laptop that will never use a GPU. Install the CPU wheels first and the rest
follows them:
pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu
pip install spikeforgeThat lands at ~1.1 GB. The order matters: passing --extra-index-url on a
single command leaves pip free to prefer the CUDA build from PyPI. This is the
same flow the Dockerfile and CI use via TORCH_INDEX_URL.
That's the core training API with no Docker and no dashboard. For the deployment/NIR/energy CLIs and the dashboard:
pip install "spikeforge[all]" # library bundle: core + targets + hub
pip install spikeforge-server # the server, pulling core + targets + hubspikeforge-verify --help # NIR export/validate, deploy, records, ONNX
spikeforge-server # the dashboard/WebSocket server on :8877Open http://localhost:8877 for the single-port build, or run the Vite dev
server for hot reload (cd client && npm install && npm run dev; its proxy
target is :8877).
./install.sh # editable: core + targets + hub + server
./install.sh --no-server # the library only (no dashboard/server)
./install.sh --dev # add the [dev] extra to every distribution./install.sh installs all four distributions in editable mode. Then:
spikeforge --help # tutorial demo: train + export every visual
spikeforge-verify --help # NIR export/validate, deploy, records, ONNX
spikeforge-server # the dashboard/WebSocket server on :8877python -m server remains an equivalent way to launch the server.
From a clone you can also run any of the fifteen example journeys directly (training, encoding, NIR/ONNX, the hub, backends, energy, sequence experiments, and reproducibility):
python examples/04_nir_export_validate.pylisted in examples/README.md; the copy-pasteable
recipes are in COOKBOOK.md. examples/ is not part of
the PyPI wheel, so running these scripts specifically needs the clone (the
inline snippet above under "From PyPI" does not).
- 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