Skip to content

Commit

Permalink
Fix convert_hf_checkpoint.py (#208)
Browse files Browse the repository at this point in the history
As model has been moved to `build` folder by #192
  • Loading branch information
malfet committed Jul 17, 2024
1 parent 1507940 commit d052e36
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/convert_hf_checkpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@
import torch

# support running without installing as a package
wd = Path(__file__).parent.parent.resolve()
sys.path.append(str(wd))
wd = Path(__file__).parent.parent
sys.path.append(str(wd.resolve()))
sys.path.append(str((wd / "build").resolve()))

from model import ModelArgs

Expand Down

0 comments on commit d052e36

Please sign in to comment.