TGI adapter and some refactoring of other inference adapters

This commit is contained in:
Ashwin Bharambe 2024-09-04 10:51:27 -07:00
parent 6ad7365676
commit f355b9b844
3 changed files with 246 additions and 0 deletions

View file

@ -35,6 +35,14 @@ def available_inference_providers() -> List[ProviderSpec]:
module="llama_toolchain.inference.adapters.ollama",
),
),
remote_provider_spec(
api=Api.inference,
adapter=AdapterSpec(
adapter_id="tgi",
pip_packages=["huggingface-hub"],
module="llama_toolchain.inference.adapters.tgi",
),
),
remote_provider_spec(
api=Api.inference,
adapter=AdapterSpec(