dwadden / dygiepp

Span-based system for named entity, relation, and event extraction.
MIT License
575 stars 120 forks source link

Added AMP mixed precision training support for events #39

Closed GillesJ closed 4 years ago

GillesJ commented 4 years ago

What changed to enable Torch's built-in Nvidia AMP mixed precision training with AllenNLP (>v1.1.0rc2) for significant speedup:

I have only patched calls for training ace-event with default-settings, for other tasks where other reduction functions are called .float() should also be added to the tensors. I have not benchmarked the speedup with AMP on training e.g. Ace-event yet. In any case this PR is tested and working for training events.

GillesJ commented 4 years ago

I PR'ed this from the wrong branch, will do over.