Skip to content

Commit

Permalink
remove
Browse files Browse the repository at this point in the history
  • Loading branch information
AllentDan committed Nov 3, 2023
1 parent e21ff84 commit 6682f43
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions benchmark/profile_serving.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,7 @@ def read_dataset(tokenizer_path: str, dataset_path: str, samples: int,
dataset = [data for data in dataset if len(data['conversations']) >= 2]
# Only keep the first two turns of each conversation.
dataset = [(data['conversations'][0]['value'],
data['conversations'][1]['value'])
for data in dataset][:samples * 2]
data['conversations'][1]['value']) for data in dataset]
prompts = [prompt for prompt, _ in dataset]
completions = [completion for _, completion in dataset]
print(f'elapsed time for read data: '
Expand Down

0 comments on commit 6682f43

Please sign in to comment.