llama-stack-mirror/llama_stack
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
..
apis fix: some telemetry APIs don't currently work (#1188) 2025-02-20 14:09:25 -08:00
cli feat: add a option to list the downloaded models (#1127) 2025-02-19 22:17:39 -08:00
distribution fix: some telemetry APIs don't currently work (#1188) 2025-02-20 14:09:25 -08:00
models/llama chore: move all Llama Stack types from llama-models to llama-stack (#1098) 2025-02-14 09:10:59 -08:00
providers feat: register embedding models for ollama, together, fireworks (#1190) 2025-02-20 15:39:08 -08:00
scripts precommit again 2025-02-19 22:40:45 -08:00
strong_typing Ensure that deprecations for fields follow through to OpenAPI 2025-02-19 13:54:04 -08:00
templates feat: register embedding models for ollama, together, fireworks (#1190) 2025-02-20 15:39:08 -08:00
__init__.py export LibraryClient 2024-12-13 12:08:00 -08:00
schema_utils.py feat: adding endpoints for files and uploads (#1070) 2025-02-20 13:09:00 -08:00