mstar.conductor.request_info#
Functions
|
Fold one resource's published state into what is already held. |
Classes
|
Full-model forward pass-level metadata for running the current forward pass. |
|
Information that is passed into the worker / engines about this request at the current forward pass |
|
Defines a partition within a model's computation graph. |
|
Per-partition conductor-level state for a request. |
|
Per-connection streaming state tracked by the conductor. |
- class mstar.conductor.request_info.CurrentForwardConductorMetadata(graph_walk, is_prefill, input_modalities=<factory>, output_modalities=<factory>, kwargs=<factory>)[source]#
Bases:
objectFull-model forward pass-level metadata for running the current forward pass. On the conductor/model level.
- Parameters:
- class mstar.conductor.request_info.CurrentForwardPassInfo(request_id, graph_walk, fwd_index, random_seed, max_tokens, resource_configs=<factory>, step_metadata=<factory>, resource_publish_info=<factory>, partition_name='default', loop_stop_times=<factory>, dynamic_loop_iter_counts=<factory>)[source]#
Bases:
objectInformation that is passed into the worker / engines about this request at the current forward pass
- Parameters:
- loop_stop_times: dict[str, NestedLoopIndices]#
- resource_configs: dict[str, ResourceReqConfig]#
- resource_publish_info: dict[str, PublishedInfo]#
- update_publish_info(other)[source]#
- Parameters:
other (dict[str, PublishedInfo])
- class mstar.conductor.request_info.PartitionDefinition(name, graph_walks, initial_walk=None, producer_partitions=<factory>)[source]#
Bases:
objectDefines a partition within a model’s computation graph.
Each partition has its own set of graph walks and transition logic, and can run asynchronously relative to other partitions.
- Parameters:
- class mstar.conductor.request_info.PartitionState(partition_name, metadata, fwd_pass_number=0, random_seed=0, is_done=False, completed_worker_graph_ids=<factory>, current_worker_graph_ids=<factory>, wg_rank_completions=<factory>, num_output_tokens=0, curr_forward_outputs=<factory>, resource_publish_info=<factory>)[source]#
Bases:
objectPer-partition conductor-level state for a request.
- Parameters:
partition_name (str)
metadata (CurrentForwardConductorMetadata)
fwd_pass_number (int)
random_seed (int)
is_done (bool)
num_output_tokens (int)
resource_publish_info (dict[str, PublishedInfo])
- metadata: CurrentForwardConductorMetadata#
- resource_publish_info: dict[str, PublishedInfo]#
- class mstar.conductor.request_info.StreamingConnectionState(from_partition, to_partition, edge_name, token_count=0, consumed_count=0, producer_done=False)[source]#
Bases:
objectPer-connection streaming state tracked by the conductor.
- Parameters:
- mstar.conductor.request_info.merge_publish_info(into, other)[source]#
Fold one resource’s published state into what is already held.
Merging is the resource’s own business (a KV cache folds in another rank’s shard rather than replacing it), so an existing entry gets
updateand only a new key is taken wholesale.- Parameters:
into (dict[str, PublishedInfo])
other (dict[str, PublishedInfo])
- Return type:
None