I think the concept of open source should simply extend to AI models.
I'm fine with AI being trained on open source code, if the entire model is also released as open source.
We need GPL analog to AI training - license that allows you training models, but only if they are released as open source. An infective AI training license.