ray.serve.schema.ReplicaRank#

class ray.serve.schema.ReplicaRank[source]#

Replica rank model.

PublicAPI (alpha): This API is in alpha and may change before becoming stable.

model_config: ClassVar[ConfigDict] = {}#

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'local_rank': FieldInfo(annotation=int, required=True, description='Rank of the replica on the node scoped to the deployment.'), 'node_rank': FieldInfo(annotation=int, required=True, description='Rank of the node in the deployment.'), 'rank': FieldInfo(annotation=int, required=True, description='Global rank of the replica across all nodes scoped to the deployment.')}#

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.