Skip to content

Commit

Permalink
Updated requirements, batch size.
Browse files Browse the repository at this point in the history
  • Loading branch information
MaanavD committed Jul 14, 2023
1 parent 89f4497 commit ba57c50
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions torchbenchmark/models/hf_Whisper/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

class Model(HuggingFaceModel):
task = SPEECH.RECOGNITION
# https://cdn.openai.com/papers/whisper.pdf Says for large-v2 they trained on 1024 batch sizes.
DEFAULT_TRAIN_BSIZE = 8
DEFAULT_EVAL_BSIZE = 8
# https://cdn.openai.com/papers/whisper.pdf Says for large-v2 they trained on 1024 batch sizes, with 16 GPUs
DEFAULT_TRAIN_BSIZE = 64
DEFAULT_EVAL_BSIZE = 64

def __init__(self, test, device, jit=False, batch_size=None, extra_args=[]):
super().__init__(name="hf_Whisper", test=test, device=device, jit=jit, batch_size=batch_size, extra_args=extra_args)
Expand Down
3 changes: 1 addition & 2 deletions torchbenchmark/models/hf_Whisper/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
sentencepiece
datasets
numba

0 comments on commit ba57c50

Please sign in to comment.