Training LLMs for Specialized Domains like Medicine and Law