Please refer to our github repo and paper.

https://github.com/OFA-Sys/ExpertLLaMA

ExpertPrompting: Instructing Large Language Models to be Distinguished Experts