Skip to main content

score_node

Function score_node 

Source
pub fn score_node(node: &NodeConfig, budget_mb: u64, load: &NodeLoad) -> f64
Expand description

Score a node for a given adapter budget.

score = (free_vram / adapter_budget) × gpu_flops_factor × (1 / current_load)

Returns 0.0 if the node cannot fit the adapter.