Intel Extension for PyTorch LLM

Stale
GitHub Python Apache-2.0

Description

Accelerate local LLM inference and finetuning on Intel XPU. Supports LLaMA, Mistral, Qwen, DeepSeek and more. Seamlessly integrates with LangChain, LlamaIndex, and other agent frameworks.

Key Features

  • Intel open-source LLM acceleration library supporting efficient inference on Intel GPU (Arc/Flex/Max), NPU, and CPU
  • Supports 70+ mainstream models including LLaMA, Qwen, DeepSeek, Mistral with low-bit (FP8/FP6/FP4/INT4) quantization
  • Seamless integration with llama.cpp, Ollama, vLLM, LangChain, LlamaIndex, and other mainstream frameworks
  • FlashMoE technology: run DeepSeek V3/R1 671B models with just 1-2 Intel Arc GPUs
  • Provides Ollama and llama.cpp portable zips for zero-installation running on Intel GPUs
  • Supports HuggingFace PEFT/TRL finetuning and complete training ecosystem including Axolotl

Use Cases

πŸ’‘ Deploy large language models locally on Intel GPU hardware for privacy-preserving offline inference
πŸ’‘ Run billion-parameter models on consumer-grade Intel Arc GPUs using low-bit quantization
πŸ’‘ Replace inference backends in existing LangChain/LlamaIndex projects to accelerate performance on Intel hardware
πŸ’‘ Quickly set up local AI assistants via Ollama portable zip without complex environment configuration
πŸ’‘ Enterprises deploy large-scale LLM inference services on Intel GPU clusters for cost optimization

Quick Start

1. Install: pip install ipex-llm (one-click install command recommended)
2. Download Ollama or llama.cpp portable zip
3. Set environment variables to activate Intel GPU acceleration
4. Run models with Ollama: ollama run deepseek-r1
5. Or load models using HuggingFace Transformers in Python
6. Refer to docs for LangChain framework integration

Related Projects