How does chatGPT work?

Also wondering, how large it is? I think, I was reading somewhere that it takes more than one core to provide the answer, but the training? Would you have any estimation?