pub enum ServeProcessAllocation {
ModelRank {Show 21 fields
process: String,
role: String,
role_kind: ServeRoleKind,
replica: u32,
rank: u32,
rank_count: u32,
machine: String,
devices: Vec<u32>,
model_locator: String,
auxiliary_model_locators: Vec<AuxiliaryModelLocator>,
endpoint: Option<EndpointAssignment>,
ports: BTreeMap<String, EndpointAssignment>,
cache: String,
capture_storage: Option<String>,
launch: AllocationLaunch,
effective_settings: BTreeMap<String, SettingValue>,
effective_parallelism: Parallelism,
links: Vec<ServeRoleLink>,
dependencies: Vec<String>,
discovery: Option<String>,
render_inputs: Vec<SuppliedRenderInput>,
},
Frontend {Show 15 fields
process: String,
process_role: FrontendProcessRole,
components: FrontendComponents,
machine: String,
devices: Vec<u32>,
endpoint: EndpointAssignment,
ports: BTreeMap<String, EndpointAssignment>,
cache: String,
launch: AllocationLaunch,
gateway: Box<GatewayPlan>,
pd_router: Option<Box<PdRouterPlan>>,
links: Vec<ServeRoleLink>,
dependencies: Vec<String>,
discovery: Option<String>,
render_inputs: Vec<SuppliedRenderInput>,
},
Discovery {
process: String,
process_role: DiscoveryProcessRole,
components: DiscoveryBinding,
machine: String,
devices: Vec<u32>,
endpoint: EndpointAssignment,
ports: BTreeMap<String, EndpointAssignment>,
cache: String,
data_directory: String,
launch: AllocationLaunch,
discovery: Box<DiscoveryRequirement>,
render_inputs: Vec<SuppliedRenderInput>,
},
}Expand description
One concrete process allocation supplied to RenderServe. Model-rank and
process-only frontend identities are distinct so a frontend cannot acquire
model coordinates or a model locator by construction.
Variants§
ModelRank
Fields
role_kind: ServeRoleKindauxiliary_model_locators: Vec<AuxiliaryModelLocator>The machine-resolved auxiliary weight locators for each declared kind ([[RFC-0003:C-SERVE-AUXILIARY-MODELS]]).
endpoint: Option<EndpointAssignment>ports: BTreeMap<String, EndpointAssignment>capture_storage: Option<String>The control-plane-assigned persistent trace directory; present only when this rank belongs to an engine-trace capture target ([[RFC-0004:C-WORKLOAD-PROFILING]]).
launch: AllocationLauncheffective_settings: BTreeMap<String, SettingValue>effective_parallelism: Parallelismlinks: Vec<ServeRoleLink>discovery: Option<String>The discovery process this process registers with, when the topology has one ([[RFC-0003:C-SERVE-TOPOLOGY]]).
render_inputs: Vec<SuppliedRenderInput>Frontend
Fields
process_role: FrontendProcessRolecomponents: FrontendComponentsendpoint: EndpointAssignmentports: BTreeMap<String, EndpointAssignment>launch: AllocationLaunchgateway: Box<GatewayPlan>pd_router: Option<Box<PdRouterPlan>>links: Vec<ServeRoleLink>discovery: Option<String>The discovery process this process registers with, when the topology has one ([[RFC-0003:C-SERVE-TOPOLOGY]]).
render_inputs: Vec<SuppliedRenderInput>Discovery
The discovery service a Gateway result requires ([[RFC-0003:C-SERVE-TOPOLOGY]]): process-only, zero devices, placed on the Gateway’s machine, with an internal (not public) endpoint.
Fields
process_role: DiscoveryProcessRolecomponents: DiscoveryBindingendpoint: EndpointAssignmentports: BTreeMap<String, EndpointAssignment>data_directory: StringThe control-plane-assigned empty data directory under the machine’s runtime cache.
launch: AllocationLaunchdiscovery: Box<DiscoveryRequirement>render_inputs: Vec<SuppliedRenderInput>Trait Implementations§
Source§impl Clone for ServeProcessAllocation
impl Clone for ServeProcessAllocation
Source§impl Debug for ServeProcessAllocation
impl Debug for ServeProcessAllocation
Source§impl<'de> Deserialize<'de> for ServeProcessAllocation
impl<'de> Deserialize<'de> for ServeProcessAllocation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for ServeProcessAllocation
impl JsonSchema for ServeProcessAllocation
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more