Constrain Transformers to a Specific Number of Cores
You can set Certara.AI to only use a specific number of cores when vectorizing information.
Caution
When editing the file, make sure only to add what is needed. Deleting or adding irrelevant fields can disrupt Layars ability to operate.
- SSH into your environment.
- Run sudo -i
- Run vim /data/layar/layar.config
- Press i to start editing.
- At the very bottom of the file add
VECTORSTORE_TRANSFORMERS_OMP_NUM_THREADS=X
- I.E. If you have 12 cores, an X of 6 would result in Certara.AI using 6 cores when vectorizing data.
- A value of 0 results in Certara.AI using half of the available cores.
- Press ESC to exit input mode.
- Run
:wq
to commit the changes.
Updated 6 months ago