Giter Site home page Giter Site logo

falcon-40b-7b's Introduction

Using Falcon40B or Falcon7B Instruct or any other Open Source LLMs on GPU via HuggingFace

In this tutorial we're going to be checking out some of the biggest baddest LLMs...but running them on a GPU!

Startup ๐Ÿš€

  1. Create a virtual environment python -m venv gpullm
  2. Activate it:
    • Windows:.\gpullm\Scripts\activate
    • Mac: source gpullm/bin/activate
  3. Install PyTorch with CUDA Support N.B. I've included the lib in the requirements.txt file but this is latest installer as of creating this readme. pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu117 Download and install CUDA (i've used 11.7 for this tutorial): https://developer.nvidia.com/cuda-11-7-0-download-archive Download and install the matching cuDNN version ( v8.9.1): https://developer.nvidia.com/rdp/cudnn-archive
  4. Clone this repo git clone https://github.com/dahan5/falcon-40b-7b
  5. Go into the directory cd falcon-40b-7b
  6. Startup jupyter by running jupyter lab in a terminal or command prompt
  7. Hit Ctrl + Enter to run through the notebook!
  8. Go back to my YouTube channel and like and subscribe ๐Ÿ˜‰...no seriously...please! lol

Other References ๐Ÿ”—

-PyTorch Installation:main guide leveraged to handle GPU support.

-Langchain HF Pipelines:the HF Pipelines class is used in order to pass the local LLM to a chain.

-Falcon 40B Instruct Model Card:check out the model details.

-Falcon 7B Instruct Model Card:check out the model details.

Who, When, Why?

๐Ÿ‘จ๐Ÿพโ€๐Ÿ’ป Author: Taleb DAHAN
๐Ÿ“… Version: 1.x
๐Ÿ“œ License: This project is licensed under the MIT License

falcon-40b-7b's People

Contributors

dahan5 avatar

Stargazers

MHijazi avatar

Watchers

 avatar

Forkers

mohamadhijazi

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.