MyriadForge revives the Intel Neural Compute Stick (Movidius Myriad 2) as a modern edge accelerator — a dual-backend OpenVINO shim, async-pipelined throughput, and five real AI apps, all on the actual stick.
The Myriad 2 (MA2450) is a USB accelerator Intel discontinued and dropped from OpenVINO after 2020.3. It can't run LLMs — but it's a genuinely capable, ~1 W always-on decision engine for static-shape FP16 workloads.
Paired-gap probes — each workload benched against a zero-compute twin with the identical input — isolate pure compute time on real silicon. The same chip that gives MobileNetV2 14.4 GFLOPS gives a dense 3×3 Conv stack 35.8 GFLOPS: the bottleneck is model structure, not the SHAVEs.
The legacy library becomes a thin device-access shim; modern orchestration plugs in above it. The same five apps run unchanged on either the NCS1 (Myriad 2) or an NCS2 (Myriad X).
A newer host library can't make the firmware compute faster — single-inference latency is firmware-bound. The +48% comes from overlapping USB transfer with on-stick compute via multiple in-flight async requests. Model batching does not help on Myriad 2; pipelining does. Every number is measured on real silicon, with the limits documented.
Speed isn't the only gain. With --device hetero (HETERO:MYRIAD,CPU),
ops the Myriad 2 can't compile — like the MobileNetV3-style HardSigmoid — fall back
to the host CPU automatically. A graph pure MYRIAD rejects runs on the heterogeneous pipeline,
widening the set of models the stick can accelerate.
Measured black-box (the plugin's own profiler crashes): 1.5 ms fixed dispatch, 14.8 ms input transfer (~40 MB/s), and 41.7 ms compute — running at just ~14 GFLOPS, about 10–18 % of the 80–150 GFLOPS peak. The device is compute-execution-bound, not USB-bound; the transfer share is precisely what pipelining hides (58.0 − 14.8 = 43.2 ms, the measured pipelined p50 to 0.01 ms). Bonus: FP16 input tensors are accepted and 4× faster (16.3 → 4.1 ms on the same graph) — the shim exposes that to every app.
A cheap always-on gate flags interesting ranges; an expensive host brain only wakes when needed. Each pilot speaks the same versioned event & index contracts.
apps/gate
Classifier + threshold → a versioned trigger event. The always-on first stage of every app.
apps/footage
Video → sampled frames → gate → a timestamp/label/confidence index for search & editing.
apps/podcast
WAV → windows → gate → speech-event index. ASR stays on the host; the stick gates.
apps/knn_engine
Vector table as constant GEMM weights; ~285 queries/sec. Capacity calculator included.
apps/cascade
Gate fires → host Mirage describes the frame. Full latency chain, end to end.
myriadforge
Versioned result records, percentile metrics, and a self-contained HTML dashboard.
The brain is expensive: Mirage costs 1.59 s per frame on the host CPU (720p) — 60 frames unguarded is 95 s. The stick screens all 60 in ~4.5 s at ~1 W. On our cartoon sample the gate fires on everything (an ImageNet top-1 gate is confidently wrong on abstract content) — the honest lesson: the gate needs task-specific semantics, and the harness now measures exactly that trade. On real footage where 1–5 % of frames fire, the same cascade cuts Mirage invocations 20–100×.
The missing piece has been built — task-specific FP16 gates trained, deployed and scored on the real stick: voice commands (90.7 %, p95 3.89 ms), text intent routing (80.1 %, p95 3.08 ms), desktop control localization (89.2 %), and an experimental browser ranker — plus a rank-4 LoRA adapter for Cactus's own Needle 3. Datasets are CC BY 4.0 with full provenance. And MagicEightBall: a 131,072-token Boolean decision model whose smallest physically tested NCS1 build uses 480 bytes, with its Boolean policy retained on the stick.
The suite matrix
Every model family is a suite: a frozen spec with acceptance gates declared before any sealed set, digest-verified fixtures, a trainer, a bundle, and a device evaluation — with Cactus models as references to beat, not dependencies. The lanes row per suite is the visible answer to "which older devices run this today": the same ONNX artifacts measured on the stick, on plain x86 (ONNX Runtime), and convertible to LiteRT for phones via the WSL2 worker.
MagicEightBall (boolean suite) — release-ready: 512-byte blob, 128/128 physical, 30-min soak, 7-backend matched comparison. VoiceTools — trained v4 with slot-level abstention: 74.0 % exact / 5.4 % false actions / p95 9.7 ms on-device, FP16 decisions identical to CPU, beating the host Whistle→Needle 3 stack (44.4 % / 13.5 % / 430 ms) on every axis. Voice (90.7 %), intent (80.1 %), grounding (experimental) complete the row.
forms 89.2 % · retrieval encoder v0 trained (contrastive, 1 MB FP16 — in-corpus Recall@10 0.68, kNN engine measured 285 qps) · vision-gate spec frozen (compute-dense design per the 35.8-GFLOPS ceiling — fixes the measured cascade failure) · vad v0.1 device-evaluated: quality gates PASS (0.0 false wakes/hour @ frozen threshold), latency gated by the paired-gap method · docqa, asr specs frozen.
Every suite records ncs1 / cpu / ort / litert / ncs2 / coral. Measured today:
MobileNetV2 gate 171 inf/s, VoiceTools 0.61 ms p50, vad 0.14 ms p50 on
plain ONNX Runtime vs 15.7 inf/s / 9.6 ms / 7.0 ms on the stick — same fixtures, same
gates, same record schema (ntvbench.result/1). LiteRT conversion runs via
litert-torch in WSL2 (the Windows converter accepts Jax/PyTorch only — probe verdict
recorded). NCS2 lane prepared; cold-USB procedures documented.
Native Windows only — the MYRIAD driver story is Windows-native, not WSL2.
# 1. Isolated OpenVINO 2020.3.2 venv for the NCS1 (idempotent) powershell -ExecutionPolicy Bypass -File tools\ncs1\setup_env.ps1 # 2. WinUSB driver for the stick (one elevated run; approve UAC) powershell -ExecutionPolicy Bypass -File tools\ncs2\install_driver.ps1 # 3. Functional smoke test (ONNX → FP16 IR → CPU vs onnxruntime) tools\ncs1\.venv\Scripts\python.exe tools\ncs1\smoke_cpu.py # 4. Discover lanes + a real benchmark on the stick uv sync uv run myriadforge devices uv run myriadforge bench onnx-models/mobilenetv2-7 --device ncs1-myriad # 5. Every pilot on the stick, one summary report tools\ncs2\.venv\Scripts\python.exe tools\ncs2\demo_mvp.py --lane ncs1 --device myriad --full