luofuli / word-sense-disambiguation

Incorporating Dictionary Knowledge into Neural Word Sense Disambiguation(ACL 2018)
MIT License
66 stars 24 forks source link

Only one GPU was used! #1

Closed ylxuer closed 5 years ago

ylxuer commented 6 years ago

I have tried GAS.train for twice, but the same problem is only one gpu is used, even though I set all GPUs can be used. Is this really the case? Or what changes should I make?

luofuli commented 6 years ago

Yes, our code doesn't support multi-GPUs. But our code will request nearly all of the GPU memory of all GPUs to avoid memory fragmentation (since GPU has much less memory, it is more vulnerable to fragmentation). If you want to support multi-GPUs, see this example.

ylxuer commented 6 years ago

OK, thank you very much!