Takes practice, but it's a skill that can be mastered like any other.
I would put money on it also containing gpl3 code, which I suspect means that the model itself is probably also required to be public under the terms of gpl3
The code in question is not something that anyone needs to own. Rather, it's what anyone would write, faced with the same problem. It's stupid to make humans do a robot's job in the name of preserving meaningless "IP rights".
What I am referring to is GitHub claiming that you are using their resources so they can break your license, when in fact you are not using their resources so they never made that agreement with you.