(example, tokenizer)
| 68 | |
| 69 | |
| 70 | def make_conv_hf(example, tokenizer): |
| 71 | system_prompt = open("system_prompt.md").read() |
| 72 | msg = [ |
| 73 | {"role": "system", "content": system_prompt}, |
| 74 | {"role": "user", "content": example["prompt_sft"] + "\n\nWrite Python code to solve the problem. Present the code in \n```python\nYour code\n```\nat the end."} |
| 75 | ] |
| 76 | chat = tokenizer.apply_chat_template(msg, tokenize=False, add_generation_prompt=True) |
| 77 | return chat |
| 78 | |
| 79 | samples = [] |
| 80 | del problems["start_time"] |
no test coverage detected