Upload train_pattern_selector.py with huggingface_hub
Browse files
train_pattern_selector.py
CHANGED
|
@@ -51,6 +51,7 @@ training_args = SFTConfig(
|
|
| 51 |
push_to_hub=True,
|
| 52 |
hub_model_id="KevinKeller/cognitive-pattern-selector-qwen2.5-7b",
|
| 53 |
report_to="none",
|
|
|
|
| 54 |
)
|
| 55 |
|
| 56 |
print("Starting training...")
|
|
@@ -60,7 +61,6 @@ trainer = SFTTrainer(
|
|
| 60 |
eval_dataset=eval_dataset,
|
| 61 |
peft_config=peft_config,
|
| 62 |
args=training_args,
|
| 63 |
-
max_seq_length=4096,
|
| 64 |
)
|
| 65 |
|
| 66 |
trainer.train()
|
|
|
|
| 51 |
push_to_hub=True,
|
| 52 |
hub_model_id="KevinKeller/cognitive-pattern-selector-qwen2.5-7b",
|
| 53 |
report_to="none",
|
| 54 |
+
max_length=4096, # Use max_length, not max_seq_length
|
| 55 |
)
|
| 56 |
|
| 57 |
print("Starting training...")
|
|
|
|
| 61 |
eval_dataset=eval_dataset,
|
| 62 |
peft_config=peft_config,
|
| 63 |
args=training_args,
|
|
|
|
| 64 |
)
|
| 65 |
|
| 66 |
trainer.train()
|