Skip to content

Commit

Permalink
param.path_model is a Path() not a string
Browse files Browse the repository at this point in the history
  • Loading branch information
mofosyne committed Jan 9, 2024
1 parent 8c58330 commit c410ab8
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 @@ -873,7 +873,7 @@ def add_meta_arch(self, params: Params) -> None:
if params.n_ctx == 4096:
name = "LLaMA v2"
elif params.path_model is not None:
name = str(params.path_model.parent).split('/')[-1]
name = params.path_model.name

self.gguf.add_name (name)
self.gguf.add_context_length (params.n_ctx)
Expand Down

0 comments on commit c410ab8

Please sign in to comment.