Skip to content

Commit

Permalink
increased batch size.
Browse files Browse the repository at this point in the history
  • Loading branch information
boocmp committed Aug 14, 2024
1 parent a680d72 commit 3180558
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/runners/audio_transcriber.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def __init__(self):
)

def transcribe(self, audios):
result = self.model.transcribe(audios, batch_size=10, language="en")
result = self.model.transcribe(audios, batch_size=16, language="en")
return result["segments"]

@bentoml.Runnable.method(batchable=True)
Expand Down
2 changes: 1 addition & 1 deletion src/stt_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
runner_audio_transcriber = bentoml.Runner(
BatchableAudioTranscriber,
name="audio_transcriber",
max_batch_size=10,
max_batch_size=32,
)


Expand Down

0 comments on commit 3180558

Please sign in to comment.