Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update XPU serving doc #579

Merged
merged 1 commit into from
Jan 3, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions pytorch/serving/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,19 @@ docker run -d --rm --name server \

```bash
# Assuming that the above pre-archived model is in the current working directory
## Find the video and render groups to add to the run command

VIDEO=$(getent group video | sed -E 's,^video:[^:]*:([^:]*):.*$,\1,')
RENDER=$(getent group render | sed -E 's,^render:[^:]*:([^:]*):.*$,\1,')

docker run -d --rm --name server \
-v $PWD:/home/model-server/model-store \
-v $PWD/wf-store:/home/model-server/wf-store \
-v $PWD/config-xpu.properties:/home/model-server/config.properties \
--net=host \
--device /dev/dri \
--group-add ${VIDEO} \
--group-add ${RENDER} \
intel/intel-optimized-pytorch:2.5.10-serving-xpu
```

Expand Down
Loading