Skip to content

Commit

Permalink
convert : fix n_ff typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ggerganov committed Dec 9, 2023
1 parent dff8cbe commit d38e41e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ def loadOriginalParamsJson(model: LazyModel, config_path: Path) -> Params:
n_ff = model["layers.0.feed_forward.experts.0.w1.weight"].shape[0]
n_ctx = 32768
else:
n_ff = model["layers.0.feed_forward.w1.weight"].shape[0],
n_ff = model["layers.0.feed_forward.w1.weight"].shape[0]

return Params(
n_vocab = model["tok_embeddings.weight"].shape[0],
Expand Down

0 comments on commit d38e41e

Please sign in to comment.