LLMs-from-scratch
LLMs-from-scratch copied to clipboard
fix: small bug fixes/improvements for pkg
Fixes for several issues in the package
- fixes #675; code for the
encodefunction has been taken fromch05\07_gpt_to_llama\converting-llama2-to-llama3.ipynb(please double-check if everything is okay) - fixes
tqdmimport - adds
weights_only=Trueto only load the weights withtorch.load(set toFalseby default intorchversions < 2.6; avoiding mismatches and warnings)