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
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
.
Most examples can be run as follows:
deepspeed --num_gpus [number of GPUs] test-[model].py
Information about DeepSpeed can be found at the deepspeed.ai website.
Additional information on DeepSpeed inference can be found here:
DeepSpeed inference benchmarking can be found in the DeepSpeed repository:
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。