Skip to content

Docker and ease of debugging #3

Open
@aleSuglia

Description

Hello,

Thanks again for releasing this codebase. I just wanted to ask your opinion about Docker. Docker has definitely its benefits when running code on production but I believe it's not really well-suited for research prototyping. In particular, I believe that a research codebase should be really easy to use, debug and modify. Docker prevents you from freely debugging in your favourite IDE (PyCharm). I think it would be easy to do so if the codebase was easily installable using Anaconda just like other framework such as AllenNLP.

Looking at the codebase, seems that the major problem when it comes to dependencies, is Horovod. Is there any way you can somehow refactor your codebase following Horovod-GPU-project? I think this will allow everybody to easily install Horovod without the burden of having to learn Docker internals.

Another important point was the fact that currently seems that the codebase supports only GPU execution. However, most of the time, it would be useful to test/debug your model on CPU as well. In this case, the major issue that I see is that you assume that apex is installed. Huggingface decided to deprecate Apex because is now been outperformed by the internal Torch implementation (see huggingface/transformers#9377 for details).

I think these two points will incredibly improve the user experience of your codebase for people that: 1) don't have GPU; 2) don't have experience/the current environment to use Docker (some companies might not like it).

I would love to hear your thoughts on this. I'm planning to modify the codebase myself tackle such problems so please let me know if you would be interested in a PR.

Thanks,
Alessandro

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions