What if I put a licence on my Github-repositories that explicitly forbids the use of my code for machine-learning models?
https://docs.github.com/en/github/site-policy/github-terms-o...
This is the same reason it doesn’t matter if you put up a license that forbids GitHub from including you in backups or the search index.