Giter Club home page Giter Club logo

capstone's Introduction

This repository contains a public version of my Minerva Capstone: "Understanding Large Language Models: An Engineer’s Handbook". The five core chapters in this book are as follows:

  1. Neural Language Models: this takes a broad view of language modeling as a whole - computational systems that can regress the probability of the next word, provided prior words in a sequence. It then examines how neural networks can use continuous representations to create functions that work not only on sequences provided during training, but also sequences "similar" to those but not directly provided during training.

  2. The Quirks of Tokenization: this examines how tokenization, which is the process through which natural language is broken down into a sequence of discrete symbols (to perform language modeling over) can have surprisingly unintended behaviors. This provides early work supporting that separating the syntax of natural language (such as capitalization, spacing, punctuation, etc.) from the semantics of language can lead to more robust, generalizable representations. A full implementation of the custom tokenizer proposed here can be found in captoken.

  3. LoRA and Weight Decay: This chapter explores the consequences of applying a popular regularization method to finetuning, when the weights are reparametrized. This reveals that applying weight decay on LoRa actually changes the underlying optimization objective (compared to full-finetuning), and provides guidance on when this might and might not be desirable.

  4. Tensor Parallelism with jax.pjit: This chapter explores model parallelism, which is how a neural network too large to fit on a single GPU can be distributed across dozens to hundreds of such chips. It examine how, for standard multi-layer perceptrons (MLPs), a mixture of two cases (sharding on inner and outer axes, respectively) can lead to a unified understanding of a large body of literature in this area.

  5. Chinchilla’s Implications: Chinchilla scaling laws are now commonly used in industry to determine the size and amount of data needed to train a model given a fixed budget of compute. This blog the implications of Chinchilla's findings: that models prior to that were severely undertrained, as well as how the scaling laws allows us to make quantifiable tradeoffs between train-time and inference time compute costs.

capstone's People

Contributors

irhum avatar

Stargazers

muhtasham avatar

Watchers

 avatar  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.