Cerebras-inspired spatial inference engine.
Meshflow compiles small neural networks into spatial execution plans and runs them on a simulated 2D mesh of processing elements (PEs). Weights are resident in PE-local memory, activations flow along explicit routes.
- Python 3.12+
- Rust (stable toolchain)
- uv for Python dependency management
uv sync
uv run maturin developuv run python -c "import meshflow; print(meshflow.__version__)"# All tests
./scripts/test.sh
# Python tests only
uv run pytest tests/python
# Rust tests only
cargo test -p mesh_runtime./scripts/lint.shuv run uvicorn meshflow.api.server:app --reloadAfter changing Rust code:
uv run maturin developmeshflow/
├── python/meshflow/ # Python package (compiler, API, tools)
├── crates/mesh_runtime/ # Rust runtime (mesh simulator core)
├── tests/python/ # Python tests
├── tests/rust/ # Rust integration tests
├── artifacts/ # Generated compiled programs and traces
└── scripts/ # Dev workflow scripts