llama-stack-mirror/docs/source/distributions/self_hosted_distro
Ashwin Bharambe 9436dd570d
feat: register embedding models for ollama, together, fireworks (#1190)
# What does this PR do?

We have support for embeddings in our Inference providers, but so far we
haven't done the final step of actually registering the known embedding
models and making sure they are extremely easy to use. This is one step
towards that.

## Test Plan

Run existing inference tests.

```bash

$ cd llama_stack/providers/tests/inference
$ pytest -s -v -k fireworks test_embeddings.py \
   --inference-model nomic-ai/nomic-embed-text-v1.5 --env EMBEDDING_DIMENSION=784
$  pytest -s -v -k together test_embeddings.py \
   --inference-model togethercomputer/m2-bert-80M-8k-retrieval --env EMBEDDING_DIMENSION=784
$ pytest -s -v -k ollama test_embeddings.py \
   --inference-model all-minilm:latest --env EMBEDDING_DIMENSION=784
```

The value of the EMBEDDING_DIMENSION isn't actually used in these tests,
it is merely used by the test fixtures to check if the model is an LLM
or Embedding.
2025-02-20 15:39:08 -08:00
..
bedrock.md fix: Get distro_codegen.py working with default deps and enabled in pre-commit hooks (#1123) 2025-02-19 18:39:20 -08:00
cerebras.md feat: Add a new template for dell (#978) 2025-02-06 14:14:39 -08:00
dell-tgi.md Update default port from 5000 -> 8321 2025-01-16 15:26:48 -08:00
dell.md fix: Readthedocs cannot parse comments, resulting in docs bugs (#1033) 2025-02-10 16:35:16 -05:00
fireworks.md feat: register embedding models for ollama, together, fireworks (#1190) 2025-02-20 15:39:08 -08:00
meta-reference-gpu.md fix: Readthedocs cannot parse comments, resulting in docs bugs (#1033) 2025-02-10 16:35:16 -05:00
meta-reference-quantized-gpu.md fix: Readthedocs cannot parse comments, resulting in docs bugs (#1033) 2025-02-10 16:35:16 -05:00
nvidia.md add nvidia distribution (#565) 2025-01-15 14:04:43 -08:00
ollama.md ModelAlias -> ProviderModelEntry 2025-02-20 14:02:36 -08:00
remote-vllm.md fix: Readthedocs cannot parse comments, resulting in docs bugs (#1033) 2025-02-10 16:35:16 -05:00
sambanova.md fix: Readthedocs cannot parse comments, resulting in docs bugs (#1033) 2025-02-10 16:35:16 -05:00
tgi.md fix: Readthedocs cannot parse comments, resulting in docs bugs (#1033) 2025-02-10 16:35:16 -05:00
together.md feat: register embedding models for ollama, together, fireworks (#1190) 2025-02-20 15:39:08 -08:00