-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Wang, Yi A <yi.a.wang@intel.com>
- Loading branch information
Showing
4 changed files
with
23 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Using TGI with Intel GPUs | ||
|
||
TGI optimized models are supported on Intel Data Center GPU [Max1100](https://www.intel.com/content/www/us/en/products/sku/232876/intel-data-center-gpu-max-1100/specifications.html), [Max1550](https://www.intel.com/content/www/us/en/products/sku/232873/intel-data-center-gpu-max-1550/specifications.html), the recommended usage is through Docker. | ||
|
||
|
||
On a server powered by Intel GPUs, TGI can be launched with the following command: | ||
|
||
```bash | ||
model=teknium/OpenHermes-2.5-Mistral-7B | ||
volume=$PWD/data # share a volume with the Docker container to avoid downloading weights every run | ||
|
||
docker run --rm --privileged --cap-add=sys_nice \ | ||
--device=/dev/dri \ | ||
--ipc=host --shm-size 1g --net host -v $volume:/data \ | ||
ghcr.io/huggingface/text-generation-inference:latest-intel \ | ||
--model-id $model --cuda-graphs 0 | ||
``` | ||
|
||
The launched TGI server can then be queried from clients, make sure to check out the [Consuming TGI](./basic_tutorials/consuming_tgi) guide. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters