chore: deploy model from local path
This commit is contained in:
@@ -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 = {
|
||||
|
||||
@@ -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?: {
|
||||
|
||||
Reference in New Issue
Block a user