From 62c0bd2278cfdfc3676697c0a2409dafa26f3310 Mon Sep 17 00:00:00 2001 From: Tom Aarsen Date: Tue, 1 Nov 2022 09:53:47 +0100 Subject: [PATCH] Fix several typos in logging and comments Via codespell --- bitsandbytes/cextension.py | 2 +- bitsandbytes/cuda_setup/main.py | 2 +- bitsandbytes/optim/optimizer.py | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bitsandbytes/cextension.py b/bitsandbytes/cextension.py index abcdd16..bdbf125 100644 --- a/bitsandbytes/cextension.py +++ b/bitsandbytes/cextension.py @@ -116,7 +116,7 @@ try: CUDASetup.get_instance().generate_instructions() CUDASetup.get_instance().print_log_stack() raise RuntimeError(''' - CUDA Setup failed despite GPU being available. Inspect the CUDA SETUP outputs aboveto fix your environment! + CUDA Setup failed despite GPU being available. Inspect the CUDA SETUP outputs above to fix your environment! If you cannot find any issues and suspect a bug, please open an issue with detals about your environment: https://github.com/TimDettmers/bitsandbytes/issues''') lib.cadam32bit_g32 diff --git a/bitsandbytes/cuda_setup/main.py b/bitsandbytes/cuda_setup/main.py index fdeb8af..6feead2 100644 --- a/bitsandbytes/cuda_setup/main.py +++ b/bitsandbytes/cuda_setup/main.py @@ -50,7 +50,7 @@ def get_cuda_version(cuda, cudart_path): minor = (version-(major*1000))//10 if major < 11: - CUDASetup.get_instance().add_log_entry('CUDA SETUP: CUDA version lower than 11 are currenlty not supported for LLM.int8(). You will be only to use 8-bit optimizers and quantization routines!!') + CUDASetup.get_instance().add_log_entry('CUDA SETUP: CUDA version lower than 11 are currently not supported for LLM.int8(). You will be only to use 8-bit optimizers and quantization routines!!') return f'{major}{minor}' diff --git a/bitsandbytes/optim/optimizer.py b/bitsandbytes/optim/optimizer.py index b2c59d6..867ad3d 100644 --- a/bitsandbytes/optim/optimizer.py +++ b/bitsandbytes/optim/optimizer.py @@ -56,9 +56,9 @@ class GlobalOptimManager: """ Overrides initial optimizer config for specific parameters. - The key-values of the optimizer config for the input parameters are overidden + The key-values of the optimizer config for the input parameters are overridden This can be both, optimizer parameters like "betas", or "lr" or it can be - 8-bit specific paramters like "optim_bits", "percentile_clipping". + 8-bit specific parameters like "optim_bits", "percentile_clipping". Parameters ---------- @@ -282,11 +282,11 @@ class Optimizer8bit(torch.optim.Optimizer): return config def init_state(self, group, p, gindex, pindex): - raise NotImplementedError("init_state method needs to be overidden") + raise NotImplementedError("init_state method needs to be overridden") def update_step(self, group, p, gindex, pindex): raise NotImplementedError( - "The update_step method needs to be overidden" + "The update_step method needs to be overridden" )