fix(style): gpu selector closable

This commit is contained in:
jialin
2025-01-10 16:55:24 +08:00
parent fbf2671eaf
commit da6cdcef84
2 changed files with 1 additions and 86 deletions
@@ -27,7 +27,6 @@ import { FormData } from '../config/types';
import vllmConfig from '../config/vllm-config';
import dataformStyles from '../style/data-form.less';
import GPUCard from './gpu-card';
import gpuOptions from './test';
interface AdvanceConfigProps {
isGGUF: boolean;
@@ -38,8 +37,7 @@ interface AdvanceConfigProps {
}
const AdvanceConfig: React.FC<AdvanceConfigProps> = (props) => {
const { form, isGGUF, action, source } = props;
console.log('gpucardoptions', gpuOptions);
const { form, isGGUF, action, gpuOptions, source } = props;
const intl = useIntl();
const wokerSelector = Form.useWatch('worker_selector', form);
-83
View File
@@ -1,83 +0,0 @@
export default [
{
name: 'Apple M1 Pro',
uuid: null,
vendor: 'Apple',
index: 0,
core: {
total: 16,
utilization_rate: 40
},
memory: {
total: 22906503168,
utilization_rate: 2.2090662913006347,
is_unified_memory: true,
used: 506019840,
allocated: 1747103594
},
temperature: 49.78984451293945,
labels: {},
type: 'mps',
id: 'jialindeMacBook-Pro.local:mps:0',
worker_id: 1,
worker_name: 'jialindeMacBook-Pro.local',
worker_ip: '192.168.50.27',
title: '',
label: ' Apple M1 Pro(jialindeMacBook-Pro.local)[Index:0]',
value: 'jialindeMacBook-Pro.local:mps:0'
},
{
name: 'Apple M1 Pro',
uuid: null,
vendor: 'Apple',
index: 0,
core: {
total: 16,
utilization_rate: 40
},
memory: {
total: 22906503168,
utilization_rate: 2.2090662913006347,
is_unified_memory: true,
used: 506019840,
allocated: 1747103594
},
temperature: 49.78984451293945,
labels: {},
type: 'mps',
id: 'jialindeMacBook-Pro.local:mps:0',
worker_id: 1,
worker_name: 'jialindeMacBook-Pro.local',
worker_ip: '192.168.50.27',
title: '',
label: ' Apple M1 Pro(jialindeMacBook-Pro.local)[Index:0]',
value: 'jialindeMacBook-Pro.local:mps:1'
},
{
name: 'Apple M1 Pro',
uuid: null,
vendor: 'Apple',
index: 0,
core: {
total: 16,
utilization_rate: 40
},
memory: {
total: 22906503168,
utilization_rate: 2.2090662913006347,
is_unified_memory: true,
used: 506019840,
allocated: 1747103594
},
temperature: 49.78984451293945,
labels: {},
type: 'mps',
id: 'jialindeMacBook-Pro.local:mps:0',
worker_id: 1,
worker_name: 'jialindeMacBook-Pro.local',
worker_ip: '192.168.50.27',
title: '',
label: ' Apple M1 Pro(jialindeMacBook-Pro.local)[Index:0]',
value: 'jialindeMacBook-Pro.local:mps:2'
}
];