mixle.experimental.typed_runtime.topology module¶
Measured topology and typed structured-shard placement.
- class ClusterTopology(devices, links)[source]
Bases:
objectDirected measured network over topology-aware compute devices.
- devices_in(island)[source]
Devices in one island, ordered by id.
- resources(island=None)[source]
Adapt topology devices to the stable placement planner’s resource type.
- Parameters:
island (str | None)
- Return type:
Resources
- transfer(source, target, nbytes)[source]
Shortest transfer-time route under current link profiles.
- class LinkProfile(source, target, latency_seconds, bandwidth_bytes_per_second, contention_multiplier=1.0, sample_count=0, provenance='declared')[source]
Bases:
objectDirected link startup latency and sustained bandwidth.
- Parameters:
- transfer_seconds(nbytes)[source]
Estimated one-way time including startup and measured contention.
- class NodePlacement(node_id, scope, primary_island, replica_islands, shards, rationale)[source]
Bases:
objectPlacement and cross-island replication policy for one typed node.
- Parameters:
- class PlacementScope(*values)[source]
Bases:
StrEnumCommunication scope permitted for one typed node.
- class StructuredPlacementPlan(primary_island, placements, graph_fingerprint, topology_fingerprint)[source]
Bases:
objectTyped placement over one calibrated cluster topology.
- Parameters:
- class StructuredShard(shard_id, node_id, island, device_id, axis, start, stop, reduction, exact, required_memory_bytes)[source]
Bases:
objectOne contiguous typed model-axis cut.
- Parameters:
- class TopologyDevice(device_id, host, island, provider, region, spec, storage_region=None)[source]
Bases:
objectA compute device with failure, network, provider, and storage locality.
- Parameters:
- class TransferEstimate(source, target, nbytes, seconds, path)[source]
Bases:
objectBest measured route and transfer time between two devices.
- class TransferSample(source, target, bytes_transferred, elapsed_seconds)[source]
Bases:
objectOne observed point-to-point transfer.
- calibrate_links(samples)[source]
Fit
time = latency + bytes / bandwidthindependently per direction.