.. _examples.extra.parallel_processing: Text generation with custom concurrency limit and multiple processes ==================================================================== The following example depicts how to limit concurrency to be able to process outputs from multiple models at once. Such a technique is necessary to prevent spending all resources in the first instance. .. literalinclude:: ../../../examples/extra/parallel_processing.py :language: python :caption: See `parallel_processing.py `_ on GitHub. :lines: 7-