mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-30 02:09:32 +00:00
LM Studio inference integration
Co-authored-by: Rugved Somwanshi <rugved@lmstudio.ai>
This commit is contained in:
parent
1bb1d9b2ba
commit
461eec425d
16 changed files with 1096 additions and 0 deletions
74
llama_stack/providers/remote/inference/lmstudio/models.py
Normal file
74
llama_stack/providers/remote/inference/lmstudio/models.py
Normal file
|
|
@ -0,0 +1,74 @@
|
|||
# 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.models.llama.datatypes import CoreModelId
|
||||
from llama_stack.providers.utils.inference.model_registry import (
|
||||
ProviderModelEntry,
|
||||
)
|
||||
|
||||
MODEL_ENTRIES = [
|
||||
ProviderModelEntry(
|
||||
provider_model_id="meta-llama-3-8b-instruct",
|
||||
aliases=[],
|
||||
llama_model=CoreModelId.llama3_8b_instruct.value,
|
||||
model_type=ModelType.llm,
|
||||
),
|
||||
ProviderModelEntry(
|
||||
provider_model_id="meta-llama-3-70b-instruct",
|
||||
aliases=[],
|
||||
llama_model=CoreModelId.llama3_70b_instruct.value,
|
||||
model_type=ModelType.llm,
|
||||
),
|
||||
ProviderModelEntry(
|
||||
provider_model_id="meta-llama-3.1-8b-instruct",
|
||||
aliases=[],
|
||||
llama_model=CoreModelId.llama3_1_8b_instruct.value,
|
||||
model_type=ModelType.llm,
|
||||
),
|
||||
ProviderModelEntry(
|
||||
provider_model_id="meta-llama-3.1-70b-instruct",
|
||||
aliases=[],
|
||||
llama_model=CoreModelId.llama3_1_70b_instruct.value,
|
||||
model_type=ModelType.llm,
|
||||
),
|
||||
ProviderModelEntry(
|
||||
provider_model_id="llama-3.2-1b-instruct",
|
||||
aliases=[],
|
||||
llama_model=CoreModelId.llama3_2_1b_instruct.value,
|
||||
model_type=ModelType.llm,
|
||||
),
|
||||
ProviderModelEntry(
|
||||
provider_model_id="llama-3.2-3b-instruct",
|
||||
aliases=[],
|
||||
llama_model=CoreModelId.llama3_2_3b_instruct.value,
|
||||
model_type=ModelType.llm,
|
||||
),
|
||||
ProviderModelEntry(
|
||||
provider_model_id="llama-3.3-70b-instruct",
|
||||
aliases=[],
|
||||
llama_model=CoreModelId.llama3_3_70b_instruct.value,
|
||||
model_type=ModelType.llm,
|
||||
),
|
||||
# embedding model
|
||||
ProviderModelEntry(
|
||||
provider_model_id="nomic-embed-text-v1.5",
|
||||
model_type=ModelType.embedding,
|
||||
metadata={
|
||||
"embedding_dimension": 768,
|
||||
"context_length": 2048,
|
||||
},
|
||||
),
|
||||
ProviderModelEntry(
|
||||
model_id="all-MiniLM-L6-v2",
|
||||
provider_model_id="all-minilm-l6-v2",
|
||||
provider_id="lmstudio",
|
||||
model_type=ModelType.embedding,
|
||||
metadata={
|
||||
"embedding_dimension": 384,
|
||||
},
|
||||
),
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue