Skip to content
Snippets Groups Projects
Commit b6f5185c authored by ali asaria's avatar ali asaria
Browse files

fix instructions in training modal

parent 2fe6764f
No related branches found
No related tags found
No related merge requests found
...@@ -115,9 +115,9 @@ export default function TrainingModalDataTab({ ...@@ -115,9 +115,9 @@ export default function TrainingModalDataTab({
rows={5} rows={5}
/> />
<FormHelperText> <FormHelperText>
The instruction (aka system message) to send to the model. For The instruction (usually the system message) to send to the
example in a summarization task, this could be "Summarize the model. For example in a summarization task, this could be
following text:" "Summarize the following text:"
</FormHelperText> </FormHelperText>
</FormControl> </FormControl>
<br /> <br />
...@@ -170,18 +170,24 @@ export default function TrainingModalDataTab({ ...@@ -170,18 +170,24 @@ export default function TrainingModalDataTab({
defaultValue={ defaultValue={
templateData templateData
? templateData.config.formatting_template ? templateData.config.formatting_template
: 'Instruction: {{instruction}} \n###\n Prompt: {{prompt}}\n###\n Generation: {{generation}}' : 'Instruction: {{instruction}}\nPrompt: {{prompt}}\n Generation: {{generation}}'
} }
rows={5} rows={5}
/> />
<FormHelperText> <FormHelperText
sx={{ flexDirection: 'column', alignItems: 'flex-start' }}
>
This describes how the data is formatted when passed to the This describes how the data is formatted when passed to the
trainer. Use Jinja2 Standard String Templating format. For trainer. Use Jinja2 Standard String Templating format. For
example <br /> example:
"Instruction: <br />
&#123;&#123;instruction&#125;&#125;\n###\nPrompt: <span style={{}}>
&#123;&#123;prompt&#125;&#125;\n###\n Generation: Summarize the following:
&#123;&#123;generation&#125;&#125;" <br />
Prompt: &#123;&#123;prompt&#125;&#125;
<br />
Generation: &#123;&#123;generation&#125;&#125;
</span>
</FormHelperText> </FormHelperText>
</FormControl> </FormControl>
</> </>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment