I am personally happy to share all my public code to support the development of better models. While I believe the benefits of contributing to open source outweigh the drawbacks, and I don't foresee a "large-scale exodus from GitHub", it's ultimately up to individual developers to decide how their code is used.