mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-08-03 20:22:49 +08:00
18 lines
476 B
Python
18 lines
476 B
Python
from .common import (
|
|
load_pretrained,
|
|
prepare_args,
|
|
prepare_data,
|
|
preprocess_data
|
|
)
|
|
|
|
from .data_collator import DataCollatorForLLaMA
|
|
|
|
from .peft_trainer import LogCallback
|
|
|
|
from .seq2seq import ComputeMetrics, Seq2SeqTrainerForLLaMA
|
|
from .pairwise import PairwiseDataCollatorForLLaMA, PairwiseTrainerForLLaMA
|
|
from .ppo import PPOTrainerForLLaMA
|
|
|
|
from .config import ModelArguments
|
|
from .other import auto_configure_device_map, get_logits_processor, plot_loss
|