Upload train_pattern_selector.py with huggingface_hub
Browse files
train_pattern_selector.py
CHANGED
|
@@ -51,8 +51,6 @@ training_args = SFTConfig(
|
|
| 51 |
push_to_hub=True,
|
| 52 |
hub_model_id="KevinKeller/cognitive-pattern-selector-qwen2.5-7b",
|
| 53 |
report_to="none",
|
| 54 |
-
max_seq_length=4096,
|
| 55 |
-
load_in_4bit=True, # Enable 4-bit quantization
|
| 56 |
)
|
| 57 |
|
| 58 |
print("Starting training...")
|
|
@@ -62,6 +60,7 @@ trainer = SFTTrainer(
|
|
| 62 |
eval_dataset=eval_dataset,
|
| 63 |
peft_config=peft_config,
|
| 64 |
args=training_args,
|
|
|
|
| 65 |
)
|
| 66 |
|
| 67 |
trainer.train()
|
|
|
|
| 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 |
eval_dataset=eval_dataset,
|
| 61 |
peft_config=peft_config,
|
| 62 |
args=training_args,
|
| 63 |
+
max_seq_length=4096,
|
| 64 |
)
|
| 65 |
|
| 66 |
trainer.train()
|