Skip to content

Commit

Permalink
add _accelerator
Browse files Browse the repository at this point in the history
  • Loading branch information
Cathy0908 committed Jul 24, 2024
1 parent 3496228 commit 149023c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion data_juicer/ops/mapper/extract_qa_mapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ class ExtractQAMapper(Mapper):
"""

_accelerator = 'cuda'
_batched_op = True

def __init__(self,
hf_model: str = 'alibaba-pai/pai-qwen1_5-7b-doc2qa',
Expand Down
1 change: 1 addition & 0 deletions data_juicer/ops/mapper/generate_instruction_mapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ class GenerateInstructionMapper(Mapper):
The number of samples generated is determined by
the length of the empty dataset.
"""
_accelerator = 'cuda'

def __init__(self,
hf_model,
Expand Down
1 change: 1 addition & 0 deletions data_juicer/ops/mapper/optimize_instruction_mapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class OptimizeInstructionMapper(Mapper):
alibaba-pai/Qwen2-7B-Instruct-Refine
]
"""
_accelerator = 'cuda'

def __init__(self,
hf_model: str = 'alibaba-pai/Qwen2-7B-Instruct-Refine',
Expand Down

0 comments on commit 149023c

Please sign in to comment.