Unverified Commit 37db34cb authored by Hailey Schoelkopf's avatar Hailey Schoelkopf Committed by GitHub
Browse files

Update lm_eval/models/huggingface.py


Co-authored-by: default avatarlewtun <lewis.c.tunstall@gmail.com>
parent 68c30aa7
...@@ -698,7 +698,7 @@ class HFLM(LM): ...@@ -698,7 +698,7 @@ class HFLM(LM):
context, continuation = req.args[0].strip(), req.args[1] context, continuation = req.args[0].strip(), req.args[1]
chat = [] chat = []
if self.system_prompt is not None: if self.system_prompt is not None:
chat += [{"role": "system", "content": "You are a helpful assistant."}] chat += [{"role": "system", "content": self.system_prompt}]
chat += [ chat += [
{"role": "user", "content": context}, {"role": "user", "content": context},
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment