llama-stack-mirror/llama_stack
Dmitry Rogozhkin 7ea14ae62e
feat: enable xpu support for meta-reference stack (#558)
This commit adds support for XPU and CPU devices into meta-reference
stack for text models. On creation stack automatically identifies which
device to use checking available accelerate capabilities in the
following order: CUDA, then XPU, finally CPU. This behaviour can be
overwritten with the `DEVICE` environment variable. In this case
explicitly specified device will be used.

Tested with:
```
torchrun pytest llama_stack/providers/tests/inference/test_text_inference.py -k meta_reference
```

Results:
* Tested on: system with single CUDA device, system with single XPU
device and on pure CPU system
* Results: all test pass except `test_completion_logprobs`
* `test_completion_logprobs` fails in the same way as on a baseline,
i.e. unrelated with this change: `AssertionError: Unexpected top_k=3`

Requires: https://github.com/meta-llama/llama-models/pull/233

Signed-off-by: Dmitry Rogozhkin <dmitry.v.rogozhkin@intel.com>
2025-01-31 12:11:49 -08:00
..
apis fix ImageContentItem to take base64 string as image.data (#909) 2025-01-30 15:58:23 -08:00
cli Fix running stack built with base conda environment (#903) 2025-01-29 21:24:22 -08:00
distribution Update OpenAPI generator to add param and field documentation (#896) 2025-01-29 10:04:30 -08:00
providers feat: enable xpu support for meta-reference stack (#558) 2025-01-31 12:11:49 -08:00
scripts [memory refactor][3/n] Introduce RAGToolRuntime as a specialized sub-protocol (#832) 2025-01-22 10:04:16 -08:00
templates SambaNova supports Llama 3.3 (#905) 2025-01-30 09:24:46 -08:00
__init__.py export LibraryClient 2024-12-13 12:08:00 -08:00