Skip to content
/ TRAIT Public

The official implementation of "TRAIT: Personality Testset designed for LLMs with Psychometrics"

Notifications You must be signed in to change notification settings

pull-ups/TRAIT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TRAIT: Personality Testset designed for LLMs with Psychometrics

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.

Preparation

You do not need a complex environment. Install the required python packages with the following command: ​

pip install -r requirements.txt

How to run

You can run 2 mode: Base mode and Personality-prompt mode. With Base mode,

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

Personality-prompt mode

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

Result

You can get the result of the model.

python analysis.py

More codes are available soon!

About

The official implementation of "TRAIT: Personality Testset designed for LLMs with Psychometrics"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages