Expand description
Greedy Layer Assignment with Fault Tolerance and Adaptive Quantization
This module provides:
- Sequential greedy layer splitting across nodes based on VRAM capacity
- Adaptive quantization trigger (select_quantization_mode)
- Load balancing and fault detection integration
Structs§
- Layer
Assignment - Layer assignment to a specific node
- Layer
Spec - Layer specification with VRAM requirements
- Migration
Planner - Dynamic migration planner for moving layers between nodes under load.
- Placement
Plan - Layer placement plan across nodes
- Planning
Tuning - Runtime-aware planning hints derived from host auto-detection.
- Rebalance
Trigger - Trigger mechanism for dynamic rebalancing based on load/health.
Enums§
- Quantization
Mode - Quantization mode enumeration
Constants§
- DELIVERY_
RATIO_ INT4_ THRESHOLD - DELIVERY_
RATIO_ INT8_ THRESHOLD - Delivery ratio thresholds for adaptive quantization
Functions§
- assign_
layers_ sequentially - Assign layers sequentially across nodes based on VRAM capacity.
- assign_
layers_ with_ fault_ tolerance - Assign layers with fault tolerance and load balancing
- assign_
layers_ with_ fault_ tolerance_ and_ runtime - Assign layers with fault tolerance and runtime-aware chunking.
- assign_
layers_ with_ runtime_ profile - Assign layers using runtime auto-detection to expose worker-parallel chunks.
- calculate_
cluster_ health - Calculate network health across the cluster
- chunk_
assignments_ for_ workers - Split large node assignments into smaller contiguous chunks for worker-level parallelism.
- rebalance_
assignments - Update layer assignments based on node health metrics
- select_
quantization_ mode - Select quantization mode based on cluster health metrics