fix(style): gpu selector closable
This commit is contained in:
@@ -27,7 +27,6 @@ import { FormData } from '../config/types';
|
|||||||
import vllmConfig from '../config/vllm-config';
|
import vllmConfig from '../config/vllm-config';
|
||||||
import dataformStyles from '../style/data-form.less';
|
import dataformStyles from '../style/data-form.less';
|
||||||
import GPUCard from './gpu-card';
|
import GPUCard from './gpu-card';
|
||||||
import gpuOptions from './test';
|
|
||||||
|
|
||||||
interface AdvanceConfigProps {
|
interface AdvanceConfigProps {
|
||||||
isGGUF: boolean;
|
isGGUF: boolean;
|
||||||
@@ -38,8 +37,7 @@ interface AdvanceConfigProps {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const AdvanceConfig: React.FC<AdvanceConfigProps> = (props) => {
|
const AdvanceConfig: React.FC<AdvanceConfigProps> = (props) => {
|
||||||
const { form, isGGUF, action, source } = props;
|
const { form, isGGUF, action, gpuOptions, source } = props;
|
||||||
console.log('gpucardoptions', gpuOptions);
|
|
||||||
|
|
||||||
const intl = useIntl();
|
const intl = useIntl();
|
||||||
const wokerSelector = Form.useWatch('worker_selector', form);
|
const wokerSelector = Form.useWatch('worker_selector', form);
|
||||||
|
|||||||
@@ -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'
|
|
||||||
}
|
|
||||||
];
|
|
||||||
Reference in New Issue
Block a user