# TFJS - parallelise models inference

**URL:** <https://discuss.ai.google.dev/t/tfjs-parallelise-models-inference/30936>\
**Category:** TF.js\
**Tags:** tfjs\
**Created:** [August 24, 2023, 9:49am UTC](https://discuss.ai.google.dev/t/tfjs-parallelise-models-inference/30936 "2023-08-24T09:49:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daniil\_Emtsev](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/daniil_emtsev/32/16800_2.png) [@Daniil\_Emtsev](https://discuss.ai.google.dev/u/Daniil_Emtsev)\
**Post date:** [August 24, 2023, 9:49am UTC](https://discuss.ai.google.dev/t/tfjs-parallelise-models-inference/30936/1 "2023-08-24T09:49:23Z")

</div>

Hey!

I am wondering how to do the inference of more than one ML model in parallel in tfjs? If I create asynchronous functions of models inference (predict\_1, predict\_2) then if I run (await predict\_1, await predict\_2) it does not work.

---

<div class="post-metadata">

**Author:** ![Jason](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/jason/32/6193_2.png) [@Jason](https://discuss.ai.google.dev/u/Jason)\
**Post date:** [August 24, 2023, 5:45pm UTC](https://discuss.ai.google.dev/t/tfjs-parallelise-models-inference/30936/3 "2023-08-24T17:45:54Z")

</div>

Any errors or more information?
