-
Notifications
You must be signed in to change notification settings - Fork 307
Codetrans: enable remote endpoints #2100
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
Open
alexsin368
wants to merge
58
commits into
opea-project:main
Choose a base branch
from
alexsin368:codetrans-remote-endpoint
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+175
−4
Open
Changes from all commits
Commits
Show all changes
58 commits
Select commit
Hold shift + click to select a range
3cc227c
add support for remote endpoints
alexsin368 26557e5
Merge branch 'opea-project:main' into codetrans-remote-endpoint
alexsin368 4b224f5
add api_key to megaservice
alexsin368 ec3ca49
add align_inputs to ensure model gets LLM_MODEL_ID
alexsin368 b6fcb93
fix typos and add note to run with compose_remote.yaml
alexsin368 0be911c
add align_outputs and align_generator
alexsin368 aec7391
remove eos_token in finish reason
alexsin368 49a59f5
remove unnecessary service types
alexsin368 e295c17
Merge branch 'opea-project:main' into codetrans-remote-endpoint
alexsin368 5a7f000
Merge branch 'opea-project:main' into codetrans-remote-endpoint
alexsin368 85bf0aa
add support for remote endpoints
alexsin368 c69fe78
add api_key to megaservice
alexsin368 165a233
add align_inputs to ensure model gets LLM_MODEL_ID
alexsin368 a627a3f
fix typos and add note to run with compose_remote.yaml
alexsin368 a19bd62
add align_outputs and align_generator
alexsin368 6d43f3e
remove eos_token in finish reason
alexsin368 7fdff42
remove unnecessary service types
alexsin368 fd7267a
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 59386be
merge
alexsin368 0b30743
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 990df02
import json library
alexsin368 70f60b2
Merge branch 'codetrans-remote-endpoint' of https://github.com/alexsi…
alexsin368 0877b78
resolve merge conflicts
alexsin368 08300ad
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] da62dd1
update remote endpoint instructions
alexsin368 35d193a
update remote endpoint instructions
alexsin368 673c7e9
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] ad61169
change to API_KEY for naming
alexsin368 743c743
fix env variable
alexsin368 1204dc7
add back llm microservice, fix naming, update instructions
alexsin368 2862f8f
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 3a7690a
update instructions
alexsin368 a4b7093
Merge branch 'codetrans-remote-endpoint' of https://github.com/alexsi…
alexsin368 772565b
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 3f199e6
remove vllm dependency
alexsin368 e3bbaed
use LLM_ENDPOINT instead of REMOTE_ENDPOINT
alexsin368 6c8b4e7
fix API_KEY env var
alexsin368 3a6bd22
set env variables for llm and backend services
alexsin368 04275de
Merge branch 'opea-project:main' into codetrans-remote-endpoint
alexsin368 e57221b
Merge branch 'main' into codetrans-remote-endpoint
alexsin368 e18b566
update landing page, add CI test with vllm litellm server for remote …
alexsin368 823643d
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 67e1e5e
add test instruction for remote endpoints
alexsin368 b64642c
Merge branch 'codetrans-remote-endpoint' of https://github.com/alexsi…
alexsin368 a08204b
update with new vllm-ci-server files
alexsin368 7baeb8d
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 4064dde
update test model and steps
alexsin368 8ceb0ab
Merge branch 'codetrans-remote-endpoint' of https://github.com/alexsi…
alexsin368 a9d29b6
Merge branch 'main' into codetrans-remote-endpoint
alexsin368 5f4bdcc
fix path from set_env.sh to top .set_env.sh
alexsin368 ada7ff4
remove CI test for remote endpoints
alexsin368 2e75ed3
add note about vLLM
alexsin368 1890138
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 127b4e1
Merge branch 'main' into codetrans-remote-endpoint
alexsin368 29314ac
remove mention of denvr
alexsin368 401ed82
Merge branch 'main' into codetrans-remote-endpoint
alexsin368 603ad6f
Merge branch 'main' into codetrans-remote-endpoint
chensuyue 2d4cfc5
Merge branch 'main' into codetrans-remote-endpoint
alexsin368 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
72 changes: 72 additions & 0 deletions
72
CodeTrans/docker_compose/intel/cpu/xeon/compose_remote.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
# Copyright (C) 2024 Intel Corporation | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
services: | ||
llm: | ||
image: ${REGISTRY:-opea}/llm-textgen:${TAG:-latest} | ||
alexsin368 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
container_name: codetrans-xeon-llm-server | ||
ports: | ||
- "9000:9000" | ||
ipc: host | ||
environment: | ||
no_proxy: ${no_proxy} | ||
http_proxy: ${http_proxy} | ||
https_proxy: ${https_proxy} | ||
LLM_ENDPOINT: ${REMOTE_ENDPOINT} | ||
LLM_MODEL_ID: ${LLM_MODEL_ID} | ||
OPENAI_API_KEY: ${API_KEY} | ||
LLM_COMPONENT_NAME: ${LLM_COMPONENT_NAME} | ||
HF_TOKEN: ${HF_TOKEN} | ||
restart: unless-stopped | ||
codetrans-xeon-backend-server: | ||
image: ${REGISTRY:-opea}/codetrans:${TAG:-latest} | ||
container_name: codetrans-xeon-backend-server | ||
depends_on: | ||
- llm | ||
ports: | ||
- "${BACKEND_SERVICE_PORT:-7777}:7777" | ||
environment: | ||
- no_proxy=${no_proxy} | ||
- https_proxy=${https_proxy} | ||
- http_proxy=${http_proxy} | ||
- MEGA_SERVICE_HOST_IP=${MEGA_SERVICE_HOST_IP} | ||
- LLM_SERVICE_HOST_IP=${LLM_SERVICE_HOST_IP} | ||
ipc: host | ||
restart: always | ||
codetrans-xeon-ui-server: | ||
image: ${REGISTRY:-opea}/codetrans-ui:${TAG:-latest} | ||
container_name: codetrans-xeon-ui-server | ||
depends_on: | ||
- codetrans-xeon-backend-server | ||
ports: | ||
- "${FRONTEND_SERVICE_PORT:-5173}:5173" | ||
environment: | ||
- no_proxy=${no_proxy} | ||
- https_proxy=${https_proxy} | ||
- http_proxy=${http_proxy} | ||
- BASE_URL=${BACKEND_SERVICE_ENDPOINT} | ||
ipc: host | ||
restart: always | ||
codetrans-xeon-nginx-server: | ||
image: ${REGISTRY:-opea}/nginx:${TAG:-latest} | ||
container_name: codetrans-xeon-nginx-server | ||
depends_on: | ||
- codetrans-xeon-backend-server | ||
- codetrans-xeon-ui-server | ||
ports: | ||
- "${NGINX_PORT:-80}:80" | ||
environment: | ||
- no_proxy=${no_proxy} | ||
- https_proxy=${https_proxy} | ||
- http_proxy=${http_proxy} | ||
- FRONTEND_SERVICE_IP=${FRONTEND_SERVICE_IP} | ||
- FRONTEND_SERVICE_PORT=${FRONTEND_SERVICE_PORT} | ||
- BACKEND_SERVICE_NAME=${BACKEND_SERVICE_NAME} | ||
- BACKEND_SERVICE_IP=${BACKEND_SERVICE_IP} | ||
- BACKEND_SERVICE_PORT=${BACKEND_SERVICE_PORT} | ||
ipc: host | ||
restart: always | ||
|
||
networks: | ||
default: | ||
driver: bridge |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.