feat: lora for deployment
This commit is contained in:
@@ -48,6 +48,16 @@ export type SourceType =
|
||||
| 'local_path'
|
||||
| 'ollama_library';
|
||||
|
||||
export interface LoraListItem {
|
||||
lora_name: string;
|
||||
lora_repo_name: string;
|
||||
source: 'huggingface' | 'model_scope';
|
||||
huggingface_filename: string;
|
||||
model_scope_file_path: string;
|
||||
local_path: string;
|
||||
path: string;
|
||||
model_file_id: number;
|
||||
}
|
||||
export interface FormData {
|
||||
image_name?: string;
|
||||
run_command?: string;
|
||||
@@ -66,6 +76,7 @@ export interface FormData {
|
||||
s3_address: string;
|
||||
ollama_library_model_name: string;
|
||||
distributed_inference_across_workers?: boolean;
|
||||
lora_list: LoraListItem[];
|
||||
local_path?: string;
|
||||
model_scope_model_id?: string;
|
||||
model_scope_file_path?: string;
|
||||
@@ -398,3 +409,10 @@ export interface InstanceRestartCount {
|
||||
error?: string | null;
|
||||
}[];
|
||||
}
|
||||
|
||||
export interface ModelLoraAdapterResult {
|
||||
lora_list: Array<{
|
||||
lora_repo_name: string;
|
||||
source: string;
|
||||
}>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user