Views
No views yet
b2 b1 b0
x a2 a1 a0
─────────────────────
a0b2 a0b1 a0b0
a1b2 a1b1 a1b0
a2b2 a2b1 a2b0
─────────────────────────────
p5 p4 p3 p2 p1 p0Col 0: pp00 ────────────────────────────────────► p0
Col 1: pp01 ─┬─► HA ─┬─► p1
pp10 ─┘ └─► c1 ──────────┐
│
Col 2: pp02 ─┬─► FA ─┬─► s2 ──► HA ──┼──► p2
pp11 ─┤ └─► c2 ─┐ │
pp20 ─┘ │ │
▼ │
Col 3: pp12 ─┬─► HA ─┬─► s3 ─► HA ──┼──► p3
pp21 ─┘ └─► c3 ────────┼─┐
│ │
Col 4: pp22 ─────────► HA ──► HA ──┴─┴─► p4
│
Col 5: ─────────────────────────────────► p5| Inputs | 6 |
| Outputs | 6 |
| Neurons | 37 |
| Layers | 5 |
| Parameters | 147 |
| Magnitude | 133 |
| Approach | Depth | Parallelism |
|---|---|---|
| Ripple-Carry | O(n) | Low |
| Wallace Tree | O(log n) | High |
1from safetensors.torch import load_file
2
3w = load_file('model.safetensors')
4
5# 7 x 7 = 49
6# All 64 combinations verified