Skip to content

Commit bdc8f54

Browse files
Jintao-Huanghuangjintao
andauthored
fix export self-cognition (#929)
Co-authored-by: huangjintao <[email protected]>
1 parent b313e86 commit bdc8f54

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

swift/llm/export.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,13 @@ def _get_dataset(*args, **kwargs):
2222
block_size = _args.quant_seqlen
2323

2424
# only use train_dataset
25-
dataset = get_dataset(data)[0]
25+
dataset = get_dataset(
26+
data,
27+
0,
28+
_args.dataset_seed,
29+
check_dataset_strategy=_args.check_dataset_strategy,
30+
model_name=_args.model_name,
31+
model_author=_args.model_author)[0]
2632
logger.info(f'quant_dataset: {dataset}')
2733
dataset = dataset.shuffle()
2834

0 commit comments

Comments
 (0)