ai foundation model architecture