Companies that once mined cryptocurrencies such as Bitcoin are now transforming into artificial intelligence (AI) firms.