File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -43,15 +43,15 @@ def __post_init__(self):
43
43
# then calculate implicitly based on dim and
44
44
# also multiple of `args.multiple_of`
45
45
multiple_of = self .multiple_of
46
- hidden_dim = 4 * dim
46
+ hidden_dim = 4 * self . dim
47
47
hidden_dim = int (2 * hidden_dim / 3 )
48
48
if self .ffn_dim_multiplier is not None :
49
49
hidden_dim = int (self .ffn_dim_multiplier * hidden_dim )
50
- args .hidden_dim = multiple_of * ((hidden_dim + multiple_of - 1 ) // multiple_of )
50
+ self .hidden_dim = multiple_of * ((hidden_dim + multiple_of - 1 ) // multiple_of )
51
51
self .head_dim = self .dim // self .n_heads
52
52
53
53
@classmethod
54
- def from_params (cls , params_path : str ):
54
+ def from_params (cls , params_path ):
55
55
with open (params_path , "r" ) as f :
56
56
params = json .loads (f .read ())
57
57
return cls (** params )
You can’t perform that action at this time.
0 commit comments