llama-index llms huggingface text generation inference integration
Project description
LlamaIndex Llms Integration: Text Generation Inference
⚠️ This integration has been deprecated!
The TextGenerationInference is no longer maintained. Instead, you can use HuggingFaceInferenceAPI. The underlying Text Generation Inference SDK (tgi) has been deprecated in favor of huggingface_hub, which HuggingFaceInferenceAPI is built on top of.
Instead, use llama-index-llms-huggingface-api:
pip install llama-index-llms-huggingface-api
Usage:
from llama_index.llms.huggingface_api import HuggingFaceInferenceAPI
# access hugging face inference
hub_llm = HuggingFaceInferenceAPI(model="openai-community/gpt2")
# or with a local TGI server
tgi_llm = HuggingFaceInferenceAPI(model="http://localhost:8080")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file llama_index_llms_text_generation_inference-0.3.3.tar.gz.
File metadata
- Download URL: llama_index_llms_text_generation_inference-0.3.3.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eb76788d20f5f9e3ac07a25c457f573e3d1626c83cde86172fb8b46981842545
|
|
| MD5 |
93392e6dda3b3b57ca2c16c9f26d3d72
|
|
| BLAKE2b-256 |
a243c88bc1782ad6a9b8ca887ea8a84e8870ead64e9ab9243fd7c2715427ffd1
|
File details
Details for the file llama_index_llms_text_generation_inference-0.3.3-py3-none-any.whl.
File metadata
- Download URL: llama_index_llms_text_generation_inference-0.3.3-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f5b52b354571a63ccdf9dc549fe9a4abc36acbe975fa9f10d7e5ff62b2da0e02
|
|
| MD5 |
880a4e67334ec4a41e874adf2107d132
|
|
| BLAKE2b-256 |
9c5b60451a21771862e0255c5266f5032addf1acd615e16d6100243b4ad7d5dd
|