mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-04 12:07:34 +00:00
Add distribution CLI scaffolding
This commit is contained in:
parent
09cf3fe78b
commit
5a583cf16e
13 changed files with 277 additions and 3 deletions
24
llama_toolchain/distribution/registry.py
Normal file
24
llama_toolchain/distribution/registry.py
Normal file
|
@ -0,0 +1,24 @@
|
|||
# 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 typing import List
|
||||
|
||||
from .datatypes import LlamaStackDistribution
|
||||
|
||||
|
||||
def all_registered_distributions() -> List[LlamaStackDistribution]:
|
||||
return [
|
||||
LlamaStackDistribution(
|
||||
name="local-source",
|
||||
description="Use code within `llama_toolchain` itself to run model inference and everything on top",
|
||||
pip_packages=[],
|
||||
),
|
||||
LlamaStackDistribution(
|
||||
name="local-ollama",
|
||||
description="Like local-source, but use ollama for running LLM inference",
|
||||
pip_packages=[],
|
||||
),
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue