CharlesCNorton commited on
Commit ·
5a44526
1
Parent(s): 329d4e4
Refactor pruner v5: streamline from 16 to 6 core methods
Browse filesRemoved redundant/rarely-useful methods:
- quantize, annealing, topology, structural, sensitivity
- weight_sharing, depth, gate_subst, symmetry, fanin
- exhaustive_sparse
Kept core methods:
- magnitude: greedy weight reduction
- zero: try zeroing each weight
- evolutionary: GPU-parallel genetic algorithm
- exhaustive_mag: provably optimal for small circuits
- architecture: search flat 2-layer alternatives
Added new method:
- compositional: exploits known-optimal components (XOR mag-7,
XOR3 mag-10) to reduce search space from 10^15 to ~2000 combos
Code reduced from 3751 to 1388 lines (63% reduction).
prune.py
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|