Skip to content
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

feat(bench): update to run researchtown #912

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
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
Prev Previous commit
Next Next commit
fix temperature
  • Loading branch information
timsanders256 committed Nov 27, 2024
commit 6d337e8458db9ee2a4609abe8e2d3087facbd92c
2 changes: 1 addition & 1 deletion configs/param.yaml
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@ base_llm: gpt-4o-mini
max_token_num: 1024
member_num: 3
related_paper_num: 5
return_num: 1
return_num: 5
reviewer_num: 1
stream: null
temperature: 0.6
8 changes: 4 additions & 4 deletions research_bench/proposal_writing.py
Original file line number Diff line number Diff line change
@@ -89,7 +89,7 @@ def write_proposal_zero_shot(config: Config) -> List[str]:
),
}
]
response = model_prompting(config.param.base_llm, prompt, max_token_num=config.param.max_token_num, return_num=config.param.return_num)
response = model_prompting(config.param.base_llm, prompt, max_token_num=config.param.max_token_num, return_num=config.param.return_num, temperature=config.param.temperature)
return response


@@ -124,7 +124,7 @@ def write_proposal_with_only_profiles(profiles: List[Profile], config: Config) -
),
}
]
response = model_prompting(config.param.base_llm, prompt, max_token_num=config.param.max_token_num, return_num=config.param.return_num)
response = model_prompting(config.param.base_llm, prompt, max_token_num=config.param.max_token_num, return_num=config.param.return_num, temperature=config.param.temperature)
return response


@@ -159,7 +159,7 @@ def write_proposal_with_only_citations(ref_contents: List[str], config: Config)
),
}
]
response = model_prompting(config.param.base_llm, prompt, max_token_num=config.param.max_token_num, return_num=config.param.return_num)
response = model_prompting(config.param.base_llm, prompt, max_token_num=config.param.max_token_num, return_num=config.param.return_num, temperature=config.param.temperature)
return response


@@ -198,7 +198,7 @@ def write_proposal_with_profiles_and_citations(
),
}
]
response = model_prompting(config.param.base_llm, prompt, max_token_num=config.param.max_token_num, return_num=config.param.return_num)
response = model_prompting(config.param.base_llm, prompt, max_token_num=config.param.max_token_num, return_num=config.param.return_num, temperature=config.param.temperature)
return response


3 changes: 1 addition & 2 deletions research_town/utils/model_prompting.py
Original file line number Diff line number Diff line change
@@ -30,6 +30,5 @@ def model_prompting(
temperature=temperature,
stream=stream,
)
content = completion.choices[0].message.content
content_l = [content]
content_l = [choice.message.content for choice in completion.choices]
return content_l
Loading