Skip to main content
Version: 10.2.8

Estimate resources for AutoML execution

This article provides recommendations on how to adjust AutoML Worker parameters, such as CPU and memory consumption, for better cluster utilization and throughput.

Information Extraction

For Information Extraction models, it is advisable to decrease AutoML Worker memory to 2 GB for documents of the S and M size and 3 GB for those of the L size. From the CPU perspective, it's better to stick to the default value of 1 CPU per Worker.

The table below contains explanatory notes on the document sizes mentioned above.

Document sizeExplanation
S300 to 3,000 tokens per document, 1 to 5 pages (~ 120 Kb)
M3,000 to 5,500 tokens per document, 5 to 10 pages (~ 200 Kb)
L5,500 to 80,000 tokens per document, over 10 pages (~ 500 Kb)
XL3x size of an L document

To estimate Worker memory for Information Extraction models, use the following formula:

Memory in Mb = ROUNDUP( 520 * (1 + number_of_fields * 0.06) * document_size_coefficient, -2)

Where the document_size_coefficient is based on the values in the table below.

Document sizeCoefficient
S1
M1.35
L1.9
XL3.8

Classification

For a Classification model, it's safe to decrease AutoML Worker CPU to 0.5 or 0.7 in the case of L size documents. As for memory, 1 GB per Worker is the recommended upper limit, especially for Use Cases with the classification of S size documents, for instance, emails.

The table below contains explanatory notes on the document sizes mentioned above.

Document sizeExplanation
S100 to 300 tokens per document (~ 2 Kb)
M300 to 500 tokens per document (~ 4 Kb)
L500 to over 80,000 tokens per document (~ 6 Kb)

Example

To illustrate the estimations, let's consider an example with the following assumptions:

  • A multi-class classification model was trained for 20 categories.
  • A 2x-reduced AutoML execution Worker (0.5 CPU, 2 GB RAM) was created for this model.
  • The BP with the model was launched for 20k records (a 20k new data set).

Below, you can find Kibana dashboards for task submission and processing rates. The left side is for the default Worker values. The right side is for the reduced Worker values.

In both cases, the BEP cluster was fully utilized. The trick is that, in both cases, only 13 AutoML Workers were running, which is enough to process the current load. However, in the second case, an extra 6.5 CPU and 26 GB RAM were available. The extra CPU and memory allowed running 16 more CT Workers to process other tasks in the automation BP, resulting in a 30% reduction of the end-to-end processing time.

Based on the example above, the benefits of reducing AutoML execution worker resources are as follows:

  • With the same hardware, you can process more AutoML tasks.
  • With the same hardware, you can get additional resources for other BEP Worker types, for instance, CT or OCR Workers, and so on.