Skip to content

Commit

Permalink
feat: correct checkpoint path
Browse files Browse the repository at this point in the history
Added posix path to .bin
  • Loading branch information
StochasticRomanAgeev committed Apr 17, 2023
1 parent b4094cd commit 5a9ef88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xturing/engines/llama_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def noop(*args, **kwargs):
make_quant(model, layers, wbits, groupsize)


model.load_state_dict(torch.load(weights_path), strict=False)
model.load_state_dict(torch.load(weights_path / Path("pytorch_model.bin")), strict=False)

if warmup_autotune:
autotune_warmup(model)
Expand Down

0 comments on commit 5a9ef88

Please sign in to comment.