chore: model instance show gpu info

This commit is contained in:
jialin
2024-09-12 18:34:44 +08:00
parent b6d5b45650
commit f339133245
18 changed files with 376 additions and 39 deletions
+12 -2
View File
@@ -29,7 +29,12 @@ enum FileType {
IQ2_M = 29,
IQ4_XS = 30,
IQ1_M = 31,
BF16 = 32
BF16 = 32,
Q4_0_4_4 = 33,
Q4_0_4_8 = 34,
Q4_0_8_8 = 35,
TQ1_0 = 36,
TQ2_0 = 37
}
export const fileTypeList = [
@@ -63,7 +68,12 @@ export const fileTypeList = [
'IQ2_M',
'IQ4_XS',
'IQ1_M',
'BF16'
'BF16',
'Q4_0_4_4',
'Q4_0_4_8',
'Q4_0_8_8',
'TQ1_0',
'TQ2_0'
];
export const getFileType = (fileName: string): string | null => {
+8
View File
@@ -47,8 +47,16 @@ export interface ModelInstanceListItem {
huggingface_repo_id: string;
huggingface_filename: string;
ollama_library_model_name: string;
distributed_servers?: {
rpc_servers: any[];
};
computed_resource_claim?: {
offload_layers: number;
total_layers: number;
};
s3_address: string;
worker_id: number;
gpu_indexes?: number[];
worker_ip: string;
gpu_index: number;
pid: number;