llama-stack-mirror/llama_stack/providers/inline/post_training/huggingface/models.py
Charlie Doern 71caa271ad feat: associated models API with post_training
there are likely scenarios where admins of a stack only want to allow clients to fine-tune certain models, register certain models to be fine-tuned. etc
introduce the post_training router and post_training_models as the associated type. A different model type needs to be used for inference vs post_training due to the structure of the router currently.

Signed-off-by: Charlie Doern <cdoern@redhat.com>
2025-05-30 13:32:11 -04:00

23 lines
742 B
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.apis.models.models import ModelType
from llama_stack.providers.utils.inference.model_registry import (
ProviderModelEntry,
)
model_entries = [
ProviderModelEntry(
provider_model_id="ibm-granite/granite-3.3-8b-instruct",
aliases=["ibm-granite/granite-3.3-8b-instruct"],
model_type=ModelType.llm,
),
ProviderModelEntry(
provider_model_id="ibm-granite/granite-3.3-8b-instruct",
aliases=["ibm-granite/granite-3.3-8b-instruct"],
model_type=ModelType.llm,
),
]