Skip to content

Commit 876e1c5

Browse files
committed
lint
Signed-off-by: Andrea Fasoli <[email protected]>
1 parent 61252a6 commit 876e1c5

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

fms_mo/aiu_addons/i8i8/i8i8_aiu_adapter.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,13 @@ def _add_defaults_and_concat(
9898

9999

100100
# registration of new adapter step and adapter for each architecture
101-
for arch in ["llama", "gpt_bigcode", "granite", "roberta", "roberta_question_answering"]:
101+
for arch in [
102+
"llama",
103+
"gpt_bigcode",
104+
"granite",
105+
"roberta",
106+
"roberta_question_answering",
107+
]:
102108
serialization.register_adapter_step(arch, "int8_qparams_aiu", _int8_qparams_aiu)
103109
if arch in ["llama", "granite"]:
104110
steps_to_register = [

fms_mo/aiu_addons/i8i8/i8i8_aiu_linear.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,7 @@ def __init__(
8787

8888
self.has_bias = bias
8989
bias_size = out_features if self.has_bias else 1
90-
self.register_buffer(
91-
"bias", torch.zeros((bias_size), dtype=torch.float16)
92-
)
90+
self.register_buffer("bias", torch.zeros((bias_size), dtype=torch.float16))
9391

9492
if config.weight_per_channel:
9593
w_clip_size = out_features

0 commit comments

Comments
 (0)