You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* fix multiple H1 headings
* edit use of please
* remove use of unnecessary HTML tags
Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
Co-authored-by: Abolfazl Shahbazi <abolfazl.shahbazi@intel.com>
Find the corresponding [compose.yaml](./docker/xeon/compose.yaml).
80
80
81
81
```bash
82
82
cd GenAIExamples/CodeGen/docker/xeon
@@ -85,46 +85,46 @@ docker compose up -d
85
85
86
86
Refer to the [Xeon Guide](./docker/xeon/README.md) for more instructions on building docker images from source.
87
87
88
-
## Deploy CodeGen using Kubernetes
88
+
###Deploy CodeGen using Kubernetes
89
89
90
90
Refer to the [Kubernetes Guide](./kubernetes/manifests/README.md) for instructions on deploying CodeGen into Kubernetes on Xeon & Gaudi.
91
91
92
-
## Deploy CodeGen into Kubernetes using Helm Chart
92
+
###Deploy CodeGen into Kubernetes using Helm Chart
93
93
94
-
Install Helm (version >= 3.15) first. Please refer to the [Helm Installation Guide](https://helm.sh/docs/intro/install/) for more information.
94
+
Install Helm (version >= 3.15) first. Refer to the [Helm Installation Guide](https://helm.sh/docs/intro/install/) for more information.
95
95
96
96
Refer to the [CodeGen helm chart](https://github.com/opea-project/GenAIInfra/tree/main/helm-charts/codegen) for instructions on deploying CodeGen into Kubernetes on Xeon & Gaudi.
97
97
98
-
# Consume CodeGen Service
98
+
##Consume CodeGen Service
99
99
100
100
Two ways of consuming CodeGen Service:
101
101
102
102
1. Use cURL command on terminal
103
103
104
-
```bash
105
-
curl http://${host_ip}:7778/v1/codegen \
106
-
-H "Content-Type: application/json" \
107
-
-d '{"messages": "Implement a high-level API for a TODO list application. The API takes as input an operation request and updates the TODO list in place. If the request is invalid, raise an exception."}'
108
-
```
104
+
```bash
105
+
curl http://${host_ip}:7778/v1/codegen \
106
+
-H "Content-Type: application/json" \
107
+
-d '{"messages": "Implement a high-level API for a TODO list application. The API takes as input an operation request and updates the TODO list in place. If the request is invalid, raise an exception."}'
108
+
```
109
109
110
110
2. Access via frontend
111
111
112
-
To access the frontend, open the following URL in your browser: http://{host_ip}:5173.
112
+
To access the frontend, open the following URL in your browser: http://{host_ip}:5173.
113
113
114
-
By default, the UI runs on port 5173 internally.
114
+
By default, the UI runs on port 5173 internally.
115
115
116
-
# Troubleshooting
116
+
##Troubleshooting
117
117
118
-
1. If you get errors like "Access Denied", please [validate micro service](https://github.com/opea-project/GenAIExamples/tree/main/CodeGen/docker/xeon#validate-microservices) first. A simple example:
118
+
1. If you get errors like "Access Denied", [validate micro service](https://github.com/opea-project/GenAIExamples/tree/main/CodeGen/docker/xeon#validate-microservices) first. A simple example:
119
119
120
-
```bash
121
-
http_proxy=""
122
-
curl http://${host_ip}:8028/generate \
123
-
-X POST \
124
-
-d '{"inputs":"Implement a high-level API for a TODO list application. The API takes as input an operation request and updates the TODO list in place. If the request is invalid, raise an exception.","parameters":{"max_new_tokens":256, "do_sample": true}}' \
125
-
-H 'Content-Type: application/json'
126
-
```
120
+
```bash
121
+
http_proxy=""
122
+
curl http://${host_ip}:8028/generate \
123
+
-X POST \
124
+
-d '{"inputs":"Implement a high-level API for a TODO list application. The API takes as input an operation request and updates the TODO list in place. If the request is invalid, raise an exception.","parameters":{"max_new_tokens":256, "do_sample": true}}' \
125
+
-H 'Content-Type: application/json'
126
+
```
127
127
128
-
2. (Docker only) If all microservices work well, please check the port ${host_ip}:7778, the port may be allocated by other users, you can modify the `compose.yaml`.
128
+
2. (Docker only) If all microservices work well, check the port ${host_ip}:7778, the port may be allocated by other users, you can modify the `compose.yaml`.
129
129
130
-
3. (Docker only) If you get errors like "The container name is in use", please change container name in `compose.yaml`.
130
+
3. (Docker only) If you get errors like "The container name is in use", change container name in `compose.yaml`.
0 commit comments