Skip to content

Commit 7727fa4

Browse files
committed
Remove f-prefix from strings that don't use formatting
1 parent 54bd6ed commit 7727fa4

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

bitsandbytes/optim/lars.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def __init__(
2525
):
2626
if momentum == 0:
2727
raise NotImplementedError(
28-
f"LARS without momentum is not supported!"
28+
"LARS without momentum is not supported!"
2929
)
3030
super().__init__(
3131
"lars",
@@ -59,7 +59,7 @@ def __init__(
5959
):
6060
if momentum == 0:
6161
raise NotImplementedError(
62-
f"LARS without momentum is not supported!"
62+
"LARS without momentum is not supported!"
6363
)
6464
super().__init__(
6565
"lars",
@@ -93,7 +93,7 @@ def __init__(
9393
):
9494
if momentum == 0:
9595
raise NotImplementedError(
96-
f"LARS without momentum is not supported!"
96+
"LARS without momentum is not supported!"
9797
)
9898
super().__init__(
9999
"lars",

bitsandbytes/optim/optimizer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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(f"init_state method needs to be overidden")
285+
raise NotImplementedError("init_state method needs to be overidden")
286286

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

292292

bitsandbytes/optim/rmsprop.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ def __init__(
2323
):
2424
if alpha == 0:
2525
raise NotImplementedError(
26-
f"RMSprop with alpha==0.0 is not supported!"
26+
"RMSprop with alpha==0.0 is not supported!"
2727
)
2828
if centered:
29-
raise NotImplementedError(f"Centered RMSprop is not supported!")
29+
raise NotImplementedError("Centered RMSprop is not supported!")
3030
super().__init__(
3131
"rmsprop",
3232
params,
@@ -59,10 +59,10 @@ def __init__(
5959
):
6060
if alpha == 0:
6161
raise NotImplementedError(
62-
f"RMSprop with alpha==0.0 is not supported!"
62+
"RMSprop with alpha==0.0 is not supported!"
6363
)
6464
if centered:
65-
raise NotImplementedError(f"Centered RMSprop is not supported!")
65+
raise NotImplementedError("Centered RMSprop is not supported!")
6666
super().__init__(
6767
"rmsprop",
6868
params,
@@ -96,10 +96,10 @@ def __init__(
9696

9797
if alpha == 0:
9898
raise NotImplementedError(
99-
f"RMSprop with alpha==0.0 is not supported!"
99+
"RMSprop with alpha==0.0 is not supported!"
100100
)
101101
if centered:
102-
raise NotImplementedError(f"Centered RMSprop is not supported!")
102+
raise NotImplementedError("Centered RMSprop is not supported!")
103103
super().__init__(
104104
"rmsprop",
105105
params,

bitsandbytes/optim/sgd.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def __init__(
2121
block_wise=True,
2222
):
2323
if momentum == 0:
24-
raise NotImplementedError(f"SGD without momentum is not supported!")
24+
raise NotImplementedError("SGD without momentum is not supported!")
2525
super().__init__(
2626
"momentum",
2727
params,
@@ -52,7 +52,7 @@ def __init__(
5252
block_wise=True,
5353
):
5454
if momentum == 0:
55-
raise NotImplementedError(f"SGD without momentum is not supported!")
55+
raise NotImplementedError("SGD without momentum is not supported!")
5656
super().__init__(
5757
"momentum",
5858
params,
@@ -83,7 +83,7 @@ def __init__(
8383
block_wise=True,
8484
):
8585
if momentum == 0:
86-
raise NotImplementedError(f"SGD without momentum is not supported!")
86+
raise NotImplementedError("SGD without momentum is not supported!")
8787
super().__init__(
8888
"momentum",
8989
params,

0 commit comments

Comments
 (0)