GithubHelp home page GithubHelp logo

zhaoqiongz / gaudi-tutorials Goto Github PK

View Code? Open in Web Editor NEW

This project forked from habanaai/gaudi-tutorials

0.0 0.0 0.0 7.55 MB

Tutorials for running models on First-gen Gaudi and Gaudi2 for Training and Inference. The source files for the tutorials on https://developer.habana.ai/

Home Page: https://developer.habana.ai/tutorials/

Shell 0.02% Python 8.37% Jupyter Notebook 91.60%

gaudi-tutorials's Introduction

Gaudi Tutorials

These are the source files for the tutorials on https://developer.habana.ai/.

The tutorials provide step-by-step instructions for PyTorch and PyTorch Lightning on the Intel Gaudi AI Processor, from beginner level to advanced users.

To run these Jupyter Notebooks you will need to follow these steps:

  1. Get access to an Intel Gaudi 2 Accelerator card or node. See the Get Access page on the Developer Website. Be sure to use port forwarding ssh -L 8888:localhost:8888 ... user@ipaddress to be able to access the notebook.
  2. Run the Intel Gaudi PyTorch Docker image. Refer to the Docker section of the Installation Guide for more information. Running the docker image will allow you access to the entire software stack.
  3. Clone this tutorial in your $HOME directory: cd ~ && git clone https://www.github.com/habanaai/Gaudi-tutorials
  4. Install Jupyterlab: python3 -m pip install jupyterlab
  5. Run the Jupyterlab Server, using the same port mapping as the ssh command: python3 -m jupyterlab_server --IdentityProvider.token='' --ServerApp.password='' --allow-root --port 8888 --ServerApp.root_dir=$HOME &

The tutorials will cover the following domains and tasks:

Advanced

  • Fine Tuning with LORA and Inference on Hugging Face Llama 2 70B model
  • Full RAG application with TGI-gaudi
  • RAG application with Local GPT modified to run on Intel Gaudi
  • How to setup and use DeepSpeed for Training Large Language Models

Intermediate

  • GPU migration Tool
  • Debug for Dynamic Shapes
  • Running Simple Inference examples with HPU Graph
  • How to use the Gaudi Tensorboard Plug-in for Profiling
  • Running DeepSpeed on PyTorch Lightning with GPT2
  • BERT Fine Tuning use PyTorch Lightning

Getting Started

  • Quick Start Overall review of Model-References, Hugging Face and DeepSpeed
  • Mixed Precision Show how to use Autocast
  • Training a Classifier Basic PyTorch Tutorial
  • Quickstart_tutorial, Basic PyTorch Tutorial
  • Introduction to Lightning Running simple PyTorch Lightning model, using Gaudi plug-in

gaudi-tutorials's People

Contributors

greg-serochi avatar chen-levkovich avatar sjagtap1803 avatar zzhang37 avatar borda avatar jerome-habana 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.