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
# Generate appropriate prompt based on selected or input fields
175
+
ifelements:
121
176
system_message_cohere=SystemMessage(
122
-
content=f"""
123
-
Based on the following set of elements {elements}, with their respective types ({elements[0][1]}, {elements[1][1]}, {elements[2][1]}), Extract the following details and provide the response only in valid JSON format (no extra explanation or text):
124
-
- {elements[0][0]}
125
-
- {elements[1][0]}
126
-
- {elements[2][0]}
127
-
Ensure the extracted data is formatted correctly as JSON and include nothing else at all in the response, not even a greeting or closing.
128
-
For example:
129
-
{{
130
-
{elements[0][0]}: "296969",
131
-
{elements[1][0]}: "296969",
132
-
{elements[2][0]}: "296969",
133
-
}}
134
-
""")
177
+
content=f"""
178
+
Based on the following set of elements {elements}, with their respective types ({elements[0][1]}, {elements[1][1]}, {elements[2][1]}), Extract the following details and provide the response only in valid JSON format (no extra explanation or text):
179
+
- {elements[0][0]}
180
+
- {elements[1][0]}
181
+
- {elements[2][0]}
182
+
Ensure the extracted data is formatted correctly as JSON and include nothing else at all in the response, not even a greeting or closing.
183
+
For example:
184
+
{{
185
+
{elements[0][0]}: "296969",
186
+
{elements[1][0]}: "296969",
187
+
{elements[2][0]}: "296969",
188
+
}}
189
+
""")
135
190
ai_response_cohere=system_message_cohere
136
191
else:
137
-
# Cohere section for generating the prompt
138
192
system_message_cohere=SystemMessage(
139
-
content=f"""
140
-
Based on the following system prompt, create a new prompt accordingly based on the elements specified in the user prompt here ({user_prompt}).
141
-
142
-
This is the system prompt template:
143
-
"
144
-
Extract the following details and provide the response only in valid JSON format (no extra explanation or text):
145
-
- **Debit / Credit Note No.**
146
-
- **Policy Period**
147
-
- **Insured**
148
-
- **Vessel Name**
149
-
- **Details**
150
-
- **Currency**
151
-
- **Gross Premium 100%**
152
-
- **OIMSL Share**
153
-
- **Total Deductions**
154
-
- **Net Premium**
155
-
- **Premium Schedule**
156
-
- **Installment Amount**
157
-
158
-
Ensure the extracted data is formatted correctly as JSON and include nothing else at all in the response, not even a greeting or closing.
159
-
160
-
For example:
161
-
162
-
"Debit / Credit Note No.": "296969",
163
-
"Policy Period": "Feb 20, 2024 to Jul 15, 2025",
164
-
"Insured": "Stealth Maritime Corp. S.A.",
165
-
"Vessel Name": "SUPRA DUKE - HULL & MACHINERY", (Make sure this is the entire vessel name only)
)" ensure your response is a system prompt format with an example of what the ouput should look like. Also ensure to mention in your gernerated prompt that no other content whatsover should appear except the JSON
193
+
content=f"""
194
+
Based on the following system prompt, create a new prompt accordingly based on the elements specified in the user prompt here ({user_prompt}).
195
+
196
+
This is the system prompt template:
197
+
"
198
+
Extract the following details and provide the response only in valid JSON format (no extra explanation or text):
199
+
- **Debit / Credit Note No.**
200
+
- **Policy Period**
201
+
- **Insured**
202
+
- **Vessel Name**
203
+
- **Details**
204
+
- **Currency**
205
+
- **Gross Premium 100%**
206
+
- **OIMSL Share**
207
+
- **Total Deductions**
208
+
- **Net Premium**
209
+
- **Premium Schedule**
210
+
- **Installment Amount**
211
+
212
+
Ensure the extracted data is formatted correctly as JSON and include nothing else at all in the response, not even a greeting or closing.
213
+
214
+
For example:
215
+
216
+
"Debit / Credit Note No.": "296969",
217
+
"Policy Period": "Feb 20, 2024 to Jul 15, 2025",
218
+
"Insured": "Stealth Maritime Corp. S.A.",
219
+
"Vessel Name": "SUPRA DUKE - HULL & MACHINERY", (Make sure this is the entire vessel name only)
)" ensure your response is a system prompt format with an example of what the ouput should look like. Also ensure to mention in your gernerated prompt that no other content whatsover should appear except the JSON
@@ -31,7 +31,14 @@ This guide is loosely based on the
31
31
[to the instructions](https://github.com/oracle-quickstart/oci-hpc-oke/tree/main#instructions-for-deploying-an-oke-cluster-with-gpus-and-rdma-connectivity),
32
32
importing one of the images and creating a GPU partition with BM.GPU.H100.8 nodes.
33
33
34
-
The configuration here assumes a minimum of 16 BM.GPU.H100.8 nodes.
34
+
The configuration here assumes a minimum of 1 BM.GPU.H100.8 node for
35
+
training with 8B parameters, and a minimum of 8 BM.GPU.H100.8 nodes for 70B
36
+
parameters.
37
+
38
+
If another shape is used, the NCCL and MPI parameters in the Kubernetes
39
+
[configuration map](./files/training/templates/mpi.yaml) should be adapted
0 commit comments