mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-10-19 11:55:24 +00:00
* chore(neuron): update to optimum-neuron 0.3.0 Dependencies were changed accordingly, because Neuron SDK was updated to v2.24. * test: sample is not deterministic Also modify the temperature in decode test to avoid granite early stopping. * test(neuron): adjust expectations after graph changes * test(neuron): use greedy for stop sequences --------- Co-authored-by: David Corvoysier <david@huggingface.co> |
||
---|---|---|
.. | ||
server | ||
tests | ||
Cargo.toml | ||
Makefile | ||
README.md | ||
tgi_entry_point.py | ||
tgi-entrypoint.sh |
Text-generation-inference - Neuron backend for AWS Trainium and inferentia2
Description
This is the TGI backend for AWS Neuron Trainium and Inferentia family of chips.
This backend is composed of:
- the AWS Neuron SDK,
- the legacy v2 TGI launcher and router,
- a neuron specific inference server for text-generation.
Usage
Please refer to the official documentation.
Build your own image
The simplest way to build TGI with the neuron backend is to use the provided Makefile
:
$ make -C backends/neuron image
Alternatively, you can build the image directly from the top directory using a command similar to the one defined
in the Makefile
under the image
target.