fix: distribution downloading data do not show

This commit is contained in:
jialin
2025-07-04 16:45:15 +08:00
parent 6943571a6d
commit 3d93eda92d
2 changed files with 39 additions and 18 deletions
+8 -6
View File
@@ -74,12 +74,18 @@ interface ComputedResourceClaim {
vram: Record<string, number>;
}
interface DistributedServerItem {
export interface DistributedServerItem {
pid: number;
port: number;
worker_id: string;
computed_resource_claim: ComputedResourceClaim;
}
export interface DistributedServers {
rpc_servers: DistributedServerItem[];
ray_actors: DistributedServerItem[];
subordinate_workers: DistributedServerItem[];
}
export interface ModelInstanceListItem {
backend?: string;
backend_version?: string;
@@ -87,11 +93,7 @@ export interface ModelInstanceListItem {
huggingface_repo_id: string;
huggingface_filename: string;
ollama_library_model_name: string;
distributed_servers?: {
rpc_servers: DistributedServerItem[];
ray_actors: DistributedServerItem[];
subordinate_workers: DistributedServerItem[];
};
distributed_servers?: DistributedServers;
computed_resource_claim?: ComputedResourceClaim;
s3_address: string;
worker_id: number;