WASHINGTON: Nvidia announced Thursday it will buy artificial intelligence platform Hugging Face for US$12.9 billion, as the chipmaking giant seeks to diversify its hold on the AI sector.