Skip to content

Commit 63e18c0

Browse files
authored
Fix convert_hf_checkpoint.py
As model has been moved to `build` folder by #192
1 parent fbdd08c commit 63e18c0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/convert_hf_checkpoint.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@
1212
import torch
1313

1414
# support running without installing as a package
15-
wd = Path(__file__).parent.parent.resolve()
16-
sys.path.append(str(wd))
15+
wd = Path(__file__).parent.parent
16+
sys.path.append(str(wd.resolve()))
17+
sys.path.append(str((wd / "build").resolve()))
1718

1819
from model import ModelArgs
1920

0 commit comments

Comments
 (0)