forked from phoenix-oss/llama-stack-mirror
# What does this PR do? switch sambanova inference adaptor to LiteLLM usage to simplify integration and solve issues with current adaptor when streaming and tool calling, models and templates updated ## Test Plan pytest -s -v tests/integration/inference/test_text_inference.py --stack-config=sambanova --text-model=sambanova/Meta-Llama-3.3-70B-Instruct pytest -s -v tests/integration/inference/test_vision_inference.py --stack-config=sambanova --vision-model=sambanova/Llama-3.2-11B-Vision-Instruct
53 lines
1.7 KiB
Python
53 lines
1.7 KiB
Python
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
# All rights reserved.
|
|
#
|
|
# This source code is licensed under the terms described in the LICENSE file in
|
|
# the root directory of this source tree.
|
|
|
|
from llama_stack.models.llama.sku_types import CoreModelId
|
|
from llama_stack.providers.utils.inference.model_registry import (
|
|
build_hf_repo_model_entry,
|
|
)
|
|
|
|
MODEL_ENTRIES = [
|
|
build_hf_repo_model_entry(
|
|
"sambanova/Meta-Llama-3.1-8B-Instruct",
|
|
CoreModelId.llama3_1_8b_instruct.value,
|
|
),
|
|
build_hf_repo_model_entry(
|
|
"sambanova/Meta-Llama-3.1-405B-Instruct",
|
|
CoreModelId.llama3_1_405b_instruct.value,
|
|
),
|
|
build_hf_repo_model_entry(
|
|
"sambanova/Meta-Llama-3.2-1B-Instruct",
|
|
CoreModelId.llama3_2_1b_instruct.value,
|
|
),
|
|
build_hf_repo_model_entry(
|
|
"sambanova/Meta-Llama-3.2-3B-Instruct",
|
|
CoreModelId.llama3_2_3b_instruct.value,
|
|
),
|
|
build_hf_repo_model_entry(
|
|
"sambanova/Meta-Llama-3.3-70B-Instruct",
|
|
CoreModelId.llama3_3_70b_instruct.value,
|
|
),
|
|
build_hf_repo_model_entry(
|
|
"sambanova/Llama-3.2-11B-Vision-Instruct",
|
|
CoreModelId.llama3_2_11b_vision_instruct.value,
|
|
),
|
|
build_hf_repo_model_entry(
|
|
"sambanova/Llama-3.2-90B-Vision-Instruct",
|
|
CoreModelId.llama3_2_90b_vision_instruct.value,
|
|
),
|
|
build_hf_repo_model_entry(
|
|
"sambanova/Llama-4-Scout-17B-16E-Instruct",
|
|
CoreModelId.llama4_scout_17b_16e_instruct.value,
|
|
),
|
|
build_hf_repo_model_entry(
|
|
"sambanova/Llama-4-Maverick-17B-128E-Instruct",
|
|
CoreModelId.llama4_maverick_17b_128e_instruct.value,
|
|
),
|
|
build_hf_repo_model_entry(
|
|
"sambanova/Meta-Llama-Guard-3-8B",
|
|
CoreModelId.llama_guard_3_8b.value,
|
|
),
|
|
]
|