Building an LLM from Scratch: Automatic Differentiation (2023)
bclarkson-code.github.io
Building an LLM from Scratch: Automatic Differentiation (2023)
1–10 of 18 posts
Re: Building an LLM from Scratch: Automatic Differentiation (2023)
#2But obviously the author already thought of that. The source repo has a great motto: "It don't go fast but it do be goin'" [1]
I love the idea of the project and I'm curious to see what the endgame runtime will be.
Re: Building an LLM from Scratch: Automatic Differentiation (2023)
#3[1] https://github.com/cafaxo/Llama2.jl/tree/master/src/training
Re: Building an LLM from Scratch: Automatic Differentiation (2023)
#4As a chronic premature optimizer my first reaction was, "Is this even possible in vanilla python???" Obviously it's possible , but can you train an LLM before the heat death of the universe? A perceptron, sure, of course. A deep learning model, plausible if it's not too deep. But a large language model? I.e. the kind of LLM necessary for "from vanilla python to functional coding assistant." But obviously the author a…
Re: Building an LLM from Scratch: Automatic Differentiation (2023)
#5(see also andre karpathys zero to hero nn series on youtube as well its very good and similar to this work)
Re: Building an LLM from Scratch: Automatic Differentiation (2023)
#6Every one should go through this rite of passage work and get to the "Attention is all you need" implementation. It's a world where engineering and the academic papers are very close and reproducible and a must for you to progress in the field. (see also andre karpathys zero to hero nn series on youtube as well its very good and similar to this work)
Re: Building an LLM from Scratch: Automatic Differentiation (2023)
#7i realize the cost and time to train may be prohibitive and that quality on general english might be very limited, but is the code itself available ?
Re: Building an LLM from Scratch: Automatic Differentiation (2023)
#8Every one should go through this rite of passage work and get to the "Attention is all you need" implementation. It's a world where engineering and the academic papers are very close and reproducible and a must for you to progress in the field. (see also andre karpathys zero to hero nn series on youtube as well its very good and similar to this work)
https://arena-ch1-transformers.streamlit.app/%5B1.1%5D_Trans...
Re: Building an LLM from Scratch: Automatic Differentiation (2023)
#9is there an existing SLM that resembles an LLM in architecture that includes the code for training it ? i realize the cost and time to train may be prohibitive and that quality on general english might be very limited, but is the code itself available ?
Re: Building an LLM from Scratch: Automatic Differentiation (2023)
#10I did a similar thing for Julia: Llama2.jl contains vanilla Julia code [1] for training small Llama2-style models on the CPU. [1] https://github.com/cafaxo/Llama2.jl/tree/master/src/training