Giter Site home page Giter Site logo

gtkramer / intel-extension-for-pytorch Goto Github PK

View Code? Open in Web Editor NEW

This project forked from intel/intel-extension-for-pytorch

0.0 0.0 0.0 56.52 MB

A Python package for extending the official PyTorch that can easily obtain performance on Intel platform

License: Apache License 2.0

Shell 0.52% C++ 44.46% Python 50.01% C 3.64% CMake 1.36%

intel-extension-for-pytorch's Introduction

Intel® Extension for PyTorch*

CPU 💻main branch   |   🌱Quick Start   |   📖Documentations   |   🏃Installation   |   💻LLM Example
GPU 💻main branch   |   🌱Quick Start   |   📖Documentations   |   🏃Installation   |   💻LLM Example

Intel® Extension for PyTorch* extends PyTorch* with up-to-date features optimizations for an extra performance boost on Intel hardware. Optimizations take advantage of Intel® Advanced Vector Extensions 512 (Intel® AVX-512) Vector Neural Network Instructions (VNNI) and Intel® Advanced Matrix Extensions (Intel® AMX) on Intel CPUs as well as Intel Xe Matrix Extensions (XMX) AI engines on Intel discrete GPUs. Moreover, Intel® Extension for PyTorch* provides easy GPU acceleration for Intel discrete GPUs through the PyTorch* xpu device.

ipex.llm - Large Language Models (LLMs) Optimization

In the current technological landscape, Generative AI (GenAI) workloads and models have gained widespread attention and popularity. Large Language Models (LLMs) have emerged as the dominant models driving these GenAI applications. Starting from 2.1.0, specific optimizations for certain LLM models are introduced in the Intel® Extension for PyTorch*. Check LLM optimizations for details.

Optimized Model List

MODEL FAMILY Verified (Huggingface hub) FP32/BF16 Weight only quantzation INT8 Weight only quantization INT4 Static quantization INT8
LLAMA "meta-llama/Llama-2-7b-hf", "meta-llama/Llama-2-13b-hf", "meta-llama/Llama-2-70b-hf"
GPT-J "EleutherAI/gpt-j-6b"
GPT-NEOX "EleutherAI/gpt-neox-20b", "databricks/dolly-v2-12b"
FALCON "tiiuae/falcon-40b"
OPT "facebook/opt-30b", "facebook/opt-1.3b"
Bloom "bigscience/bloom", "bigscience/bloom-1b7"
CodeGen "Salesforce/codegen-2B-multi"
Baichuan "baichuan-inc/Baichuan2-13B-Chat", "baichuan-inc/Baichuan2-7B-Chat", "baichuan-inc/Baichuan-13B-Chat"
ChatGLM "THUDM/chatglm3-6b", "THUDM/chatglm2-6b"
GPTBigCode "bigcode/starcoder"
T5 "google/flan-t5-xl"
Mistral "mistralai/Mistral-7B-v0.1"
MPT "mosaicml/mpt-7b"

Note: The above verified models (including other models in the same model family, like "codellama/CodeLlama-7b-hf" from LLAMA family) are well supported with all optimizations like indirect access KV cache, fused ROPE, and prepacked TPP Linear (fp32/bf16). For other LLM model families, we are working in progress to cover those optimizations, which will expand the model list above.

Support

The team tracks bugs and enhancement requests using GitHub issues. Before submitting a suggestion or bug report, search the existing GitHub issues to see if your issue has already been reported.

License

Apache License, Version 2.0. As found in LICENSE file.

Security

See Intel's Security Center for information on how to report a potential security issue or vulnerability.

See also: Security Policy

intel-extension-for-pytorch's People

Contributors

chunyuan-w avatar eikanwang avatar xiaobingsuper avatar jingxu10 avatar jiayisunx avatar xuhancn avatar zhuhaozhe avatar leslie-fang-intel avatar blzheng avatar jianan-gu avatar xia-weiwen avatar liangan1 avatar caoe avatar pinzhenx avatar sanchitintel avatar wei-lin-intel avatar yanbing-j avatar valentine233 avatar min-jean-cho avatar weizhuozhang-intel avatar tangleintel avatar zhujewel avatar chunyuanw avatar zejun-chen avatar zailiwang avatar violetch24 avatar juliusshufan avatar jianpingchen066 avatar zhaoqiongz avatar wenzhe-nrv 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.