MCPcopy Create free account
hub / github.com/FSoft-AI4Code/HyperAgent / create_text_row

Function create_text_row

scripts/fine_tuning.py:33–35  ·  view source on GitHub ↗
(system_instruction, input, output)

Source from the content-addressed store, hash-verified

31 responses.append(data["system_response"])
32
33 def create_text_row(system_instruction, input, output):
34 text_row = f"""<s>[INST] <</SYS>>\\nSystem: {system_instruction}\\n<</SYS>>\\n\\nHuman: {input}[/INST] \nAssistant: \n{output}</s>"""
35 return text_row
36
37 with open("data/hyperagent_traces.jsonl", "w") as f:
38 for prompt, input, output in zip(system, chat, responses):

Callers 1

get_dataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected