mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-23 02:52:25 +00:00
add warning
This commit is contained in:
parent
d76b3aa4d2
commit
4754f6dd95
3 changed files with 7 additions and 2 deletions
2
.github/workflows/integration-tests.yml
vendored
2
.github/workflows/integration-tests.yml
vendored
|
|
@ -99,7 +99,7 @@ jobs:
|
||||||
uv run pytest -s -v tests/integration/${{ matrix.test-type }} --stack-config=${stack_config} \
|
uv run pytest -s -v tests/integration/${{ matrix.test-type }} --stack-config=${stack_config} \
|
||||||
-k "not(builtin_tool or safety_with_image or code_interpreter or test_rag)" \
|
-k "not(builtin_tool or safety_with_image or code_interpreter or test_rag)" \
|
||||||
--text-model="ollama/llama3.2:3b-instruct-fp16" \
|
--text-model="ollama/llama3.2:3b-instruct-fp16" \
|
||||||
--embedding-model=all-MiniLM-L6-v2 \
|
--embedding-model=sentence-transformers/all-MiniLM-L6-v2 \
|
||||||
--safety-shield=$SAFETY_MODEL \
|
--safety-shield=$SAFETY_MODEL \
|
||||||
--color=yes \
|
--color=yes \
|
||||||
--capture=tee-sys | tee pytest-${{ matrix.test-type }}.log
|
--capture=tee-sys | tee pytest-${{ matrix.test-type }}.log
|
||||||
|
|
|
||||||
|
|
@ -114,7 +114,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
uv run pytest -sv --stack-config="inference=inline::sentence-transformers,vector_io=${{ matrix.vector-io-provider }}" \
|
uv run pytest -sv --stack-config="inference=inline::sentence-transformers,vector_io=${{ matrix.vector-io-provider }}" \
|
||||||
tests/integration/vector_io \
|
tests/integration/vector_io \
|
||||||
--embedding-model all-MiniLM-L6-v2
|
--embedding-model sentence-transformers/all-MiniLM-L6-v2
|
||||||
|
|
||||||
- name: Check Storage and Memory Available After Tests
|
- name: Check Storage and Memory Available After Tests
|
||||||
if: ${{ always() }}
|
if: ${{ always() }}
|
||||||
|
|
|
||||||
|
|
@ -245,6 +245,11 @@ async def lookup_model(routing_table: CommonRoutingTableImpl, model_id: str) ->
|
||||||
if model is not None:
|
if model is not None:
|
||||||
return model
|
return model
|
||||||
|
|
||||||
|
logger.warning(
|
||||||
|
f"WARNING: model identifier '{model_id}' not found in routing table. Falling back to "
|
||||||
|
"searching in all providers. This is only for backwards compatibility and will stop working "
|
||||||
|
"soon. Migrate your calls to use fully scoped `provider_id/model_id` names."
|
||||||
|
)
|
||||||
# if not found, this means model_id is an unscoped provider_model_id, we need
|
# if not found, this means model_id is an unscoped provider_model_id, we need
|
||||||
# to iterate (given a lack of an efficient index on the KVStore)
|
# to iterate (given a lack of an efficient index on the KVStore)
|
||||||
models = await routing_table.get_all_with_type("model")
|
models = await routing_table.get_all_with_type("model")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue