-
Notifications
You must be signed in to change notification settings - Fork 98
Enable docsum to connect with external llm endpoints via helm #1141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 5 commits
db09e2a
bee11e0
250c574
19e1030
d60651f
20db664
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -26,7 +26,11 @@ helm install docsum docsum --set global.HF_TOKEN=${HFTOKEN} --set global.modelUs | |
| # helm install docsum docsum --set global.HF_TOKEN=${HFTOKEN} --values docsum/rocm-values.yaml | ||
| # To use AMD ROCm device with TGI | ||
| # helm install docsum docsum --set global.HF_TOKEN=${HFTOKEN} --values docsum/rocm-tgi-values.yaml | ||
|
|
||
| # To use with external OpenAI-compatible LLM endpoints (OpenAI, vLLM, TGI, etc.) | ||
| # This configures the llm-uservice to connect to external LLM providers while maintaining DocSum compatibility | ||
| # helm install docsum docsum --set global.HF_TOKEN=${HFTOKEN} --values docsum/variant_external-llm-values.yaml --set llm-uservice.env.OPENAI_API_KEY="your-api-key" --set llm-uservice.env.LLM_MODEL_ID="gpt-4-turbo" | ||
|
||
| # For vLLM/TGI endpoints: | ||
| # helm install docsum docsum --set global.HF_TOKEN=${HFTOKEN} --values docsum/variant_external-llm-values.yaml --set llm-uservice.env.LLM_ENDPOINT="http://your-vllm-server/v1" --set llm-uservice.env.LLM_MODEL_ID="your-model" | ||
| ``` | ||
|
|
||
| ## Verify | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,19 @@ | ||||||
| # Copyright (C) 2024 Intel Corporation | ||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| # SPDX-License-Identifier: Apache-2.0 | ||||||
|
|
||||||
| # External LLM configuration - configures llm-uservice to use external LLM providers | ||||||
| # This keeps the llm-uservice wrapper (required for /v1/docsum endpoint) but connects it to external LLMs | ||||||
| llm-uservice: | ||||||
| enabled: true # Keep the wrapper service for DocSum compatibility | ||||||
| env: | ||||||
| # Configure llm-uservice to use external OpenAI-compatible endpoints | ||||||
| LLM_ENDPOINT: "https://api.openai.com/v1" # External LLM API endpoint (OpenAI, vLLM, TGI, etc.) | ||||||
| OPENAI_API_KEY: "${OPENAI_API_KEY}" # API key for authentication | ||||||
| LLM_MODEL_ID: "gpt-4-turbo" # Model to use | ||||||
| TEXTGEN_BACKEND: "openai" # Backend type for OpenAI-compatible endpoints | ||||||
|
||||||
|
|
||||||
| # Disable local inference services since we're using external LLMs | ||||||
| vllm: | ||||||
| enabled: false | ||||||
| tgi: | ||||||
| enabled: false | ||||||
Uh oh!
There was an error while loading. Please reload this page.