How kds1123001/corruption-visualizer works
weight-glitcher trains a small image or text model, repeatedly corrupts selected live weights, and shows how inference changes. The CLI owns mode selection, training, corruption steps, and result presentation; corrupt.py implements the weight mutations. The image implementation is visible in vision.py. The text implementation is not excerpted, so its training and generation are represented only at the documented module boundary; edges reflect calls visible in glitcher.py or capabilities stated in the README.
Main entry points: glitcher.py Image runner · corrupt.py Corruption step · vision.py CNN training · text Character-LSTM training
Components 12
Run orchestration
- CLI workflow
glitcher.py - Image runner
glitcher.py - Text runner
glitcher.py
Weight corruption
- Corruption step
corrupt.py
Image target
- Shape generation
vision.py - CNN training
vision.py - TinyCNN inference
vision.py
Text target
- Character-LSTM training
text - Text generation
text
Other components
- User
- Image probabilities
- Generated text
Connections 16
- User → CLI workflow: selects mode
README.md - CLI workflow → Image runner: dispatches image
glitcher.py - CLI workflow → Text runner: dispatches text
glitcher.py - Image runner → CNN training: trains model
glitcher.py - Image runner → Shape generation: creates test shape
glitcher.py - CNN training → Shape generation: builds batches
vision.py - CNN training → TinyCNN inference: trains
vision.py - Image runner → Corruption step: corrupts weights
glitcher.py - Text runner → Character-LSTM training: trains model
glitcher.py - Text runner → Corruption step: corrupts weights
glitcher.py - Text runner → Text generation: generates output
glitcher.py - Corruption step → TinyCNN inference: mutates parameters
corrupt.py - Corruption step → Character-LSTM training: mutates parameters
corrupt.py - Image runner → TinyCNN inference: runs inference
glitcher.py - Image runner → Image probabilities: renders probabilities
glitcher.py - Text runner → Generated text: prints output
glitcher.py