• Ethan Perez's avatar
    [Bug fix] Using loaded checkpoint with --do_predict (instead of… (#3437) · e5c393dc
    Ethan Perez authored
    * Using loaded checkpoint with --do_predict
    
    Without this fix, I'm getting near-random validation performance for a trained model, and the validation performance differs per validation run. I think this happens since the `model` variable isn't set with the loaded checkpoint, so I'm using a randomly initialized model. Looking at the model activations, they differ each time I run evaluation (but they don't with this fix).
    
    * Update checkpoint loading
    
    * Fixing model loading
    e5c393dc
run_pl_ner.py 8.3 KB