urchade / GLiNER

Generalist and Lightweight Model for Named Entity Recognition (Extract any entity types from texts) @ NAACL 2024
https://arxiv.org/abs/2311.08526
Apache License 2.0
1.48k stars 127 forks source link

Implementation of trainer class (fp16 training & gradient accumulation) #85

Closed MarcusLoppe closed 6 months ago

MarcusLoppe commented 6 months ago

Hi,

I've created a trainer class that has support for:

I used the trainer in https://github.com/lucidrains/meshgpt-pytorch as a boilerplate, so credits to @lucidrains for the nicely structured trainer.