Skip to content
Snippets Groups Projects
Commit 2514369a authored by deep1401's avatar deep1401
Browse files

ENable training when no plugin is loaded, enable running a plugin if it has no...

ENable training when no plugin is loaded, enable running a plugin if it has no parameter called model architectures
parent a72b66b0
No related branches found
No related tags found
No related merge requests found
......@@ -232,7 +232,9 @@ export default function TrainLoRA({ experimentInfo }) {
}}
key={plugin.uniqueId}
disabled={
!plugin.model_architectures?.includes(modelArchitecture)
plugin.model_architectures
? !plugin.model_architectures.includes(modelArchitecture)
: false
}
>
<ListItemDecorator>
......@@ -244,7 +246,7 @@ export default function TrainLoRA({ experimentInfo }) {
level="body-xs"
sx={{ color: 'var(--joy-palette-neutral-400)' }}
>
{!plugin.model_architectures?.includes(modelArchitecture)
{plugin.model_architectures && !plugin.model_architectures.includes(modelArchitecture)
? '(Does not support this model architecture)'
: ''}
</Typography>
......
......@@ -164,9 +164,7 @@ export default function Sidebar({
title="Train"
path="/projects/training"
icon={<GraduationCapIcon />}
disabled={
!experimentInfo?.name || !experimentInfo?.config?.foundation
}
disabled={!experimentInfo?.name}
/>
<SubNavItem
title="Export"
......
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