Upload train_question_generator.py with huggingface_hub
Browse files
train_question_generator.py
CHANGED
|
@@ -53,8 +53,6 @@ training_args = SFTConfig(
|
|
| 53 |
push_to_hub=True,
|
| 54 |
hub_model_id="KevinKeller/cognitive-question-generator-qwen2.5-7b",
|
| 55 |
report_to="none",
|
| 56 |
-
max_seq_length=8192,
|
| 57 |
-
load_in_4bit=True, # Enable 4-bit quantization
|
| 58 |
)
|
| 59 |
|
| 60 |
print("Starting training...")
|
|
@@ -64,6 +62,7 @@ trainer = SFTTrainer(
|
|
| 64 |
eval_dataset=eval_dataset,
|
| 65 |
peft_config=peft_config,
|
| 66 |
args=training_args,
|
|
|
|
| 67 |
)
|
| 68 |
|
| 69 |
trainer.train()
|
|
|
|
| 53 |
push_to_hub=True,
|
| 54 |
hub_model_id="KevinKeller/cognitive-question-generator-qwen2.5-7b",
|
| 55 |
report_to="none",
|
|
|
|
|
|
|
| 56 |
)
|
| 57 |
|
| 58 |
print("Starting training...")
|
|
|
|
| 62 |
eval_dataset=eval_dataset,
|
| 63 |
peft_config=peft_config,
|
| 64 |
args=training_args,
|
| 65 |
+
max_seq_length=8192,
|
| 66 |
)
|
| 67 |
|
| 68 |
trainer.train()
|