Elffuss BraidHub

kikocis/llama-stack public

3fc339af16ee · 812 BRawPermalink
1# Copyright (c) Meta Platforms, Inc. and affiliates.
2# All rights reserved.
3#
4# This source code is licensed under the terms described in the LICENSE file in
5# the root directory of this source tree.
6
7from typing import List
8
9from llama_stack.distribution.datatypes import Api, InlineProviderSpec, ProviderSpec
10
11
12def available_providers() -> List[ProviderSpec]:
13 return [
14 InlineProviderSpec(
15 api=Api.safety,
16 provider_id="meta-reference",
17 pip_packages=[
18 "accelerate",
19 "codeshield",
20 "torch",
21 "transformers",
22 ],
23 module="llama_stack.providers.impls.meta_reference.safety",
24 config_class="llama_stack.providers.impls.meta_reference.safety.SafetyConfig",
25 ),
26 ]