chore: deploy model from local path

This commit is contained in:
jialin
2024-11-07 17:35:07 +08:00
parent 8bc67b323c
commit 93a6a77c2b
15 changed files with 270 additions and 77 deletions
+5 -2
View File
@@ -80,14 +80,17 @@ export const modelSourceMap: Record<string, string> = {
ollama_library_value: 'ollama_library',
s3_value: 's3',
modelScope: 'ModelScope',
modelscope_value: 'model_scope'
modelscope_value: 'model_scope',
local_path: 'Local Path',
local_path_value: 'local_path'
};
export const modelSourceValueMap = {
[modelSourceMap.huggingface_value]: modelSourceMap.huggingface,
[modelSourceMap.ollama_library_value]: modelSourceMap.ollama_library,
[modelSourceMap.s3_value]: modelSourceMap.s3,
[modelSourceMap.modelscope_value]: modelSourceMap.modelScope
[modelSourceMap.modelscope_value]: modelSourceMap.modelScope,
[modelSourceMap.local_path_value]: modelSourceMap.local_path
};
export const InstanceStatusMap = {
+2
View File
@@ -15,6 +15,7 @@ export interface ListItem {
name: string;
description: string;
id: number;
local_path?: string;
created_at: string;
updated_at: string;
gpu_selector?: {
@@ -36,6 +37,7 @@ export interface FormData {
s3_address: string;
ollama_library_model_name: string;
distributed_inference_across_workers?: boolean;
local_path?: string;
model_scope_model_id?: string;
model_scope_file_path?: string;
gpu_selector?: {