kikocis/llama-stack public
Changesets · Branches · Tags · Compare
| Changeset | fb896ea47ba7ea1ef68bf37f23b257a89f877685bff21a79cda8322c659ba3eb |
|---|---|
| Author | Ashwin Bharambe <ashwin.bharambe@gmail.com> · 2024-09-07 08:42 -07:00 |
| Committer | Ashwin Bharambe <ashwin.bharambe@gmail.com> · 2024-09-07 08:42 -07:00 |
| Parents | fec971db3fc6 |
18 files changed
modified docs/cli_reference.md +2 −2
| @@ -248,8 +248,8 @@ | ||
| 248 | 248 | ``` |
| 249 | 249 | |
| 250 | 250 | <pre style="font-family: monospace;"> |
| 251 | -i+--------------------------------+---------------------------------------+----------------------------------------------------------------------+ | |
| 252 | -| Distribution ID | Providers | Description | | |
| 251 | +i+-------------------------------+---------------------------------------+----------------------------------------------------------------------+ | |
| 252 | +| Distribution Type | Providers | Description | | |
| 253 | 253 | +--------------------------------+---------------------------------------+----------------------------------------------------------------------+ |
| 254 | 254 | | local | { | Use code from `llama_toolchain` itself to serve all llama stack APIs | |
| 255 | 255 | | | "inference": "meta-reference", | | |
modified llama_toolchain/agentic_system/providers.py +1 −1
| @@ -13,7 +13,7 @@ | ||
| 13 | 13 | return [ |
| 14 | 14 | InlineProviderSpec( |
| 15 | 15 | api=Api.agentic_system, |
| 16 | - provider_id="meta-reference", | |
| 16 | + provider_type="meta-reference", | |
| 17 | 17 | pip_packages=[ |
| 18 | 18 | "codeshield", |
| 19 | 19 | "matplotlib", |
modified llama_toolchain/cli/stack/build.py +5 −5
| @@ -52,7 +52,7 @@ | ||
| 52 | 52 | BuildType, |
| 53 | 53 | ) |
| 54 | 54 | |
| 55 | - allowed_ids = [d.distribution_id for d in available_distribution_specs()] | |
| 55 | + allowed_ids = [d.distribution_type for d in available_distribution_specs()] | |
| 56 | 56 | self.parser.add_argument( |
| 57 | 57 | "distribution", |
| 58 | 58 | type=str, |
| @@ -101,7 +101,7 @@ | ||
| 101 | 101 | api_inputs.append( |
| 102 | 102 | ApiInput( |
| 103 | 103 | api=api, |
| 104 | - provider=provider_spec.provider_id, | |
| 104 | + provider=provider_spec.provider_type, | |
| 105 | 105 | ) |
| 106 | 106 | ) |
| 107 | 107 | docker_image = None |
| @@ -115,11 +115,11 @@ | ||
| 115 | 115 | self.parser.error(f"Could not find distribution {args.distribution}") |
| 116 | 116 | return |
| 117 | 117 | |
| 118 | - for api, provider_id in dist.providers.items(): | |
| 118 | + for api, provider_type in dist.providers.items(): | |
| 119 | 119 | api_inputs.append( |
| 120 | 120 | ApiInput( |
| 121 | 121 | api=api, |
| 122 | - provider=provider_id, | |
| 122 | + provider=provider_type, | |
| 123 | 123 | ) |
| 124 | 124 | ) |
| 125 | 125 | docker_image = dist.docker_image |
| @@ -128,6 +128,6 @@ | ||
| 128 | 128 | api_inputs, |
| 129 | 129 | build_type=BuildType(args.type), |
| 130 | 130 | name=args.name, |
| 131 | - distribution_id=args.distribution, | |
| 131 | + distribution_type=args.distribution, | |
| 132 | 132 | docker_image=docker_image, |
| 133 | 133 | ) |
modified llama_toolchain/cli/stack/configure.py +2 −2
| @@ -36,7 +36,7 @@ | ||
| 36 | 36 | ) |
| 37 | 37 | from llama_toolchain.core.package import BuildType |
| 38 | 38 | |
| 39 | - allowed_ids = [d.distribution_id for d in available_distribution_specs()] | |
| 39 | + allowed_ids = [d.distribution_type for d in available_distribution_specs()] | |
| 40 | 40 | self.parser.add_argument( |
| 41 | 41 | "distribution", |
| 42 | 42 | type=str, |
| @@ -84,7 +84,7 @@ | ||
| 84 | 84 | |
| 85 | 85 | if config.providers: |
| 86 | 86 | cprint( |
| 87 | - f"Configuration already exists for {config.distribution_id}. Will overwrite...", | |
| 87 | + f"Configuration already exists for {config.distribution_type}. Will overwrite...", | |
| 88 | 88 | "yellow", |
| 89 | 89 | attrs=["bold"], |
| 90 | 90 | ) |
modified llama_toolchain/cli/stack/list_distributions.py +2 −2
| @@ -33,7 +33,7 @@ | ||
| 33 | 33 | |
| 34 | 34 | # eventually, this should query a registry at llama.meta.com/llamastack/distributions |
| 35 | 35 | headers = [ |
| 36 | - "Distribution ID", | |
| 36 | + "Distribution Type", | |
| 37 | 37 | "Providers", |
| 38 | 38 | "Description", |
| 39 | 39 | ] |
| @@ -43,7 +43,7 @@ | ||
| 43 | 43 | providers = {k.value: v for k, v in spec.providers.items()} |
| 44 | 44 | rows.append( |
| 45 | 45 | [ |
| 46 | - spec.distribution_id, | |
| 46 | + spec.distribution_type, | |
| 47 | 47 | json.dumps(providers, indent=2), |
| 48 | 48 | spec.description, |
| 49 | 49 | ] |
modified llama_toolchain/cli/stack/list_providers.py +2 −2
| @@ -41,7 +41,7 @@ | ||
| 41 | 41 | |
| 42 | 42 | # eventually, this should query a registry at llama.meta.com/llamastack/distributions |
| 43 | 43 | headers = [ |
| 44 | - "Provider ID", | |
| 44 | + "Provider Type", | |
| 45 | 45 | "PIP Package Dependencies", |
| 46 | 46 | ] |
| 47 | 47 | |
| @@ -49,7 +49,7 @@ | ||
| 49 | 49 | for spec in providers_for_api.values(): |
| 50 | 50 | rows.append( |
| 51 | 51 | [ |
| 52 | - spec.provider_id, | |
| 52 | + spec.provider_type, | |
| 53 | 53 | ",".join(spec.pip_packages), |
| 54 | 54 | ] |
| 55 | 55 | ) |
modified llama_toolchain/cli/stack/run.py +1 −1
| @@ -80,7 +80,7 @@ | ||
| 80 | 80 | with open(config_file, "r") as f: |
| 81 | 81 | config = PackageConfig(**yaml.safe_load(f)) |
| 82 | 82 | |
| 83 | - if not config.distribution_id: | |
| 83 | + if not config.distribution_type: | |
| 84 | 84 | raise ValueError("Build config appears to be corrupt.") |
| 85 | 85 | |
| 86 | 86 | if config.docker_image: |
modified llama_toolchain/core/build_conda_env.sh +4 −4
| @@ -20,12 +20,12 @@ | ||
| 20 | 20 | set -euo pipefail |
| 21 | 21 | |
| 22 | 22 | if [ "$#" -ne 3 ]; then |
| 23 | - echo "Usage: $0 <distribution_id> <build_name> <pip_dependencies>" >&2 | |
| 24 | - echo "Example: $0 <distribution_id> mybuild 'numpy pandas scipy'" >&2 | |
| 23 | + echo "Usage: $0 <distribution_type> <build_name> <pip_dependencies>" >&2 | |
| 24 | + echo "Example: $0 <distribution_type> mybuild 'numpy pandas scipy'" >&2 | |
| 25 | 25 | exit 1 |
| 26 | 26 | fi |
| 27 | 27 | |
| 28 | -distribution_id="$1" | |
| 28 | +distribution_type="$1" | |
| 29 | 29 | build_name="$2" |
| 30 | 30 | env_name="llamastack-$build_name" |
| 31 | 31 | pip_dependencies="$3" |
| @@ -117,4 +117,4 @@ | ||
| 117 | 117 | |
| 118 | 118 | printf "${GREEN}Successfully setup conda environment. Configuring build...${NC}\n" |
| 119 | 119 | |
| 120 | -$CONDA_PREFIX/bin/python3 -m llama_toolchain.cli.llama stack configure $distribution_id --name "$build_name" --type conda_env | |
| 120 | +$CONDA_PREFIX/bin/python3 -m llama_toolchain.cli.llama stack configure $distribution_type --name "$build_name" --type conda_env |
modified llama_toolchain/core/build_container.sh +4 −4
| @@ -5,12 +5,12 @@ | ||
| 5 | 5 | TEST_PYPI_VERSION=${TEST_PYPI_VERSION:-} |
| 6 | 6 | |
| 7 | 7 | if [ "$#" -ne 4 ]; then |
| 8 | - echo "Usage: $0 <distribution_id> <build_name> <docker_base> <pip_dependencies> | |
| 9 | - echo "Example: $0 distribution_id my-fastapi-app python:3.9-slim 'fastapi uvicorn' | |
| 8 | + echo "Usage: $0 <distribution_type> <build_name> <docker_base> <pip_dependencies> | |
| 9 | + echo "Example: $0 distribution_type my-fastapi-app python:3.9-slim 'fastapi uvicorn' | |
| 10 | 10 | exit 1 |
| 11 | 11 | fi |
| 12 | 12 | |
| 13 | -distribution_id=$1 | |
| 13 | +distribution_type=$1 | |
| 14 | 14 | build_name="$2" |
| 15 | 15 | image_name="llamastack-$build_name" |
| 16 | 16 | docker_base=$3 |
| @@ -110,4 +110,4 @@ | ||
| 110 | 110 | printf "${GREEN}Succesfully setup Podman image. Configuring build...${NC}" |
| 111 | 111 | echo "You can run it with: podman run -p 8000:8000 $image_name" |
| 112 | 112 | |
| 113 | -$CONDA_PREFIX/bin/python3 -m llama_toolchain.cli.llama stack configure $distribution_id --name "$build_name" --type container | |
| 113 | +$CONDA_PREFIX/bin/python3 -m llama_toolchain.cli.llama stack configure $distribution_type --name "$build_name" --type container |
modified llama_toolchain/core/configure.py +6 −6
| @@ -21,14 +21,14 @@ | ||
| 21 | 21 | for api_str, stub_config in existing_configs.items(): |
| 22 | 22 | api = Api(api_str) |
| 23 | 23 | providers = all_providers[api] |
| 24 | - provider_id = stub_config["provider_id"] | |
| 25 | - if provider_id not in providers: | |
| 24 | + provider_type = stub_config["provider_type"] | |
| 25 | + if provider_type not in providers: | |
| 26 | 26 | raise ValueError( |
| 27 | - f"Unknown provider `{provider_id}` is not available for API `{api_str}`" | |
| 27 | + f"Unknown provider `{provider_type}` is not available for API `{api_str}`" | |
| 28 | 28 | ) |
| 29 | 29 | |
| 30 | - provider_spec = providers[provider_id] | |
| 31 | - cprint(f"Configuring API: {api_str} ({provider_id})", "white", attrs=["bold"]) | |
| 30 | + provider_spec = providers[provider_type] | |
| 31 | + cprint(f"Configuring API: {api_str} ({provider_type})", "white", attrs=["bold"]) | |
| 32 | 32 | config_type = instantiate_class_type(provider_spec.config_class) |
| 33 | 33 | |
| 34 | 34 | try: |
| @@ -43,7 +43,7 @@ | ||
| 43 | 43 | print("") |
| 44 | 44 | |
| 45 | 45 | provider_configs[api_str] = { |
| 46 | - "provider_id": provider_id, | |
| 46 | + "provider_type": provider_type, | |
| 47 | 47 | **provider_config.dict(), |
| 48 | 48 | } |
| 49 | 49 |
modified llama_toolchain/core/datatypes.py +7 −7
| @@ -31,7 +31,7 @@ | ||
| 31 | 31 | @json_schema_type |
| 32 | 32 | class ProviderSpec(BaseModel): |
| 33 | 33 | api: Api |
| 34 | - provider_id: str | |
| 34 | + provider_type: str | |
| 35 | 35 | config_class: str = Field( |
| 36 | 36 | ..., |
| 37 | 37 | description="Fully-qualified classname of the config for this provider", |
| @@ -100,7 +100,7 @@ | ||
| 100 | 100 | return url.rstrip("/") |
| 101 | 101 | |
| 102 | 102 | |
| 103 | -def remote_provider_id(adapter_id: str) -> str: | |
| 103 | +def remote_provider_type(adapter_id: str) -> str: | |
| 104 | 104 | return f"remote::{adapter_id}" |
| 105 | 105 | |
| 106 | 106 | |
| @@ -141,22 +141,22 @@ | ||
| 141 | 141 | if adapter and adapter.config_class |
| 142 | 142 | else "llama_toolchain.core.datatypes.RemoteProviderConfig" |
| 143 | 143 | ) |
| 144 | - provider_id = remote_provider_id(adapter.adapter_id) if adapter else "remote" | |
| 144 | + provider_type = remote_provider_type(adapter.adapter_id) if adapter else "remote" | |
| 145 | 145 | |
| 146 | 146 | return RemoteProviderSpec( |
| 147 | - api=api, provider_id=provider_id, config_class=config_class, adapter=adapter | |
| 147 | + api=api, provider_type=provider_type, config_class=config_class, adapter=adapter | |
| 148 | 148 | ) |
| 149 | 149 | |
| 150 | 150 | |
| 151 | 151 | @json_schema_type |
| 152 | 152 | class DistributionSpec(BaseModel): |
| 153 | - distribution_id: str | |
| 153 | + distribution_type: str | |
| 154 | 154 | description: str |
| 155 | 155 | |
| 156 | 156 | docker_image: Optional[str] = None |
| 157 | 157 | providers: Dict[Api, str] = Field( |
| 158 | 158 | default_factory=dict, |
| 159 | - description="Provider IDs for each of the APIs provided by this distribution", | |
| 159 | + description="Provider Types for each of the APIs provided by this distribution", | |
| 160 | 160 | ) |
| 161 | 161 | |
| 162 | 162 | |
| @@ -171,7 +171,7 @@ | ||
| 171 | 171 | this could be just a hash |
| 172 | 172 | """, |
| 173 | 173 | ) |
| 174 | - distribution_id: Optional[str] = None | |
| 174 | + distribution_type: Optional[str] = None | |
| 175 | 175 | |
| 176 | 176 | docker_image: Optional[str] = Field( |
| 177 | 177 | default=None, |
modified llama_toolchain/core/distribution.py +4 −4
| @@ -83,18 +83,18 @@ | ||
| 83 | 83 | |
| 84 | 84 | def api_providers() -> Dict[Api, Dict[str, ProviderSpec]]: |
| 85 | 85 | inference_providers_by_id = { |
| 86 | - a.provider_id: a for a in available_inference_providers() | |
| 86 | + a.provider_type: a for a in available_inference_providers() | |
| 87 | 87 | } |
| 88 | - safety_providers_by_id = {a.provider_id: a for a in available_safety_providers()} | |
| 88 | + safety_providers_by_id = {a.provider_type: a for a in available_safety_providers()} | |
| 89 | 89 | agentic_system_providers_by_id = { |
| 90 | - a.provider_id: a for a in available_agentic_system_providers() | |
| 90 | + a.provider_type: a for a in available_agentic_system_providers() | |
| 91 | 91 | } |
| 92 | 92 | |
| 93 | 93 | ret = { |
| 94 | 94 | Api.inference: inference_providers_by_id, |
| 95 | 95 | Api.safety: safety_providers_by_id, |
| 96 | 96 | Api.agentic_system: agentic_system_providers_by_id, |
| 97 | - Api.memory: {a.provider_id: a for a in available_memory_providers()}, | |
| 97 | + Api.memory: {a.provider_type: a for a in available_memory_providers()}, | |
| 98 | 98 | } |
| 99 | 99 | for k, v in ret.items(): |
| 100 | 100 | v["remote"] = remote_provider_spec(k) |
modified llama_toolchain/core/distribution_registry.py +10 −10
| @@ -14,7 +14,7 @@ | ||
| 14 | 14 | def available_distribution_specs() -> List[DistributionSpec]: |
| 15 | 15 | return [ |
| 16 | 16 | DistributionSpec( |
| 17 | - distribution_id="local", | |
| 17 | + distribution_type="local", | |
| 18 | 18 | description="Use code from `llama_toolchain` itself to serve all llama stack APIs", |
| 19 | 19 | providers={ |
| 20 | 20 | Api.inference: "meta-reference", |
| @@ -24,35 +24,35 @@ | ||
| 24 | 24 | }, |
| 25 | 25 | ), |
| 26 | 26 | DistributionSpec( |
| 27 | - distribution_id="remote", | |
| 27 | + distribution_type="remote", | |
| 28 | 28 | description="Point to remote services for all llama stack APIs", |
| 29 | 29 | providers={x: "remote" for x in Api}, |
| 30 | 30 | ), |
| 31 | 31 | DistributionSpec( |
| 32 | - distribution_id="local-ollama", | |
| 32 | + distribution_type="local-ollama", | |
| 33 | 33 | description="Like local, but use ollama for running LLM inference", |
| 34 | 34 | providers={ |
| 35 | - Api.inference: remote_provider_id("ollama"), | |
| 35 | + Api.inference: remote_provider_type("ollama"), | |
| 36 | 36 | Api.safety: "meta-reference", |
| 37 | 37 | Api.agentic_system: "meta-reference", |
| 38 | 38 | Api.memory: "meta-reference-faiss", |
| 39 | 39 | }, |
| 40 | 40 | ), |
| 41 | 41 | DistributionSpec( |
| 42 | - distribution_id="local-plus-fireworks-inference", | |
| 42 | + distribution_type="local-plus-fireworks-inference", | |
| 43 | 43 | description="Use Fireworks.ai for running LLM inference", |
| 44 | 44 | providers={ |
| 45 | - Api.inference: remote_provider_id("fireworks"), | |
| 45 | + Api.inference: remote_provider_type("fireworks"), | |
| 46 | 46 | Api.safety: "meta-reference", |
| 47 | 47 | Api.agentic_system: "meta-reference", |
| 48 | 48 | Api.memory: "meta-reference-faiss", |
| 49 | 49 | }, |
| 50 | 50 | ), |
| 51 | 51 | DistributionSpec( |
| 52 | - distribution_id="local-plus-together-inference", | |
| 52 | + distribution_type="local-plus-together-inference", | |
| 53 | 53 | description="Use Together.ai for running LLM inference", |
| 54 | 54 | providers={ |
| 55 | - Api.inference: remote_provider_id("together"), | |
| 55 | + Api.inference: remote_provider_type("together"), | |
| 56 | 56 | Api.safety: "meta-reference", |
| 57 | 57 | Api.agentic_system: "meta-reference", |
| 58 | 58 | Api.memory: "meta-reference-faiss", |
| @@ -62,8 +62,8 @@ | ||
| 62 | 62 | |
| 63 | 63 | |
| 64 | 64 | @lru_cache() |
| 65 | -def resolve_distribution_spec(distribution_id: str) -> Optional[DistributionSpec]: | |
| 65 | +def resolve_distribution_spec(distribution_type: str) -> Optional[DistributionSpec]: | |
| 66 | 66 | for spec in available_distribution_specs(): |
| 67 | - if spec.distribution_id == distribution_id: | |
| 67 | + if spec.distribution_type == distribution_type: | |
| 68 | 68 | return spec |
| 69 | 69 | return None |
modified llama_toolchain/core/package.py +9 −9
| @@ -46,13 +46,13 @@ | ||
| 46 | 46 | api_inputs: List[ApiInput], |
| 47 | 47 | build_type: BuildType, |
| 48 | 48 | name: str, |
| 49 | - distribution_id: Optional[str] = None, | |
| 49 | + distribution_type: Optional[str] = None, | |
| 50 | 50 | docker_image: Optional[str] = None, |
| 51 | 51 | ): |
| 52 | - if not distribution_id: | |
| 53 | - distribution_id = "adhoc" | |
| 52 | + if not distribution_type: | |
| 53 | + distribution_type = "adhoc" | |
| 54 | 54 | |
| 55 | - build_dir = BUILDS_BASE_DIR / distribution_id / build_type.descriptor() | |
| 55 | + build_dir = BUILDS_BASE_DIR / distribution_type / build_type.descriptor() | |
| 56 | 56 | os.makedirs(build_dir, exist_ok=True) |
| 57 | 57 | |
| 58 | 58 | package_name = name.replace("::", "-") |
| @@ -79,7 +79,7 @@ | ||
| 79 | 79 | if provider.docker_image: |
| 80 | 80 | raise ValueError("A stack's dependencies cannot have a docker image") |
| 81 | 81 | |
| 82 | - stub_config[api.value] = {"provider_id": api_input.provider} | |
| 82 | + stub_config[api.value] = {"provider_type": api_input.provider} | |
| 83 | 83 | |
| 84 | 84 | if package_file.exists(): |
| 85 | 85 | cprint( |
| @@ -92,7 +92,7 @@ | ||
| 92 | 92 | c.providers[api_str] = new_config |
| 93 | 93 | else: |
| 94 | 94 | existing_config = c.providers[api_str] |
| 95 | - if existing_config["provider_id"] != new_config["provider_id"]: | |
| 95 | + if existing_config["provider_type"] != new_config["provider_type"]: | |
| 96 | 96 | cprint( |
| 97 | 97 | f"Provider `{api_str}` has changed from `{existing_config}` to `{new_config}`", |
| 98 | 98 | color="yellow", |
| @@ -105,7 +105,7 @@ | ||
| 105 | 105 | providers=stub_config, |
| 106 | 106 | ) |
| 107 | 107 | |
| 108 | - c.distribution_id = distribution_id | |
| 108 | + c.distribution_type = distribution_type | |
| 109 | 109 | c.docker_image = package_name if build_type == BuildType.container else None |
| 110 | 110 | c.conda_env = package_name if build_type == BuildType.conda_env else None |
| 111 | 111 | |
| @@ -119,7 +119,7 @@ | ||
| 119 | 119 | ) |
| 120 | 120 | args = [ |
| 121 | 121 | script, |
| 122 | - distribution_id, | |
| 122 | + distribution_type, | |
| 123 | 123 | package_name, |
| 124 | 124 | package_deps.docker_image, |
| 125 | 125 | " ".join(package_deps.pip_packages), |
| @@ -130,7 +130,7 @@ | ||
| 130 | 130 | ) |
| 131 | 131 | args = [ |
| 132 | 132 | script, |
| 133 | - distribution_id, | |
| 133 | + distribution_type, | |
| 134 | 134 | package_name, |
| 135 | 135 | " ".join(package_deps.pip_packages), |
| 136 | 136 | ] |
modified llama_toolchain/core/server.py +4 −4
| @@ -284,13 +284,13 @@ | ||
| 284 | 284 | for api_str, provider_config in config["providers"].items(): |
| 285 | 285 | api = Api(api_str) |
| 286 | 286 | providers = all_providers[api] |
| 287 | - provider_id = provider_config["provider_id"] | |
| 288 | - if provider_id not in providers: | |
| 287 | + provider_type = provider_config["provider_type"] | |
| 288 | + if provider_type not in providers: | |
| 289 | 289 | raise ValueError( |
| 290 | - f"Unknown provider `{provider_id}` is not available for API `{api}`" | |
| 290 | + f"Unknown provider `{provider_type}` is not available for API `{api}`" | |
| 291 | 291 | ) |
| 292 | 292 | |
| 293 | - provider_specs[api] = providers[provider_id] | |
| 293 | + provider_specs[api] = providers[provider_type] | |
| 294 | 294 | |
| 295 | 295 | impls = resolve_impls(provider_specs, config) |
| 296 | 296 |
modified llama_toolchain/inference/providers.py +1 −1
| @@ -13,7 +13,7 @@ | ||
| 13 | 13 | return [ |
| 14 | 14 | InlineProviderSpec( |
| 15 | 15 | api=Api.inference, |
| 16 | - provider_id="meta-reference", | |
| 16 | + provider_type="meta-reference", | |
| 17 | 17 | pip_packages=[ |
| 18 | 18 | "accelerate", |
| 19 | 19 | "blobfile", |
modified llama_toolchain/memory/providers.py +1 −1
| @@ -18,7 +18,7 @@ | ||
| 18 | 18 | return [ |
| 19 | 19 | InlineProviderSpec( |
| 20 | 20 | api=Api.memory, |
| 21 | - provider_id="meta-reference-faiss", | |
| 21 | + provider_type="meta-reference-faiss", | |
| 22 | 22 | pip_packages=EMBEDDING_DEPS + ["faiss-cpu"], |
| 23 | 23 | module="llama_toolchain.memory.meta_reference.faiss", |
| 24 | 24 | config_class="llama_toolchain.memory.meta_reference.faiss.FaissImplConfig", |
modified llama_toolchain/safety/providers.py +1 −1
| @@ -13,7 +13,7 @@ | ||
| 13 | 13 | return [ |
| 14 | 14 | InlineProviderSpec( |
| 15 | 15 | api=Api.safety, |
| 16 | - provider_id="meta-reference", | |
| 16 | + provider_type="meta-reference", | |
| 17 | 17 | pip_packages=[ |
| 18 | 18 | "accelerate", |
| 19 | 19 | "codeshield", |