Do LLMs Have Distinct and Consistent Personalities? TRAIT: Personality Testset designed for LLMs with Psychometrics, Seungbeen Lee1,, Seungwon Lim1,, Seungju Han2,3, Giyeong Oh1, Hyungjoo Chae1, Jiwan Chung1 Minju Kim1 Beong-woo Kwak1 Yeonsoo Lee4 Dongha Lee1 Jinyoung Yeo1 Youngjae Yu1
1Yonsei University, 2Seoul National University 3Allen Institute for AI 4NCSOFT
*Equal contribution.
You do not need a complex environment. Install the required python packages with the following command:
pip install -r requirements.txt
You can run 2 mode: Base mode and Personality-prompt mode. With Base mode,
Chatgpt
python run.py --model_name Chatgpt --model_name_short Chatgpt --prompt_type 1
mistralai/Mistral-7B-Instruct-v0.2
python run.py --model_name mistralai/Mistral-7B-Instruct-v0.2 --model_name_short mistral_instruct --inference_type chat --prompt_type 1
Chatgpt
python run_personality_prompt.py --model_name Chatgpt --model_name_short Chatgpt --model_close --personality "high openness" --prompt_type 2
mistralai/Mistral-7B-Instruct-v0.2
python run_personality_prompt.py --model_name mistralai/Mistral-7B-Instruct-v0.2 --model_name_short mistral_instruct --inference_type chat --personality "high openness" --prompt_type 2
You can get the result of the model.
python analysis.py
More codes are available soon!