Skip to content

Commit

Permalink
convert : get general.name from model dir, not its parent (ggerganov#…
Browse files Browse the repository at this point in the history
…5615)

Co-authored-by: Brian <mofosyne@gmail.com>
  • Loading branch information
cebtenzzre and mofosyne authored May 16, 2024
1 parent 0350f58 commit dda64fc
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 @@ -1109,7 +1109,7 @@ def add_meta_model(self, params: Params, metadata: Metadata) -> None:
if metadata is not None and metadata.name is not None:
name = metadata.name
elif params.path_model is not None:
name = str(params.path_model.parent).split("/")[-1]
name = params.path_model.name
elif params.n_ctx == 4096:
# Heuristic detection of LLaMA v2 model
name = "LLaMA v2"
Expand Down

0 comments on commit dda64fc

Please sign in to comment.