Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
lvhan028 committed Feb 6, 2025
1 parent 06a5d63 commit 589414b
Show file tree
Hide file tree
Showing 2 changed files with 1,161 additions and 2 deletions.
3 changes: 1 addition & 2 deletions benchmark/profile_pipeline_api_vlm.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ def sample_requests(dataset_path: str, num_requests: int, tokenizer) -> List[Tup
if prompt_len > 1024 or prompt_len + output_len > 2048:
# Prune too long sequences.
continue
# filtered_dataset.append((prompt, prompt_len, output_len))
filtered_dataset.append((prompt, prompt_len, 1))
filtered_dataset.append((prompt, prompt_len, output_len))

# Sample the requests.
sampled_requests = random.sample(filtered_dataset, num_requests)
Expand Down
Loading

0 comments on commit 589414b

Please sign in to comment.