GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - deepspeedai/DeepSpeed-Kernels

BranchesTags
Open more actions menu

Latest commit

 

History

35 Commits
35 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
builder
builder
 
 
dskernels
dskernels
 
 
release
release
 
 
requirements
requirements
 
 
.gitignore
.gitignore
 
 
.gitmodules
.gitmodules
 
 
LICENSE
LICENSE
 
 
MANIFEST.in
MANIFEST.in
 
 
README.md
README.md
 
 
SECURITY.md
SECURITY.md
 
 
build.sh
build.sh
 
 
fetch.sh
fetch.sh
 
 
pyproject.toml
pyproject.toml
 
 
setup.py
setup.py
 
 
version.txt
version.txt
 
 

Repository files navigation

License Apache 2.0 PyPI version

DeepSpeed Kernels

DeepSpeed-Kernels is a backend library that is used to power DeepSpeed-FastGen to achieve accelerated text-generation inference through DeepSpeed-MII. This library is not intended to be an independent user package, but is open-source to benefit the community and show how DeepSpeed is accelerating text-generation.

The resulting binaries that are compiled from this repo and included in the PyPI release are torch and python agnostic, this allows the core backend to be as portable as possible and leaves the task of compiling torch and python bindings to DeepSpeed itself using it's JIT op builder.

Installation

PyPI

If your environment supports it you can quickly install DeepSpeed-Kernels from PyPI (see below). We've tested the portability of the PyPI release on A100, A6000, and H100.

The release on PyPI should work with the following assumptions about your environment:

  • NVIDIA GPU(s) with compute capability of: 8.0, 8.6, 8.9, 9.0
  • CUDA 11.6+
  • Ubuntu 20+
pip install deepspeed-kernels

Source

If the PyPI release does not work for you we recommend installing from source which can take several minutes:

pip install -v .

Advanced

You can create a pre-compiled portable wheel that supports different CUDA architectures via the CUDA_ARCH_LIST environment variable. By default the kernels will be compiled using the native compute capability. If you want to compile for more than one you can set the CUDA_ARCH_LIST environment variable. We currently only support Ampere and above architectures (i.e., 8.0+). See example below to build for GPUs like A100 and A6000:

CUDA_ARCH_LIST="80;86;89;90" python -m build --wheel

About

No description, website, or topics provided.

Resources

Readme
Apache-2.0 license

Security policy

Security policy
Activity
Custom properties

Stars

75 stars

Watchers

19 watching

Forks

18 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.