mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-01 16:24:44 +00:00
change function name
This commit is contained in:
parent
8bd0a33206
commit
d04c9d9e4e
2 changed files with 9 additions and 9 deletions
|
@ -16,7 +16,7 @@ from ollama import AsyncClient
|
||||||
|
|
||||||
from llama_stack.providers.utils.inference.model_registry import (
|
from llama_stack.providers.utils.inference.model_registry import (
|
||||||
build_model_alias,
|
build_model_alias,
|
||||||
build_model_alias_with_just_llama_model,
|
build_model_alias_with_just_provider_model_id,
|
||||||
ModelRegistryHelper,
|
ModelRegistryHelper,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -45,7 +45,7 @@ model_aliases = [
|
||||||
"llama3.1:8b-instruct-fp16",
|
"llama3.1:8b-instruct-fp16",
|
||||||
CoreModelId.llama3_1_8b_instruct.value,
|
CoreModelId.llama3_1_8b_instruct.value,
|
||||||
),
|
),
|
||||||
build_model_alias_with_just_llama_model(
|
build_model_alias_with_just_provider_model_id(
|
||||||
"llama3.1:8b",
|
"llama3.1:8b",
|
||||||
CoreModelId.llama3_1_8b_instruct.value,
|
CoreModelId.llama3_1_8b_instruct.value,
|
||||||
),
|
),
|
||||||
|
@ -53,7 +53,7 @@ model_aliases = [
|
||||||
"llama3.1:70b-instruct-fp16",
|
"llama3.1:70b-instruct-fp16",
|
||||||
CoreModelId.llama3_1_70b_instruct.value,
|
CoreModelId.llama3_1_70b_instruct.value,
|
||||||
),
|
),
|
||||||
build_model_alias_with_just_llama_model(
|
build_model_alias_with_just_provider_model_id(
|
||||||
"llama3.1:70b",
|
"llama3.1:70b",
|
||||||
CoreModelId.llama3_1_70b_instruct.value,
|
CoreModelId.llama3_1_70b_instruct.value,
|
||||||
),
|
),
|
||||||
|
@ -65,19 +65,19 @@ model_aliases = [
|
||||||
"llama3.2:3b-instruct-fp16",
|
"llama3.2:3b-instruct-fp16",
|
||||||
CoreModelId.llama3_2_3b_instruct.value,
|
CoreModelId.llama3_2_3b_instruct.value,
|
||||||
),
|
),
|
||||||
build_model_alias_with_just_llama_model(
|
build_model_alias_with_just_provider_model_id(
|
||||||
"llama3.2:1b",
|
"llama3.2:1b",
|
||||||
CoreModelId.llama3_2_1b_instruct.value,
|
CoreModelId.llama3_2_1b_instruct.value,
|
||||||
),
|
),
|
||||||
build_model_alias_with_just_llama_model(
|
build_model_alias_with_just_provider_model_id(
|
||||||
"llama3.2:3b",
|
"llama3.2:3b",
|
||||||
CoreModelId.llama3_2_3b_instruct.value,
|
CoreModelId.llama3_2_3b_instruct.value,
|
||||||
),
|
),
|
||||||
build_model_alias_with_just_llama_model(
|
build_model_alias_with_just_provider_model_id(
|
||||||
"llama-guard3:8b",
|
"llama-guard3:8b",
|
||||||
CoreModelId.llama_guard_3_8b.value,
|
CoreModelId.llama_guard_3_8b.value,
|
||||||
),
|
),
|
||||||
build_model_alias_with_just_llama_model(
|
build_model_alias_with_just_provider_model_id(
|
||||||
"llama-guard3:1b",
|
"llama-guard3:1b",
|
||||||
CoreModelId.llama_guard_3_1b.value,
|
CoreModelId.llama_guard_3_1b.value,
|
||||||
),
|
),
|
||||||
|
@ -85,7 +85,7 @@ model_aliases = [
|
||||||
"x/llama3.2-vision:11b-instruct-fp16",
|
"x/llama3.2-vision:11b-instruct-fp16",
|
||||||
CoreModelId.llama3_2_11b_vision_instruct.value,
|
CoreModelId.llama3_2_11b_vision_instruct.value,
|
||||||
),
|
),
|
||||||
build_model_alias_with_just_llama_model(
|
build_model_alias_with_just_provider_model_id(
|
||||||
"llama3.2-vision",
|
"llama3.2-vision",
|
||||||
CoreModelId.llama3_2_11b_vision_instruct.value,
|
CoreModelId.llama3_2_11b_vision_instruct.value,
|
||||||
),
|
),
|
||||||
|
|
|
@ -36,7 +36,7 @@ def build_model_alias(provider_model_id: str, model_descriptor: str) -> ModelAli
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
def build_model_alias_with_just_llama_model(
|
def build_model_alias_with_just_provider_model_id(
|
||||||
provider_model_id: str, model_descriptor: str
|
provider_model_id: str, model_descriptor: str
|
||||||
) -> ModelAlias:
|
) -> ModelAlias:
|
||||||
return ModelAlias(
|
return ModelAlias(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue