Skip to content

Commit 4d80d5a

Browse files
committed
Fix style
Signed-off-by: SimJeg <sjegou@nvidia.com>
1 parent 1b63bcc commit 4d80d5a

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

kvpress/presses/kvzap_press.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,14 @@
1212

1313

1414
class KVzapConfig(PretrainedConfig):
15-
model_type: str = "kvzap"
16-
input_dim: int
17-
output_dim: int
18-
hidden_dim: Optional[int] = None
19-
n_modules: int
15+
model_type = "kvzap"
16+
17+
def __init__(self, *, input_dim: int, output_dim: int, n_modules: int, hidden_dim: Optional[int] = None, **kwargs):
18+
super().__init__(**kwargs)
19+
self.input_dim = input_dim
20+
self.output_dim = output_dim
21+
self.hidden_dim = hidden_dim
22+
self.n_modules = n_modules
2023

2124

2225
class KVzapModel(PreTrainedModel):

0 commit comments

Comments
 (0)