chore: adjust deployment modal form
This commit is contained in:
@@ -9,6 +9,7 @@ interface FormContextProps {
|
||||
sizeOptions?: Global.BaseOption<number>[];
|
||||
quantizationOptions?: Global.BaseOption<string>[];
|
||||
modelFileOptions?: any[];
|
||||
gpuOptions?: any[];
|
||||
onSizeChange?: (val: number) => void;
|
||||
onQuantizationChange?: (val: string) => void;
|
||||
onValuesChange?: (changedValues: any, allValues: any) => void;
|
||||
|
||||
@@ -83,10 +83,6 @@ export const ollamaModelOptions = [
|
||||
];
|
||||
|
||||
export const backendTipsList = [
|
||||
{
|
||||
title: 'llama-box',
|
||||
tips: 'models.form.backend.llamabox'
|
||||
},
|
||||
{
|
||||
title: 'vLLM',
|
||||
tips: 'models.form.backend.vllm'
|
||||
@@ -537,3 +533,20 @@ export const getBackendParamsTips = (backend: string) => {
|
||||
version: 'v0.0.13'
|
||||
};
|
||||
};
|
||||
|
||||
export const scheduleTypeTips = [
|
||||
{
|
||||
title: {
|
||||
text: 'models.form.scheduletype.auto',
|
||||
locale: true
|
||||
},
|
||||
tips: 'models.form.scheduletype.auto.tips'
|
||||
},
|
||||
{
|
||||
title: {
|
||||
text: 'models.form.scheduletype.manual',
|
||||
locale: true
|
||||
},
|
||||
tips: 'models.form.scheduletype.manual.tips'
|
||||
}
|
||||
];
|
||||
|
||||
@@ -56,7 +56,9 @@ export interface FormData {
|
||||
model_scope_model_id?: string;
|
||||
model_scope_file_path?: string;
|
||||
gpu_selector?: {
|
||||
gpu_ids: string[];
|
||||
gpu_ids?: string[];
|
||||
gpu_type?: string;
|
||||
gpu_count?: number;
|
||||
};
|
||||
placement_strategy?: string;
|
||||
cpu_offloading?: boolean;
|
||||
@@ -65,6 +67,8 @@ export interface FormData {
|
||||
name: string;
|
||||
replicas: number;
|
||||
description: string;
|
||||
optimize_long_prompt: boolean;
|
||||
enable_speculative_decoding: boolean;
|
||||
}
|
||||
|
||||
interface ComputedResourceClaim {
|
||||
|
||||
Reference in New Issue
Block a user