Upload train.py
Browse files
train.py
CHANGED
|
@@ -13,7 +13,6 @@ HUB_MODEL_ID = "moos124/qwen-coder-multilingual-sft"
|
|
| 13 |
|
| 14 |
def preprocess_function(example):
|
| 15 |
# Convert Alpaca format to ChatML format
|
| 16 |
-
# dataset columns: instruction, input, output
|
| 17 |
user_content = example["instruction"]
|
| 18 |
if example.get("input"):
|
| 19 |
user_content += f"\n\nInput: {example['input']}"
|
|
|
|
| 13 |
|
| 14 |
def preprocess_function(example):
|
| 15 |
# Convert Alpaca format to ChatML format
|
|
|
|
| 16 |
user_content = example["instruction"]
|
| 17 |
if example.get("input"):
|
| 18 |
user_content += f"\n\nInput: {example['input']}"
|