hydra-zen + tyro ❤️
See original GitHub issueHello! I just came across tyro
and it looks great!
I wanted to put hydra-zen on your radar. It is a library designed make Hydra-based projects more Pythonic and lighter on boilerplate code. It mainly does this by providing users with functions like builds and just, which dynamically generate dataclasses that describe how to build, via instantiate, various objects. There are plenty of bells and whistles that I could go into (e.g. nice support for partial’d targets), but I’ll keep it brief-ish.
That being said, hydra-zen’s main features are quite independent of Hydra, and are more focused on generating dataclasses that can configure/build various Python interfaces. It seems like this might be the sort of thing that could be helpful for tyro users who want to generate nested, typed interfaces based on objects in their library or from third party libraries.
This is just a rough idea at this point, but I figured that there might be some potential synergy here! I’d love to get your impressions if you think there might be any value here.
Issue Analytics
- State:
- Created 9 months ago
- Comments:11 (5 by maintainers)
Top GitHub Comments
Thanks for taking the time!
Need some time to think about the rest, but PyTorch3D has some code that attempts something similar: https://pytorch3d.org/tutorials/implicitron_config_system
(sorry for the delay! Will get back to you asap)