display current strategy

This commit is contained in:
josc146
2023-06-03 19:38:24 +08:00
parent 966b912013
commit ced0966ffc
2 changed files with 11 additions and 4 deletions

View File

@@ -12,7 +12,8 @@ import {
Label,
Option,
Select,
Switch
Switch,
Text
} from '@fluentui/react-components';
import {
AddCircle20Regular,
@@ -895,9 +896,14 @@ export const Configs: FC = observer(() => {
</Dropdown>
} />
}
{selectedConfig.modelParameters.device == 'CUDA' && <div />}
{
selectedConfig.modelParameters.device == 'CUDA' && <Labeled label={t('Stored Layers')}
selectedConfig.modelParameters.device == 'CUDA' &&
<Labeled label={t('Current Strategy')}
content={<Text> {getStrategy(selectedConfig)} </Text>} />
}
{
selectedConfig.modelParameters.device == 'CUDA' &&
<Labeled label={t('Stored Layers')}
desc={t('Number of the neural network layers loaded into VRAM, the more you load, the faster the speed, but it consumes more VRAM.')}
content={
<ValuedSlider value={selectedConfig.modelParameters.storedLayers} min={0}