Apple will probably do a hybrid between local and server processing. They will definitely do local where possible but some processing will still need to be done on servers. Apple just signed a deal with Super Micro for a large number of servers.
i don’t expect Apple to focus on a clone of ChatGPT or Gemini. They are more likely to use it for photo operations, control of Siri, and to make each of their apps and features work better together.