facebookresearch / fairseq2

FAIR Sequence Modeling Toolkit 2
https://facebookresearch.github.io/fairseq2/
MIT License
678 stars 78 forks source link

Refactor device and environment utilities #572

Closed cbalioglu closed 3 months ago

cbalioglu commented 3 months ago

This PR refactors determine_default_device(), get_int_from_env(), and get_path_from_env() functions to their own file, along with some nit updates.