-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add codegen example for GMC Signed-off-by: KfreeZ <[email protected]> * move chatQnA resource to chatqa namespace Signed-off-by: KfreeZ <[email protected]> --------- Signed-off-by: KfreeZ <[email protected]> Co-authored-by: Steve Zhang <[email protected]>
- Loading branch information
1 parent
019272a
commit bc9c2bd
Showing
2 changed files
with
72 additions
and
23 deletions.
There are no files selected for viewing
This file contains 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 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,49 @@ | ||
# Copyright (C) 2024 Intel Corporation | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
apiVersion: gmc.opea.io/v1alpha3 | ||
kind: GMConnector | ||
metadata: | ||
labels: | ||
app.kubernetes.io/name: gmconnector | ||
app.kubernetes.io/managed-by: kustomize | ||
name: codegen | ||
namespace: codegen | ||
spec: | ||
routerConfig: | ||
name: router | ||
nameSpace: codegen | ||
serviceName: router-service | ||
config: | ||
no_proxy: ".codegen.svc.cluster.local" | ||
http_proxy: http://child-jf.intel.com:912 | ||
https_proxy: http://child-jf.intel.com:912 | ||
nodes: | ||
root: | ||
routerType: Sequence | ||
steps: | ||
- name: Llm | ||
data: $response | ||
internalService: | ||
nameSpace: codegen | ||
serviceName: llm-service | ||
config: | ||
no_proxy: ".codegen.svc.cluster.local" | ||
http_proxy: http://child-jf.intel.com:912 | ||
https_proxy: http://child-jf.intel.com:912 | ||
tgi_endpoint: http://tgi-service.codegen.svc.cluster.local:9009 | ||
gmcTokenSecret: gmc-tokens | ||
endpoint: /v1/chat/completions | ||
- name: Tgi | ||
internalService: | ||
nameSpace: codegen | ||
serviceName: tgi-service | ||
config: | ||
no_proxy: ".codegen.svc.cluster.local" | ||
http_proxy: http://child-jf.intel.com:912 | ||
https_proxy: http://child-jf.intel.com:912 | ||
gmcTokenSecret: gmc-tokens | ||
hostPath: /root/GMC/data/tgi | ||
modelId: ise-uiuc/Magicoder-S-DS-6.7B | ||
endpoint: /generate | ||
isDownstreamService: true |