File tree 3 files changed +6
-0
lines changed
src/features/modelManagerV2/subpanels
3 files changed +6
-0
lines changed Original file line number Diff line number Diff line change 841
841
"selectModel" : " Select Model" ,
842
842
"settings" : " Settings" ,
843
843
"simpleModelPlaceholder" : " URL or path to a local file or diffusers folder" ,
844
+ "size" : " Size" ,
844
845
"source" : " Source" ,
845
846
"sigLip" : " SigLIP" ,
846
847
"spandrelImageToImage" : " Image to Image (Spandrel)" ,
Original file line number Diff line number Diff line change @@ -108,6 +108,9 @@ const ModelListItem = ({ model }: ModelListItemProps) => {
108
108
< ModelBaseBadge base = { model . base } />
109
109
< ModelFormatBadge format = { model . format } />
110
110
</ Flex >
111
+ < Text >
112
+ { Intl . NumberFormat ( undefined , { maximumFractionDigits : 2 } ) . format ( model . size / ( 1024 ** 3 ) ) } GB
113
+ </ Text >
111
114
</ Flex >
112
115
< IconButton
113
116
onClick = { onClickDeleteButton }
Original file line number Diff line number Diff line change @@ -50,6 +50,8 @@ export const ModelView = memo(({ modelConfig }: Props) => {
50
50
< ModelAttrView label = { t ( 'modelManager.modelType' ) } value = { modelConfig . type } />
51
51
< ModelAttrView label = { t ( 'common.format' ) } value = { modelConfig . format } />
52
52
< ModelAttrView label = { t ( 'modelManager.path' ) } value = { modelConfig . path } />
53
+ < ModelAttrView label = { t ( 'modelManager.size' ) }
54
+ value = { Intl . NumberFormat ( undefined , { maximumFractionDigits : 2 } ) . format ( modelConfig . size / ( 1024 ** 3 ) ) + ' GB' } />
53
55
{ modelConfig . type === 'main' && (
54
56
< ModelAttrView label = { t ( 'modelManager.variant' ) } value = { modelConfig . variant } />
55
57
) }
You can’t perform that action at this time.
0 commit comments