From 1fcd90b0b727232d46dcddec6f1f241f21f0abf1 Mon Sep 17 00:00:00 2001 From: mert-kurttutan Date: Sun, 22 Jan 2023 21:24:41 +0100 Subject: [PATCH] Update info on environment variable for threading (#1150) * Update env var name for threading * Update env var name for threading --- tokenizers/README.md | 4 ++-- tokenizers/src/lib.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tokenizers/README.md b/tokenizers/README.md index e86bf129..aacc051f 100644 --- a/tokenizers/README.md +++ b/tokenizers/README.md @@ -128,8 +128,8 @@ fn main() -> Result<()> { ## Additional information - tokenizers is designed to leverage CPU parallelism when possible. The level of parallelism is determined -by the total number of core/threads your CPU provides but this can be tuned by setting the `RAYON_RS_NUM_CPUS` -environment variable. As an example setting `RAYON_RS_NUM_CPUS=4` will allocate a maximum of 4 threads. +by the total number of core/threads your CPU provides but this can be tuned by setting the `RAYON_RS_NUM_THREADS` +environment variable. As an example setting `RAYON_RS_NUM_THREADS=4` will allocate a maximum of 4 threads. **_Please note this behavior may evolve in the future_** ## Features diff --git a/tokenizers/src/lib.rs b/tokenizers/src/lib.rs index 232ced85..eb89b931 100644 --- a/tokenizers/src/lib.rs +++ b/tokenizers/src/lib.rs @@ -116,8 +116,8 @@ //! # Additional information //! //! - tokenizers is designed to leverage CPU parallelism when possible. The level of parallelism is determined -//! by the total number of core/threads your CPU provides but this can be tuned by setting the `RAYON_RS_NUM_CPUS` -//! environment variable. As an example setting `RAYON_RS_NUM_CPUS=4` will allocate a maximum of 4 threads. +//! by the total number of core/threads your CPU provides but this can be tuned by setting the `RAYON_RS_NUM_THREADS` +//! environment variable. As an example setting `RAYON_RS_NUM_THREADS=4` will allocate a maximum of 4 threads. //! **_Please note this behavior may evolve in the future_** //! //! # Features