change function name

This commit is contained in:
Dinesh Yeduguru 2024-11-18 23:43:47 -08:00
parent 8bd0a33206
commit d04c9d9e4e
2 changed files with 9 additions and 9 deletions

View file

@ -16,7 +16,7 @@ from ollama import AsyncClient
from llama_stack.providers.utils.inference.model_registry import (
build_model_alias,
build_model_alias_with_just_llama_model,
build_model_alias_with_just_provider_model_id,
ModelRegistryHelper,
)
@ -45,7 +45,7 @@ model_aliases = [
"llama3.1:8b-instruct-fp16",
CoreModelId.llama3_1_8b_instruct.value,
),
build_model_alias_with_just_llama_model(
build_model_alias_with_just_provider_model_id(
"llama3.1:8b",
CoreModelId.llama3_1_8b_instruct.value,
),
@ -53,7 +53,7 @@ model_aliases = [
"llama3.1:70b-instruct-fp16",
CoreModelId.llama3_1_70b_instruct.value,
),
build_model_alias_with_just_llama_model(
build_model_alias_with_just_provider_model_id(
"llama3.1:70b",
CoreModelId.llama3_1_70b_instruct.value,
),
@ -65,19 +65,19 @@ model_aliases = [
"llama3.2:3b-instruct-fp16",
CoreModelId.llama3_2_3b_instruct.value,
),
build_model_alias_with_just_llama_model(
build_model_alias_with_just_provider_model_id(
"llama3.2:1b",
CoreModelId.llama3_2_1b_instruct.value,
),
build_model_alias_with_just_llama_model(
build_model_alias_with_just_provider_model_id(
"llama3.2:3b",
CoreModelId.llama3_2_3b_instruct.value,
),
build_model_alias_with_just_llama_model(
build_model_alias_with_just_provider_model_id(
"llama-guard3:8b",
CoreModelId.llama_guard_3_8b.value,
),
build_model_alias_with_just_llama_model(
build_model_alias_with_just_provider_model_id(
"llama-guard3:1b",
CoreModelId.llama_guard_3_1b.value,
),
@ -85,7 +85,7 @@ model_aliases = [
"x/llama3.2-vision:11b-instruct-fp16",
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",
CoreModelId.llama3_2_11b_vision_instruct.value,
),

View file

@ -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
) -> ModelAlias:
return ModelAlias(