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

Update the README.md with instructions for the proper template of a JSON-serialized string, including the two required fields: 'instruction' and 'output' #604

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
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
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,20 @@ pip install -r finetune/requirements.txt

Please follow [Sample Dataset Format](https://huggingface.co/datasets/nickrosh/Evol-Instruct-Code-80k-v1) to prepare your training data.
Each line is a json-serialized string with two required fields `instruction` and `output`.
Example of a JSON-serialized string, one formatted for use in Python and another for use in SQL.

###Python##
{
"instruction": "Write a Python function to calculate factorial",
"output": "def factorial(n):\n if n == 0:\n return 1\n else:\n return n * factorial(n-1)"
}

###SQL###
{
"instruction": "Create a SQL query to find duplicate emails",
"output": "SELECT email FROM users GROUP BY email HAVING COUNT(*) > 1;"
}


After data preparation, you can use the sample shell script to finetune `deepseek-ai/deepseek-coder-6.7b-instruct`.
Remember to specify `DATA_PATH`, `OUTPUT_PATH`.
Expand Down