Git Product home page Git Product logo

llms's Introduction

Learning LLMs from Scratch

I’ve been out of the ml space for over a decade, and aside from reading abstracts here and there have no idea how modern transformer based methods work.

What better way to get up to speed than to implement one from scratch?

This is an attempt to implement a runtime for the LLaMA/alpaca models in julia from core principles and the literature using the llama and llama.cpp codebases as guidance when the papers are obscure.

In the couple of weeks I’ve been pursuing this I’ve come to see a definite trend towards gnosticism over the past ten years. Without code it would take days or weeks of lit review to find the math invovled in each of a dozen functions. Obviously part of this is due to companies not wanting to give too much away about their exceedingly profitable contraptions, but even more, I think, it’s just a rapidly moving field full of enthusiasts who can’t be bothered with catering to those who can’t keep up.

With that in mind, one of the goals of this project is to get the math behind the code as clear as possible. If I get excited I’ll try to push the boundaries of Julia’s “latex that runs” style, but first I need to figure out what’s going on.

llms's People

Contributors

tgetgood avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.