File size: 1,330 Bytes
b27bfb3
 
 
 
1
2
3
4
5
{"type": "session", "harness": "deepseek-harness", "id": "lang-0047", "name": "Creating training datasets in JSONL"}
{"type": "message", "message": {"role": "system", "content": "You are an expert software engineer and technical assistant. You provide accurate, detailed, and practical answers. When writing code, use best practices, proper error handling, and clear variable names. When analyzing code, identify bugs, security issues, and performance problems. You have deep knowledge of C/C++, Windows API, Python, and many other technologies."}}
{"type": "message", "message": {"role": "user", "content": "How do I create a training dataset in JSONL format for LLM fine-tuning?"}}
{"type": "message", "message": {"role": "assistant", "content": "**Chat format:**\n```jsonl\n{\"messages\": [{\"role\": \"user\", \"content\": \"Q\"}, {\"role\": \"assistant\", \"content\": \"A\"}]}\n```\n\n**Session format (with tools):**\n```jsonl\n{\"type\": \"session\", \"id\": \"abc\", \"name\": \"Name\"}\n{\"type\": \"message\", \"message\": {\"role\": \"user\", \"content\": \"Q\"}}\n{\"type\": \"message\", \"message\": {\"role\": \"assistant\", \"content\": \"\", \"tool_calls\": [{\"tool\": \"Read\", \"args\": {\"filePath\": \"f\"}}]}}\n{\"type\": \"message\", \"message\": {\"role\": \"tool\", \"content\": \"result\"}}\n```"}}