mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-11-09 06:44:45 +08:00
modify some style
Former-commit-id: d29f3798f654c40448bc91e3b97db1c6e4de0fbe
This commit is contained in:
parent
de1e5b3f40
commit
26b760842b
@ -6,7 +6,6 @@ from ..extras.constants import IGNORE_INDEX
|
||||
from ..extras.logging import get_logger
|
||||
from .utils import Role
|
||||
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from transformers import Seq2SeqTrainingArguments
|
||||
from transformers.tokenization_utils import AutoProcessor, PreTrainedTokenizer
|
||||
@ -280,5 +279,4 @@ def get_preprocess_and_print_func(
|
||||
preprocess_unsupervised_dataset, tokenizer=tokenizer, template=template, data_args=data_args
|
||||
)
|
||||
print_function = partial(print_unsupervised_dataset_example, tokenizer=tokenizer)
|
||||
|
||||
return preprocess_func, print_function
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user