mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-12-14 19:06:26 +08:00
20 lines
520 B
Python
20 lines
520 B
Python
from .common import (
|
|
load_pretrained,
|
|
prepare_args,
|
|
prepare_infer_args,
|
|
prepare_data,
|
|
preprocess_data
|
|
)
|
|
|
|
from .data_collator import DynamicDataCollatorWithPadding
|
|
|
|
from .peft_trainer import PeftTrainer, LogCallback
|
|
|
|
from .seq2seq import ComputeMetrics, Seq2SeqPeftTrainer
|
|
from .pairwise import PairwiseDataCollatorWithPadding, PairwisePeftTrainer
|
|
from .ppo import PPOPeftTrainer
|
|
|
|
from .template import prompt_template_alpaca, prompt_template_ziya
|
|
|
|
from .other import get_logits_processor, plot_loss
|