Skip to content

Commit 62c0bd2

Browse files
committed
Fix several typos in logging and comments
Via codespell
1 parent d504050 commit 62c0bd2

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

bitsandbytes/cextension.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def get_instance(cls):
116116
CUDASetup.get_instance().generate_instructions()
117117
CUDASetup.get_instance().print_log_stack()
118118
raise RuntimeError('''
119-
CUDA Setup failed despite GPU being available. Inspect the CUDA SETUP outputs aboveto fix your environment!
119+
CUDA Setup failed despite GPU being available. Inspect the CUDA SETUP outputs above to fix your environment!
120120
If you cannot find any issues and suspect a bug, please open an issue with detals about your environment:
121121
https://github.com/TimDettmers/bitsandbytes/issues''')
122122
lib.cadam32bit_g32

bitsandbytes/cuda_setup/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def get_cuda_version(cuda, cudart_path):
5050
minor = (version-(major*1000))//10
5151

5252
if major < 11:
53-
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!!')
53+
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!!')
5454

5555
return f'{major}{minor}'
5656

bitsandbytes/optim/optimizer.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ def override_config(
5656
"""
5757
Overrides initial optimizer config for specific parameters.
5858
59-
The key-values of the optimizer config for the input parameters are overidden
59+
The key-values of the optimizer config for the input parameters are overridden
6060
This can be both, optimizer parameters like "betas", or "lr" or it can be
61-
8-bit specific paramters like "optim_bits", "percentile_clipping".
61+
8-bit specific parameters like "optim_bits", "percentile_clipping".
6262
6363
Parameters
6464
----------
@@ -282,11 +282,11 @@ def get_config(self, gindex, pindex, group):
282282
return config
283283

284284
def init_state(self, group, p, gindex, pindex):
285-
raise NotImplementedError("init_state method needs to be overidden")
285+
raise NotImplementedError("init_state method needs to be overridden")
286286

287287
def update_step(self, group, p, gindex, pindex):
288288
raise NotImplementedError(
289-
"The update_step method needs to be overidden"
289+
"The update_step method needs to be overridden"
290290
)
291291

292292

0 commit comments

Comments
 (0)