diff --git a/src/pages/llmodels/components/advance-config.tsx b/src/pages/llmodels/components/advance-config.tsx index e556a075..2f279964 100644 --- a/src/pages/llmodels/components/advance-config.tsx +++ b/src/pages/llmodels/components/advance-config.tsx @@ -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 = (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); diff --git a/src/pages/llmodels/components/test.ts b/src/pages/llmodels/components/test.ts deleted file mode 100644 index c9e6d7e7..00000000 --- a/src/pages/llmodels/components/test.ts +++ /dev/null @@ -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' - } -];