8000 [pull] main from centerforaisafety:main by pull[bot] · Pull Request #12 · androiddevnotesforks/hle · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[pull] main from centerforaisafety:main #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 10, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions hle_eval/run_model_predictions.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,9 @@

client = AsyncOpenAI(timeout=600.0, max_retries=1)

SYSTEM_EXACT_ANSWER = "Your response should be in the following format:\nExplanation: {your explanation for your final answer}\nExact Answer: {your succinct, final answer}\nConfidence: {your confidence score between 0% and 100% for your answer}"

SYSTEM_MC = "Your response should be in the following format:\nExplanation: {your explanation for your answer choice}\nAnswer: {your chosen answer}\nConfidence: {your confidence score between 0% and 100% for your answer}"

SYSTEM_PROMPT = "Your response should be in the following format:\nExplanation: {your explanation for your answer choice}\nAnswer: {your chosen answer}\nConfidence: {your confidence score between 0% and 100% for your answer}"

def format_message(question):
answer_type = question['answer_type']
system_prompt = SYSTEM_EXACT_ANSWER if answer_type == 'exact_match' else SYSTEM_MC
question_text = question['question']

text_content = dict(type="text", text=question_text)
Expand All @@ -27,7 +22,7 @@ def format_message(question):

system_role = "user" if "o1" in args.model else "system" # o1 no sys prompt
messages = [
{"role": system_role, "content": system_prompt},
{"role": system_role, "content": SYSTEM_PROMPT},
{"role": "user", "content": content}
]
return messages
Expand Down
0