LLMs-from-scratch icon indicating copy to clipboard operation
LLMs-from-scratch copied to clipboard

fix: small bug fixes/improvements for pkg

Open d-kleine opened this issue 4 months ago • 0 comments

Fixes for several issues in the package

  • fixes #675; code for the encode function has been taken from ch05\07_gpt_to_llama\converting-llama2-to-llama3.ipynb (please double-check if everything is okay)
  • fixes tqdm import
  • adds weights_only=True to only load the weights with torch.load (set to False by default in torch versions < 2.6; avoiding mismatches and warnings)

d-kleine avatar Jun 18 '25 16:06 d-kleine