You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
│ ├── simple_distributed.py # Distributed proving with Ray
108
106
│ └── aws/ # AWS GPU tests
109
-
└── zkml/ # zkml git submodule (modified with Merkle tree support)
107
+
└── zkml/ # zkml (modified with Merkle tree + chunk proving)
108
+
├── src/bin/prove_chunk.rs # CLI for chunk proof generation
109
+
└── testing/ # Rust test suites
110
110
```
111
111
112
-
This is a separate Rust crate that extends zkml. The `zkml/` directory is a git submodule containing a modified version of zkml with Merkle tree support for intermediate value commitments.
113
-
114
-
### Implementation Status
115
-
116
-
#### Merkle Tree Integration
117
-
118
-
- Binary Merkle tree implementation (`zkml/src/commitments/merkle.rs`)
119
-
- Builds binary tree from intermediate values
120
-
- Uses Poseidon hashing for efficient circuit operations
121
-
122
-
- Chunk execution (`zkml/src/layers/dag.rs`)
123
-
-`forward_chunk()` - Execute layers in a range
124
-
-`forward_chunk_with_merkle()` - Execute chunk and build Merkle tree
125
-
126
-
- Tests (`zkml/testing/`)
127
-
- Merkle tree tests (3/3 pass)
128
-
- Chunk execution tests (3/3 pass)
129
-
130
-
Current status: Code compiles, all tests pass. Ready for integration with proof generation.
131
-
132
112
## Quick Start
133
113
134
114
### Build
@@ -144,20 +124,28 @@ cd ..
144
124
cargo build
145
125
```
146
126
147
-
### Run Test/Simulation
127
+
### Run Distributed Proving
148
128
149
129
```bash
150
-
#Test/simulation with placeholder implementations
130
+
#Simulation mode (fast, no actual proofs)
151
131
python3 tests/simple_distributed.py \
152
132
--model zkml/examples/mnist/model.msgpack \
153
133
--input zkml/examples/mnist/inp.msgpack \
154
134
--layers 4 \
155
135
--workers 2
136
+
137
+
# Real mode (generates actual ZK proofs, ~2-3s per chunk)
0 commit comments