"vscode:/vscode.git/clone" did not exist on "afe5d42d8d1d80af911ed980c2936bfe887078f6"
  • Leonid Boytsov's avatar
    Misc. fixes for Pytorch QA examples: (#16958) · c82e017a
    Leonid Boytsov authored
    1. Fixes evaluation errors popping up when you train/eval on squad v2 (one was newly encountered and one that was previously reported Running SQuAD 1.0 sample command raises IndexError #15401 but not completely fixed).
    2. Removes boolean arguments that don't use store_true. Please, don't use these: *ANY non-empty string is being converted to True in this case and this clearly is not the desired behavior (and it creates a LOT of confusion).
    3. All no-trainer test scripts are now saving metric values in the same way (with the right prefix eval_), which is consistent with the trainer-based versions.
    4. Adds forgotten model.eval() in the no-trainer versions. This improved some results, but not everything (see the discussion in the end). Please, see the F1 scores and the discussion below.
    c82e017a
test_accelerate_examples.py 12.8 KB