llama-stack-mirror/llama_toolchain/core
Celina Hanouti 736092f6bc
[Inference] Use huggingface_hub inference client for TGI adapter (#53)
* Use huggingface_hub inference client for TGI inference

* Update the default value for TGI URL

* Use InferenceClient.text_generation for TGI inference

* Fixes post-review and split TGI adapter into local and Inference Endpoints ones

* Update CLI reference and add typing

* Rename TGI Adapter class

* Use HfApi to get the namespace when not provide in the hf endpoint name

* Remove unecessary method argument

* Improve TGI adapter initialization condition

* Move helper into impl file + fix merging conflicts
2024-09-12 09:11:35 -07:00
..
__init__.py API Updates: fleshing out RAG APIs, introduce "llama stack" CLI command (#51) 2024-09-03 22:39:39 -07:00
build_conda_env.sh Add config file based CLI (#60) 2024-09-11 11:39:46 -07:00
build_container.sh Add config file based CLI (#60) 2024-09-11 11:39:46 -07:00
common.sh API Updates: fleshing out RAG APIs, introduce "llama stack" CLI command (#51) 2024-09-03 22:39:39 -07:00
configure.py Update distribution_id -> distribution_type, provider_id -> provider_type 2024-09-07 08:42:28 -07:00
datatypes.py Simplified Telemetry API and tying it to logger (#57) 2024-09-11 14:25:37 -07:00
distribution.py Simplified Telemetry API and tying it to logger (#57) 2024-09-11 14:25:37 -07:00
distribution_registry.py [Inference] Use huggingface_hub inference client for TGI adapter (#53) 2024-09-12 09:11:35 -07:00
dynamic.py API Updates: fleshing out RAG APIs, introduce "llama stack" CLI command (#51) 2024-09-03 22:39:39 -07:00
package.py Add config file based CLI (#60) 2024-09-11 11:39:46 -07:00
server.py Simplified Telemetry API and tying it to logger (#57) 2024-09-11 14:25:37 -07:00
start_conda_env.sh API Updates: fleshing out RAG APIs, introduce "llama stack" CLI command (#51) 2024-09-03 22:39:39 -07:00
start_container.sh API Updates: fleshing out RAG APIs, introduce "llama stack" CLI command (#51) 2024-09-03 22:39:39 -07:00