Skip to main content
ToolPotion

BigDL LLM

BigDL-LLM is an open-source library for running large language models (LLMs) on Intel XPU hardware, from laptops to cloud GPUs. It supports INT4/FP4/INT8/FP8 quantization for low latency inference and offers comprehensive finetuning capabilities for PyTorch models.

Description

The BigDL Project, specifically its BigDL-LLM component (now transitioning to IPEX-LLM), is a powerful library designed to optimize the performance of large language models (LLMs) across a range of Intel hardware, including CPUs and GPUs. It enables users to run LLMs with significantly reduced latency by leveraging advanced quantization techniques such as INT4, FP4, INT8, and FP8. This optimization is crucial for deploying complex AI models efficiently on diverse hardware configurations.

Built upon the foundational work of libraries like llama.cpp, gptq, bitsandbytes, and qlora, BigDL-LLM provides a robust framework for both inference and finetuning of PyTorch-based LLMs. Recent updates highlight expanded capabilities, including direct model loading from ModelScope, initial INT2 support for running large models on GPUs with limited VRAM, and integration with Text-Generation-WebUI for a graphical user experience. The library also introduces Self-Speculative Decoding, which offers a practical speedup for inference latency on Intel GPUs and CPUs.

For developers and researchers focused on model customization, BigDL-LLM offers comprehensive support for various finetuning methods on Intel GPUs, including LoRA, QLoRA, DPO, QA-LoRA, and ReLoRA. This allows for efficient adaptation of pre-trained models to specific tasks and datasets. The project has demonstrated impressive finetuning speeds, such as training LLaMA2-7B in under 30 minutes on multiple Intel GPUs. Furthermore, it supports direct loading of popular model formats like GGUF, AWQ, and GPTQ, and integrates with vLLM for continuous batching and FastChat for serving.

The BigDL ecosystem extends beyond LLMs, encompassing libraries for distributed data analytics and AI (Orca), transparent acceleration of TensorFlow and PyTorch (Nano), deep learning on Spark (DLlib), time series analysis (Chronos), recommendation systems (Friesian), and secure AI (PPML). BigDL-LLM is a key component for those looking to leverage the power of LLMs on Intel hardware, offering a flexible and performant solution for a wide array of AI applications.

BigDL LLM's Core Features

  • Optimized LLM inference on Intel XPU (CPU, GPU)

  • Supports INT4, FP4, INT8, FP8 quantization

  • Low latency inference for PyTorch models

  • Built on llama.cpp, gptq, bitsandbytes, qlora

  • Direct loading of GGUF, AWQ, GPTQ models

  • Comprehensive LLM finetuning on Intel GPU (LoRA, QLoRA, DPO, QA-LoRA, ReLoRA)

  • Self-Speculative Decoding for ~30% speedup

  • Supports vLLM continuous batching

  • FastChat serving on Intel CPU and GPU

  • Direct loading from ModelScope

  • Initial INT2 support for large LLMs on 16GB VRAM GPUs

  • Integration with Text-Generation-WebUI

Getting Started with BigDL LLM

  1. Install BigDL-LLM via pip: `pip install --pre --upgrade bigdl-llm[all]` for CPU or `bigdl-llm[xpu]` for GPU.

  2. Load Hugging Face Transformers models with INT4 optimizations using `AutoModelForCausalLM.from_pretrained`.

  3. Run optimized models on Intel CPU by specifying the model path.

  4. Run optimized models on Intel GPU by moving the model and input tensors to the 'xpu' device.

  5. Configure finetuning parameters for LoRA, QLoRA, DPO, QA-LoRA, or ReLoRA.

  6. Utilize FastChat or vLLM for serving optimized LLMs.

  7. Integrate with LangChain for LLM application development.

BigDL LLM's Use Cases

  • Low-latency LLM Inference
  • LLM Finetuning
  • Efficient Model Deployment
  • AI Application Development
  • Large Model Training on Limited VRAM
  • Accelerated Text Generation

FAQ from BigDL LLM

BigDL LLM Reviews

Loading...

Popular AI Tools Like BigDL LLM

LiteRT is Google's high-performance on-device machine learning framework for deploying GenAI and ML models on edge platforms. It offers efficient conversion, runtime, and…

MLOps & Model Deployment

Intel® Neural Compressor is an open-source Python library offering popular model compression techniques for PyTorch, TensorFlow, and JAX. It supports advanced quantization for…

Machine Learning Platforms

AI Apps

vLLM is a high-throughput and memory-efficient inference and serving engine for Large Language Models (LLMs). It enables faster deployment of AI models with state-of-the-art…

MLOps & Model Deployment

AI Frameworks

OpenVINO is an open-source toolkit for deploying high-performance AI solutions across diverse hardware. It enables developers to convert, optimize, and run inference for both…

MLOps & Model Deployment

AI Platforms

An AI infrastructure platform for developers to deploy, fine-tune, and run 200+ optimized LLMs and multimodal models through one OpenAI-compatible API with pay-as-you-go pricing.

FeaturedMLOps & Model Deployment

vllm-project/vllm is a high-throughput and memory-efficient inference and serving engine designed for large language models (LLMs). It optimizes performance while minimizing…

FeaturedMLOps & Model Deployment

Bento is an inference platform designed for speed and control, enabling you to deploy any AI model anywhere. It offers tailored optimization, efficient scaling, and streamlined…

FeaturedMLOps & Model Deployment

AI Frameworks

ONNX Runtime is a cross-platform accelerated machine learning framework that optimizes training and inferencing. It supports various programming languages and platforms, making it…

FeaturedMachine Learning Platforms