• Sylvain Gugger's avatar
    Reproducible checkpoint (#11582) · 6b241e0e
    Sylvain Gugger authored
    * Set generator in dataloader
    
    * Use generator in all random samplers
    
    * Checkpoint all RNG states
    
    * Final version
    
    * Quality
    
    * Test
    
    * Address review comments
    
    * Quality
    
    * Remove debug util
    
    * Add python and numpy RNGs
    
    * Split states in different files in distributed
    
    * Quality
    
    * local_rank for TPUs
    
    * Only use generator when accepted
    
    * Add test
    
    * Set seed to avoid flakiness
    
    * Make test less flaky
    
    * Quality
    6b241e0e
test_examples.py 11 KB