feat: instances on worker

This commit is contained in:
jialin
2025-09-16 11:26:17 +08:00
parent 949eded4ee
commit 43936e21d9
21 changed files with 589 additions and 184 deletions
@@ -39,6 +39,14 @@ import {
} from '../config/types';
import '../style/instance-item.less';
interface InstanceItemProps {
instanceData: ModelInstanceListItem;
workerList: WorkerListItem[];
modelData?: any;
defaultOpenId: string;
handleChildSelect: (val: string, item: ModelInstanceListItem) => void;
}
const fieldList = [
{
label: 'CPU',
@@ -250,14 +258,6 @@ const InstanceStatusTag = (
);
};
interface InstanceItemProps {
instanceData: ModelInstanceListItem;
workerList: WorkerListItem[];
modelData?: any;
defaultOpenId: string;
handleChildSelect: (val: string, item: ModelInstanceListItem) => void;
}
const childActionList = [
{
label: 'common.button.viewlog',
-80
View File
@@ -2,86 +2,6 @@ import { StatusMaps } from '@/config';
import { EditOutlined } from '@ant-design/icons';
import _ from 'lodash';
export const ollamaModelOptions = [
{
label: 'qwen2.5-coder',
value: 'qwen2.5-coder',
name: 'qwen2.5-coder',
id: 'qwen2.5-coder',
tags: []
},
{
label: 'llama3.2',
value: 'llama3.2',
name: 'llama3.2',
id: 'llama3.2',
tags: ['Tools', '1B', '3B']
},
{
label: 'nomic-embed-text',
value: 'nomic-embed-text',
name: 'nomic-embed-text',
id: 'nomic-embed-text',
tags: []
},
{
label: 'qwen2.5',
value: 'qwen2.5',
name: 'qwen2.5',
tags: ['Tools', '0.5B', '1.5B', '3B', '7B', '14B', '32B', '72B'],
id: 'gemma2'
},
{
label: 'gemma2',
value: 'gemma2',
name: 'gemma2',
tags: ['2B', '9B', '27B'],
id: 'gemma2'
},
{
label: 'mistral-nemo',
value: 'mistral-nemo',
name: 'mistral-nemo',
tags: ['12B'],
id: 'mistral-nemo'
},
{
label: 'mistral-large',
value: 'mistral-large',
name: 'mistral-large',
tags: ['123B'],
id: 'mistral-large'
},
{
label: 'mistral',
value: 'mistral',
name: 'mistral',
tags: ['7B'],
id: 'mistral'
},
{
label: 'phi3.5',
value: 'phi3.5',
name: 'phi3.5',
tags: ['3B'],
id: 'phi3.5'
},
{
label: 'codellama',
value: 'codellama',
name: 'codellama',
tags: ['7B', '13B', '34B', '70B'],
id: 'codellama'
},
{
label: 'deepseek-coder-v2',
value: 'deepseek-coder-v2',
name: 'deepseek-coder-v2',
tags: ['16B', '236B'],
id: 'deepseek-coder-v2'
}
];
export const backendTipsList = [
{
title: 'vLLM',