From 9d51e109606e071f76053ac530344367a8784b7d Mon Sep 17 00:00:00 2001 From: Aarni Koskela Date: Thu, 10 Oct 2024 15:52:25 +0300 Subject: [PATCH] Fix typos --- _typos.toml | 6 ++++-- bitsandbytes/functional.py | 2 +- csrc/kernels.cu | 6 +++--- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/_typos.toml b/_typos.toml index e4e7287fb..955c6cb79 100644 --- a/_typos.toml +++ b/_typos.toml @@ -4,8 +4,10 @@ extend-ignore-re = [ "@Ther-nul", # valid Github user ] - -[default.extend-identifiers] +extend-ignore-identifiers-re = [ + ".*arange.*", + ".*ARANGE.*", +] [type.py.extend-words] "BA" = "BA" # used as a commented-out variable in tests diff --git a/bitsandbytes/functional.py b/bitsandbytes/functional.py index 34b3c0293..7503ad73c 100644 --- a/bitsandbytes/functional.py +++ b/bitsandbytes/functional.py @@ -1864,7 +1864,7 @@ def percentile_clipping(grad: Tensor, gnorm_vec: Tensor, step: int, percentile: gnorm_vec: torch.Tensor Vector of gradient norms. 100 elements expected. step: int - The current optimiation steps (number of past gradient norms). + The current optimization steps (number of past gradient norms). """ prev_device = pre_call(grad.device) diff --git a/csrc/kernels.cu b/csrc/kernels.cu index be7779de1..867390f2c 100644 --- a/csrc/kernels.cu +++ b/csrc/kernels.cu @@ -2661,7 +2661,7 @@ template