Skip to content

Commit

Permalink
add param check
Browse files Browse the repository at this point in the history
  • Loading branch information
Cathy0908 committed Sep 11, 2024
1 parent 09880a3 commit 1db44c7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions data_juicer/ops/mapper/generate_instruction_mapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@ def __init__(self,
super().__init__(*args, **kwargs)
self.num_proc = 1

if not seed_file:
raise ValueError('Please provide `seed_file` parameter, a file in chatml format. '\
'Reference data: data-juicer/demos/data/demo-dataset-chatml.jsonl ')

self.instruct_num = instruct_num
self.similarity_threshold = similarity_threshold
self.similarity_type = 'rouge_l'
Expand Down

0 comments on commit 1db44c7

Please sign in to comment.