mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-04 20:14:13 +00:00
Adapter -> Provider
This commit is contained in:
parent
db3e6dda07
commit
65a9e40174
15 changed files with 119 additions and 110 deletions
|
@ -1,33 +0,0 @@
|
|||
# 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 llama_toolchain.distribution.datatypes import Adapter, Api, SourceAdapter
|
||||
|
||||
|
||||
def available_inference_adapters() -> List[Adapter]:
|
||||
return [
|
||||
SourceAdapter(
|
||||
api=Api.inference,
|
||||
adapter_id="meta-reference",
|
||||
pip_packages=[
|
||||
"torch",
|
||||
"zmq",
|
||||
],
|
||||
module="llama_toolchain.inference.inference",
|
||||
config_class="llama_toolchain.inference.inference.MetaReferenceImplConfig",
|
||||
),
|
||||
SourceAdapter(
|
||||
api=Api.inference,
|
||||
adapter_id="meta-ollama",
|
||||
pip_packages=[
|
||||
"ollama",
|
||||
],
|
||||
module="llama_toolchain.inference.ollama",
|
||||
config_class="llama_toolchain.inference.ollama.OllamaImplConfig",
|
||||
),
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue