Skip to content

Commit

Permalink
oom
Browse files Browse the repository at this point in the history
  • Loading branch information
albertz committed Dec 16, 2024
1 parent 55e7bad commit 1f7eee0
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,12 @@ def py():
model = get_ctc_with_lm(
ctc_model=ctc_model, prior=prior, prior_scale=prior_scale, language_model=lm, lm_scale=lm_scale
)
res = recog_model(task=task, model=model, recog_def=model_recog)
res = recog_model(
task=task,
model=model,
recog_def=model_recog,
config={"batch_size": 10_000 * ctc_model.definition.batch_size_factor},
)
tk.register_output(f"{prefix}/recog-priorScale{prior_scale}-lmScale{lm_scale}", res.output)


Expand Down

0 comments on commit 1f7eee0

Please sign in to comment.