ray.serve.schema.RayActorOptionsSchema#

class ray.serve.schema.RayActorOptionsSchema(*, runtime_env: dict = {}, num_cpus: ConstrainedFloatValue = None, num_gpus: ConstrainedFloatValue = None, memory: ConstrainedFloatValue = None, object_store_memory: ConstrainedFloatValue = None, resources: Dict = {}, accelerator_type: str = None)[source]#

Bases: BaseModel

Options with which to start a replica actor.

Methods

__init__

Create a new model by parsing and validating input data from keyword arguments.

construct

Creates a new model setting __dict__ and __fields_set__ from trusted or pre-validated data.

copy

Duplicate a model, optionally choose which fields to include, exclude and change.

dict

Generate a dictionary representation of the model, optionally specifying which fields to include or exclude.

json

Generate a JSON representation of the model, include and exclude arguments as per dict().

update_forward_refs

Try to update ForwardRefs on fields based on this Model, globalns and localns.

Attributes

runtime_env

num_cpus

num_gpus

memory

object_store_memory

resources

accelerator_type