Skip to content
Snippets Groups Projects
Commit f70f9b29 authored by Tony Salomone's avatar Tony Salomone
Browse files

Save model path in training template for local models.

parent b5f23722
No related branches found
No related tags found
No related merge requests found
...@@ -64,9 +64,9 @@ function formatJobConfig(c): ReactElement { ...@@ -64,9 +64,9 @@ function formatJobConfig(c): ReactElement {
{/* {JSON.stringify(c)} */} {/* {JSON.stringify(c)} */}
<b>Template ID:</b> {c.template_name} <b>Template ID:</b> {c.template_name}
<br /> <br />
<b>Model Name:</b> {c.model_name} <b>Model:</b> {c.model_name}
<br /> <br />
<b>Dataset Name:</b> {c.dataset_name} <b>Dataset:</b> {c.dataset_name}
</> </>
); );
return r; return r;
......
...@@ -78,7 +78,9 @@ export default function TrainingModalLoRA({ open, onClose, experimentInfo }) { ...@@ -78,7 +78,9 @@ export default function TrainingModalLoRA({ open, onClose, experimentInfo }) {
return chatAPI.Endpoints.Dataset.Info(selectedDataset); return chatAPI.Endpoints.Dataset.Info(selectedDataset);
}, fetcher); }, fetcher);
const currentModelName = experimentInfo?.config?.foundation; const currentModel = experimentInfo?.config?.foundation_filename ?
experimentInfo?.config?.foundation_filename :
experimentInfo?.config?.foundation;
function injectIntoTemplate(key) { function injectIntoTemplate(key) {
// Add the key to the textbox with id "template" // Add the key to the textbox with id "template"
...@@ -182,7 +184,7 @@ export default function TrainingModalLoRA({ open, onClose, experimentInfo }) { ...@@ -182,7 +184,7 @@ export default function TrainingModalLoRA({ open, onClose, experimentInfo }) {
<Stack direction="row" justifyContent="space-evenly" gap={2}> <Stack direction="row" justifyContent="space-evenly" gap={2}>
<FormControl sx={{ flex: 1 }}> <FormControl sx={{ flex: 1 }}>
<FormLabel>Model:</FormLabel> <FormLabel>Model:</FormLabel>
<Typography variant="soft">{currentModelName}</Typography> <Typography variant="soft">{currentModel}</Typography>
</FormControl> </FormControl>
<FormControl sx={{ flex: 1 }}> <FormControl sx={{ flex: 1 }}>
<FormLabel>Architecture:</FormLabel> <FormLabel>Architecture:</FormLabel>
...@@ -193,7 +195,7 @@ export default function TrainingModalLoRA({ open, onClose, experimentInfo }) { ...@@ -193,7 +195,7 @@ export default function TrainingModalLoRA({ open, onClose, experimentInfo }) {
<input <input
hidden hidden
value={currentModelName} value={currentModel}
name="model_name" name="model_name"
readOnly readOnly
/> />
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment