Deploy the qox/mba-simplifier MBA expression simplifier on Ascend NPU.
{hardware NPU}
# 1. Clone this deployment package
git clone <repo-url>
cd mba-simplifier
# 2. Install dependencies
pip install -r requirements.txt
# 3. Run inference locally
python inference.py "(x & y) + (x | y)"Expected output:
Input: (x & y) + (x | y)
Simplified: x + y
Reduction: 57% (bfs)
Latency: 186 ms (cold), ~2 ms (warm)This deployment reuses the upstream simplifier assets from qox/mba-simplifier:
| File | Description |
|---|---|
inference.py | Local inference entrypoint |
bfs_table_6.json | Pre-computed BFS table |
mba_classifier_v2.pt | Optional neural classifier |
torch; CPU/NumPy-only symbolic rewriting still works without it.