From f63859b3d0cb39cbac709e3850f3fe01de1023aa Mon Sep 17 00:00:00 2001 From: Zhihao Lin <36994684+LZHgrla@users.noreply.github.com> Date: Fri, 2 Feb 2024 12:41:20 +0800 Subject: [PATCH] [Fix] Remove pre-defined `system` of `alpaca_zh_map_fn` (#395) fix --- xtuner/dataset/map_fns/dataset_map_fns/alpaca_zh_map_fn.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/xtuner/dataset/map_fns/dataset_map_fns/alpaca_zh_map_fn.py b/xtuner/dataset/map_fns/dataset_map_fns/alpaca_zh_map_fn.py index b94f7ea83..5e17cfa04 100644 --- a/xtuner/dataset/map_fns/dataset_map_fns/alpaca_zh_map_fn.py +++ b/xtuner/dataset/map_fns/dataset_map_fns/alpaca_zh_map_fn.py @@ -1,11 +1,9 @@ # Copyright (c) OpenMMLab. All rights reserved. -from xtuner.utils import SYSTEM_TEMPLATE def alpaca_zh_map_fn(example): return { 'conversation': [{ - 'system': SYSTEM_TEMPLATE.alpaca, 'input': f"{example['instruction_zh']}\n{example['input_zh']}", 'output': example['output_zh'] }]