Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
HowieHwong committed May 1, 2024
1 parent ce1fccd commit 80596a7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion New/generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@

Emotion_File = ['EmoBench_EA.json', 'EmoBench_EU.json']
Personality_File = ['big_five.json', 'dark_traits.json']
Culture_File = ['culture_orientation.json']

@retry(wait=wait_random_exponential(min=1, max=10), stop=stop_after_attempt(6))
def get_res(string, model, temperature=0.5):
Expand Down Expand Up @@ -144,4 +145,7 @@ def run_task(eval_type, file_list, model):
json.dump(save_data, f, indent=4, ensure_ascii=False)
print(f'Finish {file}')

run_task('emotion', [Emotion_File[1]], 'glm4')

model_list = ['gpt-4', 'llama3-8b', 'llama3-70b', 'mixtral', 'mistral-7b', 'mixtral-large', 'glm4', 'qwen-turbo', 'chatgpt']
for model in model_list:
run_task('personality', Personality_File, model)

0 comments on commit 80596a7

Please sign in to comment.