mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-12-19 05:10:35 +08:00
use fp16 model, add logcallback
This commit is contained in:
@@ -12,6 +12,7 @@ from utils import (
|
||||
preprocess_data,
|
||||
PairwiseDataCollatorForLLaMA,
|
||||
PairwiseTrainerForLLaMA,
|
||||
LogCallback,
|
||||
plot_loss
|
||||
)
|
||||
|
||||
@@ -43,6 +44,7 @@ def main():
|
||||
args=training_args,
|
||||
tokenizer=tokenizer,
|
||||
data_collator=data_collator,
|
||||
callbacks=[LogCallback()],
|
||||
**trainer_kwargs
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user