Skip to content

Commit 1a87c58

Browse files
committed
fix: Fix bad variable for self.d_model
Branch: GraniteFour Signed-off-by: Gabe Goodhart <[email protected]>
1 parent 463272d commit 1a87c58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

convert_hf_to_gguf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4338,7 +4338,7 @@ def __init__(self, dir_model: Path, *args, **kwargs):
43384338
hparams = json.load(f)
43394339
super().__init__(dir_model, *args, hparams=hparams, **kwargs)
43404340
self.d_model = self.find_hparam(["hidden_size", "d_model", "dim"])
4341-
self.d_inner = self.find_hparam(["intermediate_size", "d_inner"], optional=True) or 2 * d_model
4341+
self.d_inner = self.find_hparam(["intermediate_size", "d_inner"], optional=True) or 2 * self.d_model
43424342
self.n_group = self.hparams.get("n_groups", 1)
43434343

43444344
def set_vocab(self):

0 commit comments

Comments
 (0)