1 Star 0 Fork 0

jiangyunxing/DeepSpeedExamples

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

DeepSpeed Huggingface Inference Examples

Contents

Setup

The Python dependencies for each example are captured in requirements.txt in the corresponding ML task directory (e.g. ./text-generation).

Python dependencies can be installed using:

pip install -r requirements.txt

For the ./automatic-speech-recognition/test-wav2vec.py speech model example, you may also need to install the libsndfile1-dev generic library:

sudo apt-get install libsndfile1-dev

Usage

The DeepSpeed huggingface inference examples are organized into their corresponding ML task directories (e.g. ./text-generation). Each ML task directory contains a README.md and a requirements.txt.

Task README requirements
automatic-speech-recognition README requirements
fill-mask README requirements
text-generation README requirements
text-generation/run-generation-script README requirements
text2text-generation README requirements
translation README requirements
stable-diffusion README requirements

Most examples can be run as follows:

deepspeed --num_gpus [number of GPUs] test-[model].py

Additional Resources

Information about DeepSpeed can be found at the deepspeed.ai website.

DeepSpeed Inference

Additional information on DeepSpeed inference can be found here:

Benchmarking

DeepSpeed inference benchmarking can be found in the DeepSpeed repository:

马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/jiangkaiwen/DeepSpeedExamples.git
git@gitee.com:jiangkaiwen/DeepSpeedExamples.git
jiangkaiwen
DeepSpeedExamples
DeepSpeedExamples
master

搜索帮助