Git Product home page Git Product logo

llm_quickstart's Introduction

Exercises from a quickstart to large language models. There are 2 sections in this doc. First, prerequisites configure your development environment. Then, the chapters section has a link to a folder with with the relevant code for each chapter.

Pre requisites

Before you begin, install Xcode command line tools on your MAC:

After confirming you have xcode command line tools, get Conda:

  1. Setup Conda with miniforge https://github.com/conda-forge/miniforge#unix-like-platforms-mac-os--linux
  2. Create a Conda environment:
mkdir llm_quickstart
conda create -p ./env  
# activate the environment:
conda activate ./env
conda install pytorch-nightly::pytorch torchvision torchaudio -c pytorch-nightly
conda install matplotlib
conda install ipykernel
conda env config vars set PYTORCH_ENABLE_MPS_FALLBACK=1

If you made it this far, you have a working environment. Well done! From this point forward, you can use conda activate ./env whenever you are in the ‘llm_quickstart’ folder.

And if you don't yet have a code editor, like VSCode. You can use Jupyter notebooks within VSCode: https://code.visualstudio.com/docs/datascience/jupyter-notebooks

Finally, install hugging face:

conda install -c huggingface transformers
conda install sentence-transformers

Wrap up by creating a kernel for your jupyter notebooks: python -m ipykernel install --user --name=pytorch211.

Chapters

llm_quickstart's People

Contributors

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