Docs / Quickstart

Quickstart

Install NMC, compile a PyTorch model to .snn, and run inference on the NT3000 eval kit. Estimated time: 10–15 minutes.

1. Installation

Prerequisites: Python 3.9–3.12, pip, and an NT3000 eval kit connected via USB-C. The eval kit drivers are bundled with the NMC CLI.

If nmc doctor reports no device, check the USB-C connection and ensure libusb is installed (brew install libusb on macOS or sudo apt-get install libusb-1.0-0 on Linux).

2. Export your model

NMC accepts TorchScript (.pt) or ONNX (.onnx) exports. For the quickstart, use the bundled sample model:

3. Compile to .snn

Run the compiler with the --calibrate flag to run threshold calibration before serialization. The calibration pass uses the 512-sample default dataset bundled with NMC.

1
Basic compilation
2
Inspect the binary

Use nmc inspect to view the binary metadata, memory layout, and expected SRAM usage before deploying.

4. Deploy to eval kit

Flash the compiled .snn binary to the NT3000 eval kit over USB-C. The eval kit firmware handles loading and starting the runtime loop.

5. Verify inference

Send a test sample via USB-C and read the classification result. The eval kit firmware exposes a simple JSON-over-serial protocol.

Next steps