Skip to main content

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


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

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file llama_index_llms_text_generation_inference-0.3.3.tar.gz.

File metadata

File hashes

Hashes for llama_index_llms_text_generation_inference-0.3.3.tar.gz
Algorithm Hash digest
SHA256 eb76788d20f5f9e3ac07a25c457f573e3d1626c83cde86172fb8b46981842545
MD5 93392e6dda3b3b57ca2c16c9f26d3d72
BLAKE2b-256 a243c88bc1782ad6a9b8ca887ea8a84e8870ead64e9ab9243fd7c2715427ffd1

See more details on using hashes here.

File details

Details for the file llama_index_llms_text_generation_inference-0.3.3-py3-none-any.whl.

File metadata

File hashes

Hashes for llama_index_llms_text_generation_inference-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f5b52b354571a63ccdf9dc549fe9a4abc36acbe975fa9f10d7e5ff62b2da0e02
MD5 880a4e67334ec4a41e874adf2107d132
BLAKE2b-256 9c5b60451a21771862e0255c5266f5032addf1acd615e16d6100243b4ad7d5dd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page