Nvidia has agreed to buy Hugging Face, the popular platform which hosts open-weight AI models, for $12.9 billion, just a month after the chipmaker’s CEO Jensen Huang defended open models and urged against “premature restrictions.”